Summer Sweet Two-pieces Set
${function() {
const variantData = data.variant || {"id":"d652f8e6-ea7d-47ea-af6c-c6ec32cce078","product_id":"b25a1dc4-970d-4c74-984d-60ecd370043b","title":"two-pieces-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21052017-two-pieces-s","barcode":"","position":1,"option1":"two-pieces","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d60550479d7555001cdf6952df06e27.jpg","path":"5d60550479d7555001cdf6952df06e27.jpg","width":640,"height":800,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":32.45,"min_quantity":1}],"weight":"0","compare_at_price":"39.96","price":"32.45","retail_price":"39.96","available":true,"url":"\/products\/summer-sweet-two-pieces-set?variant=d652f8e6-ea7d-47ea-af6c-c6ec32cce078","available_quantity":999999999,"options":[{"name":"color","value":"two-pieces"},{"name":"size","value":"s"}],"off_ratio":19,"flashsale_info":[],"sales":15};
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":"d652f8e6-ea7d-47ea-af6c-c6ec32cce078","product_id":"b25a1dc4-970d-4c74-984d-60ecd370043b","title":"two-pieces-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21052017-two-pieces-s","barcode":"","position":1,"option1":"two-pieces","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d60550479d7555001cdf6952df06e27.jpg","path":"5d60550479d7555001cdf6952df06e27.jpg","width":640,"height":800,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":32.45,"min_quantity":1}],"weight":"0","compare_at_price":"39.96","price":"32.45","retail_price":"39.96","available":true,"url":"\/products\/summer-sweet-two-pieces-set?variant=d652f8e6-ea7d-47ea-af6c-c6ec32cce078","available_quantity":999999999,"options":[{"name":"color","value":"two-pieces"},{"name":"size","value":"s"}],"off_ratio":19,"flashsale_info":[],"sales":15};
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 `
`;
}()}