Advertisement
Guest User

Untitled

a guest
May 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. add_action('wp_head', 'amazon_checkout_position');
  2. function amazon_checkout_position() {
  3.     ?>
  4.     <script type="text/javascript">
  5.         (function($) {
  6.             $( document ).ready(function() {
  7.                 $('.wc-amazon-checkout-message').appendTo('form.woocommerce-checkout div#order_info_col2');
  8.             });
  9.             $('.wc-amazon-checkout-message').contents().filter(function () {
  10.                 return this.nodeType === 3;
  11.             }).remove();​​​​​​​
  12.         })( jQuery );
  13.     </script>
  14.     <?php
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement