Fashion Spider Chic Pendant Necklace
${function() {
const variantData = data.variant || {"id":"f2f5a0c7-fbe2-47db-89b9-c66883b7df14","product_id":"97997bf5-7748-48b8-9df1-780f822f43e3","title":"black","weight_unit":"kg","inventory_quantity":0,"sku":"662112081071-black","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ed207336109e002655a1685588d2bb8d.jpeg","path":"ed207336109e002655a1685588d2bb8d.jpeg","width":750,"height":800,"alt":"","aspect_ratio":0.9375},"wholesale_price":[{"price":22.81,"min_quantity":1}],"weight":"0","compare_at_price":"28.16","price":"22.81","retail_price":"28.16","available":true,"url":"\/products\/fashion-spider-chic-pendant-necklace?variant=f2f5a0c7-fbe2-47db-89b9-c66883b7df14","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"off_ratio":19,"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":"f2f5a0c7-fbe2-47db-89b9-c66883b7df14","product_id":"97997bf5-7748-48b8-9df1-780f822f43e3","title":"black","weight_unit":"kg","inventory_quantity":0,"sku":"662112081071-black","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ed207336109e002655a1685588d2bb8d.jpeg","path":"ed207336109e002655a1685588d2bb8d.jpeg","width":750,"height":800,"alt":"","aspect_ratio":0.9375},"wholesale_price":[{"price":22.81,"min_quantity":1}],"weight":"0","compare_at_price":"28.16","price":"22.81","retail_price":"28.16","available":true,"url":"\/products\/fashion-spider-chic-pendant-necklace?variant=f2f5a0c7-fbe2-47db-89b9-c66883b7df14","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"off_ratio":19,"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 `
`;
}()}