Fashion thick chain necklace
${function() {
const variantData = data.variant || {"id":"d5bdbada-ab67-4c4d-bdad-f3e50cf096b3","product_id":"efd8bd4e-a83d-4c25-9f06-406d854142c3","title":"gold","weight_unit":"kg","inventory_quantity":0,"sku":"662112081148-gold","barcode":"","position":1,"option1":"gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b623ffea2cb1e2f18cb20b17185714bb.jpeg","path":"b623ffea2cb1e2f18cb20b17185714bb.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.92,"min_quantity":1}],"weight":"0","compare_at_price":"34.84","price":"28.92","retail_price":"34.84","available":true,"url":"\/products\/fashion-thick-chain-necklace?variant=d5bdbada-ab67-4c4d-bdad-f3e50cf096b3","available_quantity":999999999,"options":[{"name":"color","value":"gold"}],"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":"d5bdbada-ab67-4c4d-bdad-f3e50cf096b3","product_id":"efd8bd4e-a83d-4c25-9f06-406d854142c3","title":"gold","weight_unit":"kg","inventory_quantity":0,"sku":"662112081148-gold","barcode":"","position":1,"option1":"gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b623ffea2cb1e2f18cb20b17185714bb.jpeg","path":"b623ffea2cb1e2f18cb20b17185714bb.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.92,"min_quantity":1}],"weight":"0","compare_at_price":"34.84","price":"28.92","retail_price":"34.84","available":true,"url":"\/products\/fashion-thick-chain-necklace?variant=d5bdbada-ab67-4c4d-bdad-f3e50cf096b3","available_quantity":999999999,"options":[{"name":"color","value":"gold"}],"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 `
`;
}()}