Casual Cotton Shirt & Short Set
${function() {
const variantData = data.variant || {"id":"01cd4742-adcf-4323-a53f-2cb878353fb0","product_id":"1700c92a-d274-4310-94bf-a52fa21eb7ad","title":"Purple-L","weight_unit":"kg","inventory_quantity":997,"sku":"220514431-Purple-L","barcode":"","position":5,"option1":"Purple","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/51ee0cafa9b42e6e1dcc5f6f39f3813c.jpeg","path":"51ee0cafa9b42e6e1dcc5f6f39f3813c.jpeg","width":666,"height":891,"alt":"","aspect_ratio":0.7474747474747475},"wholesale_price":[{"price":38.41,"min_quantity":1}],"weight":"0","compare_at_price":"48.99","price":"38.41","retail_price":"48.99","available":true,"url":"\/products\/casual-cotton-shirt-short-set?variant=01cd4742-adcf-4323-a53f-2cb878353fb0","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"L"}],"off_ratio":22,"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":"01cd4742-adcf-4323-a53f-2cb878353fb0","product_id":"1700c92a-d274-4310-94bf-a52fa21eb7ad","title":"Purple-L","weight_unit":"kg","inventory_quantity":997,"sku":"220514431-Purple-L","barcode":"","position":5,"option1":"Purple","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/51ee0cafa9b42e6e1dcc5f6f39f3813c.jpeg","path":"51ee0cafa9b42e6e1dcc5f6f39f3813c.jpeg","width":666,"height":891,"alt":"","aspect_ratio":0.7474747474747475},"wholesale_price":[{"price":38.41,"min_quantity":1}],"weight":"0","compare_at_price":"48.99","price":"38.41","retail_price":"48.99","available":true,"url":"\/products\/casual-cotton-shirt-short-set?variant=01cd4742-adcf-4323-a53f-2cb878353fb0","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"L"}],"off_ratio":22,"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 `
`;
}()}