Geometric Metal Earrings
${function() {
const variantData = data.variant || {"id":"5a32689a-77f0-4609-8aa5-24ae80cc041b","product_id":"c29f10fa-c6f0-450a-9673-443b6ec03d43","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"211202841-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f679174268657ffc3e7f7ce57b70d1ff.jpeg","path":"f679174268657ffc3e7f7ce57b70d1ff.jpeg","width":805,"height":805,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.57,"min_quantity":1}],"weight":"0.03","compare_at_price":"15.14","price":"12.57","retail_price":"15.14","available":true,"url":"\/products\/geometric-metal-earrings?variant=5a32689a-77f0-4609-8aa5-24ae80cc041b","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":17,"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":"5a32689a-77f0-4609-8aa5-24ae80cc041b","product_id":"c29f10fa-c6f0-450a-9673-443b6ec03d43","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"211202841-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f679174268657ffc3e7f7ce57b70d1ff.jpeg","path":"f679174268657ffc3e7f7ce57b70d1ff.jpeg","width":805,"height":805,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.57,"min_quantity":1}],"weight":"0.03","compare_at_price":"15.14","price":"12.57","retail_price":"15.14","available":true,"url":"\/products\/geometric-metal-earrings?variant=5a32689a-77f0-4609-8aa5-24ae80cc041b","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":17,"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 `
`;
}()}