${function() {
const variantData = data.variant || {"id":"9397075b-c4df-42ad-917c-06bbb5311691","product_id":"15d34c96-9278-4393-a36a-623ef76fdcb1","title":"color1-One Size","weight_unit":"kg","inventory_quantity":0,"sku":"X208-241219-01-UW54PX7DSM-color1-One Size","barcode":"","position":1,"option1":"color1","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/52ad1b2dd96095d7f8491188c0f98d22.jpeg","path":"52ad1b2dd96095d7f8491188c0f98d22.jpeg","width":768,"height":1024,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"7.99","price":"7.99","retail_price":"7.99","available":true,"url":"\/products\/simple-cowhide-rope-ceramic-kiln-changed-bead-bracelet-bohemian-couple-jewelry?variant=9397075b-c4df-42ad-917c-06bbb5311691","available_quantity":999999999,"options":[{"name":"Color","value":"color1"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 `
`;
}()}