Exaggerated Irregular Metal Earrings
${function() {
const variantData = data.variant || {"id":"395772c8-dc01-4017-8cf7-cba6e97e73c7","product_id":"1f3b8acb-c295-4388-ad96-839bb21516db","title":"Silver","weight_unit":"kg","inventory_quantity":26215,"sku":"211203854-Silver","barcode":"","position":2,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cd52063cba240c960bf3f14c15449d30.jpeg","path":"cd52063cba240c960bf3f14c15449d30.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.9,"min_quantity":1}],"weight":"0.04","compare_at_price":"17.95","price":"14.9","retail_price":"17.95","available":true,"url":"\/products\/exaggerated-irregular-metal-earrings?variant=395772c8-dc01-4017-8cf7-cba6e97e73c7","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"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":"395772c8-dc01-4017-8cf7-cba6e97e73c7","product_id":"1f3b8acb-c295-4388-ad96-839bb21516db","title":"Silver","weight_unit":"kg","inventory_quantity":26215,"sku":"211203854-Silver","barcode":"","position":2,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cd52063cba240c960bf3f14c15449d30.jpeg","path":"cd52063cba240c960bf3f14c15449d30.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.9,"min_quantity":1}],"weight":"0.04","compare_at_price":"17.95","price":"14.9","retail_price":"17.95","available":true,"url":"\/products\/exaggerated-irregular-metal-earrings?variant=395772c8-dc01-4017-8cf7-cba6e97e73c7","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"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 `
`;
}()}