Vintage V-Neck Printed Swimsuit Set -Multiple options
${function() {
const variantData = data.variant || {"id":"14d9a2a6-1486-4091-9a93-5c5c1fe3e532","product_id":"850f6f6c-fc94-4163-b70a-f18ce8df7596","title":"Pattern-3-S","weight_unit":"kg","inventory_quantity":958,"sku":"BL230309379-Pattern-3-S","barcode":"","position":11,"option1":"Pattern-3","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0c44537578758c85fd4e3f71ade5013a.jpeg","path":"0c44537578758c85fd4e3f71ade5013a.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"66","price":"49.99","retail_price":"66","available":true,"url":"\/products\/vintage-v-neck-printed-swimsuit-set-multiple-options-9r8f?variant=14d9a2a6-1486-4091-9a93-5c5c1fe3e532","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern-3"},{"name":"Size","value":"S"}],"off_ratio":24,"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":"14d9a2a6-1486-4091-9a93-5c5c1fe3e532","product_id":"850f6f6c-fc94-4163-b70a-f18ce8df7596","title":"Pattern-3-S","weight_unit":"kg","inventory_quantity":958,"sku":"BL230309379-Pattern-3-S","barcode":"","position":11,"option1":"Pattern-3","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0c44537578758c85fd4e3f71ade5013a.jpeg","path":"0c44537578758c85fd4e3f71ade5013a.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"66","price":"49.99","retail_price":"66","available":true,"url":"\/products\/vintage-v-neck-printed-swimsuit-set-multiple-options-9r8f?variant=14d9a2a6-1486-4091-9a93-5c5c1fe3e532","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern-3"},{"name":"Size","value":"S"}],"off_ratio":24,"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 `
`;
}()}