Vintage V-Neck Printed Swimsuit Set -Multiple options
${function() {
const variantData = data.variant || {"id":"a047fccd-f2c3-4d2a-84d7-f7340bbebefe","product_id":"2bf8fce6-0dec-4b1b-8949-9b3dae8d2990","title":"Pattern-1-S","weight_unit":"kg","inventory_quantity":983,"sku":"BL230309379-Pattern-1-S","barcode":"","position":1,"option1":"Pattern-1","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de71a75200b46610202163f313628619.jpeg","path":"de71a75200b46610202163f313628619.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"73.92","price":"49.99","retail_price":"73.92","available":true,"url":"\/products\/vintage-v-neck-printed-swimsuit-set-multiple-options-9r8f-xsfp-6yb6?variant=a047fccd-f2c3-4d2a-84d7-f7340bbebefe","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern-1"},{"name":"Size","value":"S"}],"off_ratio":32,"flashsale_info":[],"sales":1};
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":"a047fccd-f2c3-4d2a-84d7-f7340bbebefe","product_id":"2bf8fce6-0dec-4b1b-8949-9b3dae8d2990","title":"Pattern-1-S","weight_unit":"kg","inventory_quantity":983,"sku":"BL230309379-Pattern-1-S","barcode":"","position":1,"option1":"Pattern-1","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de71a75200b46610202163f313628619.jpeg","path":"de71a75200b46610202163f313628619.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"73.92","price":"49.99","retail_price":"73.92","available":true,"url":"\/products\/vintage-v-neck-printed-swimsuit-set-multiple-options-9r8f-xsfp-6yb6?variant=a047fccd-f2c3-4d2a-84d7-f7340bbebefe","available_quantity":999999999,"options":[{"name":"Color","value":"Pattern-1"},{"name":"Size","value":"S"}],"off_ratio":32,"flashsale_info":[],"sales":1};
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 `
`;
}()}