Ingvn - Ethnic Style Striped Printed Cotton Linen Midi Length Coat
${function() {
const variantData = data.variant || {"id":"30cab85e-0528-4cce-a06a-823e9ff1ac54","product_id":"61e122e0-399a-4cd6-825f-c82e4f828fed","title":"Red-S","weight_unit":"kg","inventory_quantity":99999,"sku":"TP2031494-Red-S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b289d0f25b77a52ffbd281876b15103b.jpeg","path":"b289d0f25b77a52ffbd281876b15103b.jpeg","width":751,"height":1000,"alt":"Ingvn - Ethnic Style Striped Printed Cotton Linen Midi Length Coat Red \/ S Tops","aspect_ratio":0.751},"wholesale_price":[{"price":32.57,"min_quantity":1}],"weight":"0","compare_at_price":"64","price":"32.57","retail_price":"64","available":true,"url":"\/products\/ethnic-style-striped-printed-cotton-linen-midi-length-coat?variant=30cab85e-0528-4cce-a06a-823e9ff1ac54","available_quantity":999999999,"options":[{"name":"color","value":"Red"},{"name":"size","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const postageFreeAmount = 10;
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 `
`;
}()}
${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":"30cab85e-0528-4cce-a06a-823e9ff1ac54","product_id":"61e122e0-399a-4cd6-825f-c82e4f828fed","title":"Red-S","weight_unit":"kg","inventory_quantity":99999,"sku":"TP2031494-Red-S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b289d0f25b77a52ffbd281876b15103b.jpeg","path":"b289d0f25b77a52ffbd281876b15103b.jpeg","width":751,"height":1000,"alt":"Ingvn - Ethnic Style Striped Printed Cotton Linen Midi Length Coat Red \/ S Tops","aspect_ratio":0.751},"wholesale_price":[{"price":32.57,"min_quantity":1}],"weight":"0","compare_at_price":"64","price":"32.57","retail_price":"64","available":true,"url":"\/products\/ethnic-style-striped-printed-cotton-linen-midi-length-coat?variant=30cab85e-0528-4cce-a06a-823e9ff1ac54","available_quantity":999999999,"options":[{"name":"color","value":"Red"},{"name":"size","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}