Chic sweater for niche design
${function() {
const variantData = data.variant || {"id":"d2afc53a-bd0e-4385-9b2c-ae1ffe37fc31","product_id":"5d057f98-d5bb-4f63-a25b-533c79654c85","title":"navy-one size","weight_unit":"kg","inventory_quantity":0,"sku":"66221019307-navy-one size","barcode":"","position":2,"option1":"navy","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a8304b48671e51ac77aa585b7b5baa4d.jpeg","path":"a8304b48671e51ac77aa585b7b5baa4d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.69,"min_quantity":1}],"weight":"0.5","compare_at_price":"42.49","price":"35.69","retail_price":"42.49","available":true,"url":"\/products\/chic-sweater-for-niche-design?variant=d2afc53a-bd0e-4385-9b2c-ae1ffe37fc31","available_quantity":999999999,"options":[{"name":"color","value":"navy"},{"name":"size","value":"one size"}],"off_ratio":16,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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.
${function(){
const variantData = data.variant || {"id":"d2afc53a-bd0e-4385-9b2c-ae1ffe37fc31","product_id":"5d057f98-d5bb-4f63-a25b-533c79654c85","title":"navy-one size","weight_unit":"kg","inventory_quantity":0,"sku":"66221019307-navy-one size","barcode":"","position":2,"option1":"navy","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a8304b48671e51ac77aa585b7b5baa4d.jpeg","path":"a8304b48671e51ac77aa585b7b5baa4d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.69,"min_quantity":1}],"weight":"0.5","compare_at_price":"42.49","price":"35.69","retail_price":"42.49","available":true,"url":"\/products\/chic-sweater-for-niche-design?variant=d2afc53a-bd0e-4385-9b2c-ae1ffe37fc31","available_quantity":999999999,"options":[{"name":"color","value":"navy"},{"name":"size","value":"one size"}],"off_ratio":16,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}