Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. get_header();
  2.  
  3. //logout_from_amazon();
  4.  
  5. // header('Location: ' . '/basket', true, false ? 301 : 302);
  6.  
  7. unset( WC()->session->amazon_reference_id );
  8. unset( WC()->session->amazon_access_token );
  9. $reference_id = '';
  10. $access_token = '';
  11. if ( is_order_received_page() && 'yes' === $settings['enable_login_app'] ) {
  12. ?>
  13. <script>
  14. (function ($) {
  15. $(document).on('wc_amazon_pa_login_ready', function () {
  16. amazon.Login.logout();
  17. });
  18. })(jQuery)
  19. </script>
  20. <?php
  21. }
  22. ?>
  23. <script>
  24. window.location.replace("/basket/");
  25. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement