Ingvn - British Style Solid Patchwork Buckle Turn-back Collar Two Pieces (Without Belt)(5 Colors)
${function() {
const variantData = data.variant || {"id":"70139607-59d1-4c9f-abba-bf943389e270","product_id":"7be57454-d2a0-44fc-b364-b870c3b71caa","title":"White-S","weight_unit":"g","inventory_quantity":777,"sku":"HL0238-1-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff7225441a0e30520662bd42cc866537.png","path":"ff7225441a0e30520662bd42cc866537.png","width":667,"height":1000,"alt":"Ingvn - British Style Solid Patchwork Buckle Turn-Back Collar Two Pieces (Without Belt)(5 Colors)","aspect_ratio":0.667},"wholesale_price":[{"price":46.99,"min_quantity":1}],"weight":"0","compare_at_price":"56.99","price":"46.99","retail_price":"56.99","available":true,"url":"\/products\/casual-british-style-solid-split-joint-buckle-turn-back-collar-long-sleeve-two-pieces-without-belt?variant=70139607-59d1-4c9f-abba-bf943389e270","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":18,"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":"70139607-59d1-4c9f-abba-bf943389e270","product_id":"7be57454-d2a0-44fc-b364-b870c3b71caa","title":"White-S","weight_unit":"g","inventory_quantity":777,"sku":"HL0238-1-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff7225441a0e30520662bd42cc866537.png","path":"ff7225441a0e30520662bd42cc866537.png","width":667,"height":1000,"alt":"Ingvn - British Style Solid Patchwork Buckle Turn-Back Collar Two Pieces (Without Belt)(5 Colors)","aspect_ratio":0.667},"wholesale_price":[{"price":46.99,"min_quantity":1}],"weight":"0","compare_at_price":"56.99","price":"46.99","retail_price":"56.99","available":true,"url":"\/products\/casual-british-style-solid-split-joint-buckle-turn-back-collar-long-sleeve-two-pieces-without-belt?variant=70139607-59d1-4c9f-abba-bf943389e270","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":18,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}