Buckle Chain Earrings
${function() {
const variantData = data.variant || {"id":"f68474bf-e0ce-4442-8ea0-7ec95c8a0f7e","product_id":"e7d63cba-1e69-42df-9d6b-8b1c62d8cfac","title":"Gold","weight_unit":"kg","inventory_quantity":8662,"sku":"211204920-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9b737656f5967335edc890f2c5b1f4d7.jpeg","path":"9b737656f5967335edc890f2c5b1f4d7.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.18,"min_quantity":1}],"weight":"0.04","compare_at_price":"20.23","price":"16.18","retail_price":"20.23","available":true,"url":"\/products\/buckle-chain-earrings?variant=f68474bf-e0ce-4442-8ea0-7ec95c8a0f7e","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":20,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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":"f68474bf-e0ce-4442-8ea0-7ec95c8a0f7e","product_id":"e7d63cba-1e69-42df-9d6b-8b1c62d8cfac","title":"Gold","weight_unit":"kg","inventory_quantity":8662,"sku":"211204920-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9b737656f5967335edc890f2c5b1f4d7.jpeg","path":"9b737656f5967335edc890f2c5b1f4d7.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.18,"min_quantity":1}],"weight":"0.04","compare_at_price":"20.23","price":"16.18","retail_price":"20.23","available":true,"url":"\/products\/buckle-chain-earrings?variant=f68474bf-e0ce-4442-8ea0-7ec95c8a0f7e","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
`
}()}
${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 `
`;
}()}