${function() {
const variantData = data.variant || {"id":"d830145a-e662-4e0e-86a1-289c5c1fcae9","product_id":"14670cbd-2e0c-4d62-a5ce-1a1a2fda3ff8","title":"gold-7","weight_unit":"kg","inventory_quantity":1000,"sku":"CP10410602715L07","barcode":"","position":7,"option1":"gold","option2":"7","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9b7ef58ad9e211d9be68678e91c23007.jpeg","path":"9b7ef58ad9e211d9be68678e91c23007.jpeg","width":700,"height":1000,"alt":"","aspect_ratio":0.7},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"21.99","price":"7.99","retail_price":"21.99","available":true,"url":"\/products\/rainbow-flag-stainless-steel-ring?variant=d830145a-e662-4e0e-86a1-289c5c1fcae9","available_quantity":999999999,"options":[{"name":"Color","value":"gold"},{"name":"Size","value":"7"}],"off_ratio":64,"flashsale_info":[],"sales":14};
const saveType = "amount";
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}
`
}()}
Product was out of stock.
Product is unavailable.
${function() {
const postageFreeAmount = 79;
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 `
`;
}()}