Diamond Drop-shaped Tassel Earrings
${function() {
const variantData = data.variant || {"id":"6cb14e9f-3bfa-4d46-8392-ffd0874e4304","product_id":"85099912-03af-460b-99c9-8253ba979277","title":"Gold","weight_unit":"kg","inventory_quantity":1669,"sku":"2111111401-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1058d1bd29b051221a2dd4b86d703911.jpeg","path":"1058d1bd29b051221a2dd4b86d703911.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.98,"min_quantity":1}],"weight":"0.04","compare_at_price":"32.48","price":"25.98","retail_price":"32.48","available":true,"url":"\/products\/diamond-drop-shaped-tassel-earrings?variant=6cb14e9f-3bfa-4d46-8392-ffd0874e4304","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":"6cb14e9f-3bfa-4d46-8392-ffd0874e4304","product_id":"85099912-03af-460b-99c9-8253ba979277","title":"Gold","weight_unit":"kg","inventory_quantity":1669,"sku":"2111111401-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1058d1bd29b051221a2dd4b86d703911.jpeg","path":"1058d1bd29b051221a2dd4b86d703911.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.98,"min_quantity":1}],"weight":"0.04","compare_at_price":"32.48","price":"25.98","retail_price":"32.48","available":true,"url":"\/products\/diamond-drop-shaped-tassel-earrings?variant=6cb14e9f-3bfa-4d46-8392-ffd0874e4304","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 `
`;
}()}