Off shoulder Solid Color Mini Dress
${function() {
const variantData = data.variant || {"id":"866d9ee4-3e23-4ff3-8ca5-b38062b94db5","product_id":"1c495ab2-fac7-44f7-bc5c-6009fd82845b","title":"red-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21042304-red-s","barcode":"","position":1,"option1":"red","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/313a6d6e97530d3364b0b9270502bead.jpg","path":"313a6d6e97530d3364b0b9270502bead.jpg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":27.63,"min_quantity":1}],"weight":"0","compare_at_price":"31.4","price":"27.63","retail_price":"31.4","available":true,"url":"\/products\/off-shoulder-solid-color-mini-dress_qhil?variant=866d9ee4-3e23-4ff3-8ca5-b38062b94db5","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"s"}],"off_ratio":12,"flashsale_info":[],"sales":2};
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":"866d9ee4-3e23-4ff3-8ca5-b38062b94db5","product_id":"1c495ab2-fac7-44f7-bc5c-6009fd82845b","title":"red-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21042304-red-s","barcode":"","position":1,"option1":"red","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/313a6d6e97530d3364b0b9270502bead.jpg","path":"313a6d6e97530d3364b0b9270502bead.jpg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":27.63,"min_quantity":1}],"weight":"0","compare_at_price":"31.4","price":"27.63","retail_price":"31.4","available":true,"url":"\/products\/off-shoulder-solid-color-mini-dress_qhil?variant=866d9ee4-3e23-4ff3-8ca5-b38062b94db5","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"s"}],"off_ratio":12,"flashsale_info":[],"sales":2};
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 `
`;
}()}