EduardET

Updated custom woocomerce page

Jan 11th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. ( function( $ ) {
  3.     $( document ).ready( function() {
  4.         if ( $( 'body' ).hasClass( 'page-id-3008' ) ) {
  5.             var block1 = $( '.page-id-3008 .woocommerce-order' ),
  6.                 block2 = $( '#smuze-checkout-iframe' ),
  7.                 placeholder = $( '.page-id-3008 .bg-utfall .et_pb_column_3_4 .et_pb_column_inner_0' );
  8.             if ( block1.length ) {
  9.                 block1.detach();
  10.                 block1.appendTo( placeholder );
  11.             }
  12.             if ( block2.length ) {
  13.                 block2.detach();
  14.                 block2.appendTo( placeholder );
  15.             }
  16.         }
  17.     } );
  18. } )( jQuery );
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment