-
My Cart -
Checkout -
Confirmation
//$($('.woocommerce-cart-form__cart-item')[0]).show('slow')
// $('.row_expand').click(function(){ $(this).parent().parent().find('.kwc_cart_row2 .kwc_meta')[0].show() } )
( function ( $ ) { var debug = 1;
console.log('kdtla cart start ...');
// start, on load window.addEventListener('load', function() { if (debug) console.log('cart loaded');
do_row_expand();
// price discount k_price_discount();
// expand rows by default $('.kwc_cart_row2 .kwc_meta').show();
// product count in title $('#title_q').text('('+$('.kwc_cart_row1').length+')');
}) //end load
// product count in title - update after removal (not removed_from_cart) $( document.body ).on( 'updated_wc_div', function() { setTimeout(() => { $('#title_q').text('('+$('.kwc_cart_row1').length+')'); do_row_expand(); //? }, 500); } );
$( document.body ).on( 'updated_wc_div', k_price_discount ); $( document.body ).on( 'updated_wc_div', do_row_expand ); $( document.body ).on( 'updated_cart_totals', do_row_expand ); // to expand after removal or undo
function do_row_expand() {
$('.row_expand').click(function(){
console.log(' cart - row expand');
if ( $(this).parent().parent().find('.kwc_cart_row2 .kwc_meta:visible').length ) { $(this).css('transform','rotate(0deg)'); $(this).parent().parent().find('.kwc_cart_row2 .kwc_meta').hide(); } else { $(this).css('transform','rotate(-90deg)'); $(this).parent().parent().find('.kwc_cart_row2 .kwc_meta').show(); }
});
// hide last product after removal if ($('.cart-empty').length == 1) { $('.cart_item').hide(); console.log(' cart empty, hide last product...'); }
}
// price discount function k_price_discount() { const k_price = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD", minimumFractionDigits: 2 });
$('.product-price .woocommerce-Price-amount').each(function() { $(this).prepend(''+ k_price.format( $(this).text().substr(1,10)*1.2 ) +' '); });
$('.product-subtotal .woocommerce-Price-amount').each(function() {
var pr = $(this).text().substr(1,10).replace(',','');
$(this).prepend(''+ k_price.format( pr *1.2 ) +' ');
$(this).append('
You are saving:
'+ k_price.format( pr *0.2 ) +'
');
});
}
}( jQuery ) );
Zero Fade
We guarantee that your print will not peel or fade
Order Accuracy
We guarantee that the order you receive will match the creative proof you approve
Top Quality
We will do our best to make sure your artwork is printed at the highest quality achievable
No Hidden Fees
If there are any additional fees required to get this job done right we will take care of it.