Compare products
No products added in the comparison table.
jQuery(document).ready(($){ $('a').attr('target', '_parent'); var body = $('body'), redirect_to_cart = false; // close colorbox if redirect to cart is active after add to cart body.on( 'adding_to_cart', ( $thisbutton, data ) { if( wc_add_to_cart_params.cart_redirect_after_add == 'yes' ) { wc_add_to_cart_params.cart_redirect_after_add = 'no'; redirect_to_cart = true; } }); // remove add to cart button after added body.on('added_to_cart', ( ev, fragments, cart_hash, button ){ if( redirect_to_cart == true ) { // redirect parent.window.location = wc_add_to_cart_params.cart_url; return; } $('a').attr('target', '_parent'); // Replace fragments if ( fragments ) { $.each(fragments, (key, value) { $(key, window.parent.document).replaceWith(value); }); } }); });