High-waisted Swimsuit with Long-sleeved Cardigan
${function() {
const variantData = data.variant || {"id":"f22cf1da-b7de-4306-b8a2-e6110016f466","product_id":"75f081da-6568-427e-bd97-bd8ffd4da0f7","title":"Pattern3-S","weight_unit":"kg","inventory_quantity":965,"sku":"BL230309306-Pattern3-S","barcode":"","position":9,"option1":"Pattern3","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7e4725d76b44c7ad8c61999c050fc8d2.jpeg","path":"7e4725d76b44c7ad8c61999c050fc8d2.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":30.2,"min_quantity":1}],"weight":"0","compare_at_price":"37","price":"30.2","retail_price":"37","available":true,"url":"\/products\/high-waisted-swimsuit-with-long-sleeved-cardigan?variant=f22cf1da-b7de-4306-b8a2-e6110016f466","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern3"},{"name":"Size","value":"S"}],"off_ratio":18,"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":"f22cf1da-b7de-4306-b8a2-e6110016f466","product_id":"75f081da-6568-427e-bd97-bd8ffd4da0f7","title":"Pattern3-S","weight_unit":"kg","inventory_quantity":965,"sku":"BL230309306-Pattern3-S","barcode":"","position":9,"option1":"Pattern3","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7e4725d76b44c7ad8c61999c050fc8d2.jpeg","path":"7e4725d76b44c7ad8c61999c050fc8d2.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":30.2,"min_quantity":1}],"weight":"0","compare_at_price":"37","price":"30.2","retail_price":"37","available":true,"url":"\/products\/high-waisted-swimsuit-with-long-sleeved-cardigan?variant=f22cf1da-b7de-4306-b8a2-e6110016f466","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern3"},{"name":"Size","value":"S"}],"off_ratio":18,"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 `
`;
}()}