${function() {
const variantData = data.variant || {"id":"9bf95433-ff57-4411-a5f4-c326d76df904","product_id":"d194a267-3bd2-48b6-ad13-d965eac76742","title":"Silver-One Size","weight_unit":"g","inventory_quantity":999982,"sku":"101109630001","barcode":"Silver-One SizeA00121583","position":1,"option1":"Silver","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8dac207e0b573d305d23d20a9e623ebf.jpeg","path":"8dac207e0b573d305d23d20a9e623ebf.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":3.99,"min_quantity":1}],"weight":"20","compare_at_price":"2.05","price":"3.99","retail_price":"2.05","available":true,"url":"\/products\/mens-personality-cool-trendy-necklace-and-pendant-accessories?variant=9bf95433-ff57-4411-a5f4-c326d76df904","available_quantity":999982,"options":[{"name":"Color","value":"Silver"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":31};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"9bf95433-ff57-4411-a5f4-c326d76df904","product_id":"d194a267-3bd2-48b6-ad13-d965eac76742","title":"Silver-One Size","weight_unit":"g","inventory_quantity":999982,"sku":"101109630001","barcode":"Silver-One SizeA00121583","position":1,"option1":"Silver","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8dac207e0b573d305d23d20a9e623ebf.jpeg","path":"8dac207e0b573d305d23d20a9e623ebf.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":3.99,"min_quantity":1}],"weight":"20","compare_at_price":"2.05","price":"3.99","retail_price":"2.05","available":true,"url":"\/products\/mens-personality-cool-trendy-necklace-and-pendant-accessories?variant=9bf95433-ff57-4411-a5f4-c326d76df904","available_quantity":999982,"options":[{"name":"Color","value":"Silver"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":31};
return `
`
}()}