Personality Spider Necklace
${function() {
const variantData = data.variant || {"id":"ec725220-0196-4365-afa3-d70f046e65c0","product_id":"304f1780-6a34-46b1-9481-1b6630e8b473","title":"gold","weight_unit":"kg","inventory_quantity":0,"sku":"662112131338-gold","barcode":"","position":1,"option1":"gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e933a9dbcaf6c5e04eb0681eb1924633.jpeg","path":"e933a9dbcaf6c5e04eb0681eb1924633.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.64,"min_quantity":1}],"weight":"0","compare_at_price":"27.61","price":"22.64","retail_price":"27.61","available":true,"url":"\/products\/personality-spider-necklace?variant=ec725220-0196-4365-afa3-d70f046e65c0","available_quantity":999999999,"options":[{"name":"color","value":"gold"}],"off_ratio":18,"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":"ec725220-0196-4365-afa3-d70f046e65c0","product_id":"304f1780-6a34-46b1-9481-1b6630e8b473","title":"gold","weight_unit":"kg","inventory_quantity":0,"sku":"662112131338-gold","barcode":"","position":1,"option1":"gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e933a9dbcaf6c5e04eb0681eb1924633.jpeg","path":"e933a9dbcaf6c5e04eb0681eb1924633.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.64,"min_quantity":1}],"weight":"0","compare_at_price":"27.61","price":"22.64","retail_price":"27.61","available":true,"url":"\/products\/personality-spider-necklace?variant=ec725220-0196-4365-afa3-d70f046e65c0","available_quantity":999999999,"options":[{"name":"color","value":"gold"}],"off_ratio":18,"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 `
`;
}()}