Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get_header();
- //logout_from_amazon();
- // header('Location: ' . '/basket', true, false ? 301 : 302);
- unset( WC()->session->amazon_reference_id );
- unset( WC()->session->amazon_access_token );
- $reference_id = '';
- $access_token = '';
- if ( is_order_received_page() && 'yes' === $settings['enable_login_app'] ) {
- ?>
- <script>
- (function ($) {
- $(document).on('wc_amazon_pa_login_ready', function () {
- amazon.Login.logout();
- });
- })(jQuery)
- </script>
- <?php
- }
- ?>
- <script>
- window.location.replace("/basket/");
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement