Casual Classic V-neck Maxi Dress
${function() {
const variantData = data.variant || {"id":"cd63787f-ab16-488f-8193-d348fc4577fb","product_id":"fe8be640-688d-42a2-a5c4-3868fa70a44a","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2304183406-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d1d667092dc0dfd694e9d40e64669dd3.png","path":"d1d667092dc0dfd694e9d40e64669dd3.png","width":1080,"height":1440,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":43.56,"min_quantity":1}],"weight":"0.3","compare_at_price":"61.6","price":"43.56","retail_price":"61.6","available":true,"url":"\/products\/casual-classic-v-neck-maxi-dress-yqsd?variant=cd63787f-ab16-488f-8193-d348fc4577fb","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":29,"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":"cd63787f-ab16-488f-8193-d348fc4577fb","product_id":"fe8be640-688d-42a2-a5c4-3868fa70a44a","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2304183406-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d1d667092dc0dfd694e9d40e64669dd3.png","path":"d1d667092dc0dfd694e9d40e64669dd3.png","width":1080,"height":1440,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":43.56,"min_quantity":1}],"weight":"0.3","compare_at_price":"61.6","price":"43.56","retail_price":"61.6","available":true,"url":"\/products\/casual-classic-v-neck-maxi-dress-yqsd?variant=cd63787f-ab16-488f-8193-d348fc4577fb","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":29,"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 `
`;
}()}