Vintage V-Neck Printed Swimsuit Set -Multiple options
${function() {
const variantData = data.variant || {"id":"a1305fcf-f29d-4bb5-b219-9e130388bfca","product_id":"850f6f6c-fc94-4163-b70a-f18ce8df7596","title":"Pattern-2-S","weight_unit":"kg","inventory_quantity":969,"sku":"BL230309379-Pattern-2-S","barcode":"","position":6,"option1":"Pattern-2","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/78d289a4c9bcb880cb0b001e6331971b.jpeg","path":"78d289a4c9bcb880cb0b001e6331971b.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=a1305fcf-f29d-4bb5-b219-9e130388bfca","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern-2"},{"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":"a1305fcf-f29d-4bb5-b219-9e130388bfca","product_id":"850f6f6c-fc94-4163-b70a-f18ce8df7596","title":"Pattern-2-S","weight_unit":"kg","inventory_quantity":969,"sku":"BL230309379-Pattern-2-S","barcode":"","position":6,"option1":"Pattern-2","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/78d289a4c9bcb880cb0b001e6331971b.jpeg","path":"78d289a4c9bcb880cb0b001e6331971b.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=a1305fcf-f29d-4bb5-b219-9e130388bfca","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern-2"},{"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 `
`;
}()}