Simple snake bone necklace
${function() {
const variantData = data.variant || {"id":"2a266cbd-5073-4cef-9418-796927afd41d","product_id":"cd4a8793-d774-4e0b-a141-850e00c9470d","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"662112091296","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"37.1","price":"26.99","retail_price":"37.1","available":true,"url":"\/products\/simple-snake-bone-necklace?variant=2a266cbd-5073-4cef-9418-796927afd41d","available_quantity":999999999,"options":[],"off_ratio":27,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"2a266cbd-5073-4cef-9418-796927afd41d","product_id":"cd4a8793-d774-4e0b-a141-850e00c9470d","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"662112091296","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"37.1","price":"26.99","retail_price":"37.1","available":true,"url":"\/products\/simple-snake-bone-necklace?variant=2a266cbd-5073-4cef-9418-796927afd41d","available_quantity":999999999,"options":[],"off_ratio":27,"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 `
`;
}()}