${function() {
const variantData = data.variant || {"id":"0838d8b1-89e4-4ae2-836f-7e5b8f078cd5","product_id":"c2983a5e-595b-4b68-b69e-68c734fcb5d4","title":"Brown white-small-18-22-13cm","weight_unit":"lb","inventory_quantity":99,"sku":"45056731-brown-white-small-18-22-13cm","barcode":"","position":1,"option1":"Brown white-small","option2":"18-22-13cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3543a7a235e3b5549ad11f0243b13676.jpeg","path":"3543a7a235e3b5549ad11f0243b13676.jpeg","width":640,"height":632,"alt":"","aspect_ratio":1.0126582278481013},"wholesale_price":[{"price":159.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"159.99","retail_price":"0","available":true,"url":"\/products\/2021-new-womens-leather-drawstring-large-capacity-bucket-bag-leather-hit-color-matching-bag-hand-bag-over-the-shoulder-bag?variant=0838d8b1-89e4-4ae2-836f-7e5b8f078cd5","available_quantity":999999999,"options":[{"name":"Color","value":"Brown white-small"},{"name":"Size","value":"18-22-13cm"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
Free shipping on orders over 35 !
30-day Return guarantee, 100% money-back guarantee
7*24h Service at: support@kylethomasw.com
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('12');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + '')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + '');
return `
`;
}()}
people are viewing this right now
${function() {
const postageFreeAmount = 35;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}