Casual Cozy Solid Color Sports two-piece suits
${function() {
const variantData = data.variant || {"id":"445df887-2ab4-4440-b6e4-f877a28ea17d","product_id":"72897e14-e190-4916-a1f4-eee1aec91427","title":"pink-s","weight_unit":"kg","inventory_quantity":0,"sku":"20111114-pink-s","barcode":"","position":11,"option1":"pink","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb141889a86273406e31a98abf2d7a67.jpeg","path":"bb141889a86273406e31a98abf2d7a67.jpeg","width":1426,"height":1427,"alt":"","aspect_ratio":0.9992992291520673},"wholesale_price":[{"price":31.49,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"31.49","retail_price":"40","available":true,"url":"\/products\/casual-cozy-solid-color-sports-two-piece-suits?variant=445df887-2ab4-4440-b6e4-f877a28ea17d","available_quantity":999999999,"options":[{"name":"color","value":"pink"},{"name":"size","value":"s"}],"off_ratio":21,"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":"445df887-2ab4-4440-b6e4-f877a28ea17d","product_id":"72897e14-e190-4916-a1f4-eee1aec91427","title":"pink-s","weight_unit":"kg","inventory_quantity":0,"sku":"20111114-pink-s","barcode":"","position":11,"option1":"pink","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb141889a86273406e31a98abf2d7a67.jpeg","path":"bb141889a86273406e31a98abf2d7a67.jpeg","width":1426,"height":1427,"alt":"","aspect_ratio":0.9992992291520673},"wholesale_price":[{"price":31.49,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"31.49","retail_price":"40","available":true,"url":"\/products\/casual-cozy-solid-color-sports-two-piece-suits?variant=445df887-2ab4-4440-b6e4-f877a28ea17d","available_quantity":999999999,"options":[{"name":"color","value":"pink"},{"name":"size","value":"s"}],"off_ratio":21,"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 `
`;
}()}