Ingvn - Fashion Street Plaid Buckle Turn-back Collar Outerwear(3 Colors)
${function() {
const variantData = data.variant || {"id":"ac14113e-7ada-4698-b248-ff678e7fc941","product_id":"1e70ae9c-f848-49d7-8bc4-41cef96b4197","title":"Khaki-S","weight_unit":"g","inventory_quantity":777,"sku":"HL0256-1-S","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cc2c0232e5947c8f39f35e293fb281a7.jpeg","path":"cc2c0232e5947c8f39f35e293fb281a7.jpeg","width":667,"height":1000,"alt":"Ingvn - Fashion Street Plaid Buckle Turn-Back Collar Outerwear(3 Colors) Khaki \/ S Outerwear\/Suit","aspect_ratio":0.667},"wholesale_price":[{"price":52.49,"min_quantity":1}],"weight":"0","compare_at_price":"67.48","price":"52.49","retail_price":"67.48","available":true,"url":"\/products\/fashion-street-plaid-split-joint-buckle-turn-back-collar-outerwear?variant=ac14113e-7ada-4698-b248-ff678e7fc941","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":22,"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":"ac14113e-7ada-4698-b248-ff678e7fc941","product_id":"1e70ae9c-f848-49d7-8bc4-41cef96b4197","title":"Khaki-S","weight_unit":"g","inventory_quantity":777,"sku":"HL0256-1-S","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cc2c0232e5947c8f39f35e293fb281a7.jpeg","path":"cc2c0232e5947c8f39f35e293fb281a7.jpeg","width":667,"height":1000,"alt":"Ingvn - Fashion Street Plaid Buckle Turn-Back Collar Outerwear(3 Colors) Khaki \/ S Outerwear\/Suit","aspect_ratio":0.667},"wholesale_price":[{"price":52.49,"min_quantity":1}],"weight":"0","compare_at_price":"67.48","price":"52.49","retail_price":"67.48","available":true,"url":"\/products\/fashion-street-plaid-split-joint-buckle-turn-back-collar-outerwear?variant=ac14113e-7ada-4698-b248-ff678e7fc941","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":22,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}