Temperament big two-piece set
${function() {
const variantData = data.variant || {"id":"fd9e1d92-90c2-42ec-8846-0d13a7a6e80f","product_id":"e9f804e2-a3db-47ec-b631-ba306d15cebd","title":"blue-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220815875-blue-2XL","barcode":"","position":1,"option1":"blue","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3cf8def5793b073f002f149804895958.jpeg","path":"3cf8def5793b073f002f149804895958.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.94,"min_quantity":1}],"weight":"0","compare_at_price":"48.11","price":"38.94","retail_price":"48.11","available":true,"url":"\/products\/temperament-big-two-piece-set?variant=fd9e1d92-90c2-42ec-8846-0d13a7a6e80f","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"2XL"}],"off_ratio":19,"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":"fd9e1d92-90c2-42ec-8846-0d13a7a6e80f","product_id":"e9f804e2-a3db-47ec-b631-ba306d15cebd","title":"blue-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220815875-blue-2XL","barcode":"","position":1,"option1":"blue","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3cf8def5793b073f002f149804895958.jpeg","path":"3cf8def5793b073f002f149804895958.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.94,"min_quantity":1}],"weight":"0","compare_at_price":"48.11","price":"38.94","retail_price":"48.11","available":true,"url":"\/products\/temperament-big-two-piece-set?variant=fd9e1d92-90c2-42ec-8846-0d13a7a6e80f","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"2XL"}],"off_ratio":19,"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 `
`;
}()}