Backless Ruffle Edge Swimsuit
${function() {
const variantData = data.variant || {"id":"661da07c-2630-4a5d-a37d-13ac51e49904","product_id":"1316cc39-f2b9-4744-9064-1bc4737740ce","title":"Red-S","weight_unit":"kg","inventory_quantity":1402,"sku":"BL230309366-Red-S","barcode":"","position":5,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e946a5fceacc372b02c24f2e9f72dcd6.jpeg","path":"e946a5fceacc372b02c24f2e9f72dcd6.jpeg","width":1340,"height":1785,"alt":"","aspect_ratio":0.7507002801120448},"wholesale_price":[{"price":26.35,"min_quantity":1}],"weight":"0.26","compare_at_price":"32","price":"26.35","retail_price":"32","available":true,"url":"\/products\/backless-ruffle-edge-swimsuit?variant=661da07c-2630-4a5d-a37d-13ac51e49904","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"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":"661da07c-2630-4a5d-a37d-13ac51e49904","product_id":"1316cc39-f2b9-4744-9064-1bc4737740ce","title":"Red-S","weight_unit":"kg","inventory_quantity":1402,"sku":"BL230309366-Red-S","barcode":"","position":5,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e946a5fceacc372b02c24f2e9f72dcd6.jpeg","path":"e946a5fceacc372b02c24f2e9f72dcd6.jpeg","width":1340,"height":1785,"alt":"","aspect_ratio":0.7507002801120448},"wholesale_price":[{"price":26.35,"min_quantity":1}],"weight":"0.26","compare_at_price":"32","price":"26.35","retail_price":"32","available":true,"url":"\/products\/backless-ruffle-edge-swimsuit?variant=661da07c-2630-4a5d-a37d-13ac51e49904","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"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 `
`;
}()}