Ingvn - Linen Casual Solid Pants
${function() {
const variantData = data.variant || {"id":"2fed5603-4594-48e4-b244-ee28e62a7828","product_id":"2e5ecc25-e139-41a5-b352-fdd781efa3bc","title":"Gray-M","weight_unit":"g","inventory_quantity":998,"sku":"82442109-beige-m","barcode":"","position":1,"option1":"Gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d930b3588fda560bb37ede8df287e335.jpeg","path":"d930b3588fda560bb37ede8df287e335.jpeg","width":713,"height":1000,"alt":"Ingvn - Linen Casual Solid Pants Gray \/ M","aspect_ratio":0.713},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.99","retail_price":"0","available":true,"url":"\/products\/linen-casual-solid-pants?variant=2fed5603-4594-48e4-b244-ee28e62a7828","available_quantity":998,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"M"}],"off_ratio":0,"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":"2fed5603-4594-48e4-b244-ee28e62a7828","product_id":"2e5ecc25-e139-41a5-b352-fdd781efa3bc","title":"Gray-M","weight_unit":"g","inventory_quantity":998,"sku":"82442109-beige-m","barcode":"","position":1,"option1":"Gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d930b3588fda560bb37ede8df287e335.jpeg","path":"d930b3588fda560bb37ede8df287e335.jpeg","width":713,"height":1000,"alt":"Ingvn - Linen Casual Solid Pants Gray \/ M","aspect_ratio":0.713},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.99","retail_price":"0","available":true,"url":"\/products\/linen-casual-solid-pants?variant=2fed5603-4594-48e4-b244-ee28e62a7828","available_quantity":998,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}