Temperament mix and match butterfly necklace
${function() {
const variantData = data.variant || {"id":"6a382e59-d571-470f-8827-06dd8df9a6f9","product_id":"7f02de66-3f34-49cb-b9b2-ad84b431e8e5","title":"gold","weight_unit":"kg","inventory_quantity":0,"sku":"662112081070-gold","barcode":"","position":1,"option1":"gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d716c55d7f6792f83199745a3d842732.jpeg","path":"d716c55d7f6792f83199745a3d842732.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.65,"min_quantity":1}],"weight":"0","compare_at_price":"40.81","price":"32.65","retail_price":"40.81","available":true,"url":"\/products\/temperament-mix-and-match-butterfly-necklace?variant=6a382e59-d571-470f-8827-06dd8df9a6f9","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":"6a382e59-d571-470f-8827-06dd8df9a6f9","product_id":"7f02de66-3f34-49cb-b9b2-ad84b431e8e5","title":"gold","weight_unit":"kg","inventory_quantity":0,"sku":"662112081070-gold","barcode":"","position":1,"option1":"gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d716c55d7f6792f83199745a3d842732.jpeg","path":"d716c55d7f6792f83199745a3d842732.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.65,"min_quantity":1}],"weight":"0","compare_at_price":"40.81","price":"32.65","retail_price":"40.81","available":true,"url":"\/products\/temperament-mix-and-match-butterfly-necklace?variant=6a382e59-d571-470f-8827-06dd8df9a6f9","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 `
`;
}()}