Retro Pearl &thick Chain Necklace (Can Be Wrapped)
${function() {
const variantData = data.variant || {"id":"e9a08a85-0653-4eb1-a7af-7daca28d336a","product_id":"85f5cf6e-9aac-43a0-8e5e-9ae8d8ac2bfa","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"211123499-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c21e1fb5a2706c1fca721af844e441e5.jpeg","path":"c21e1fb5a2706c1fca721af844e441e5.jpeg","width":888,"height":1065,"alt":"","aspect_ratio":0.8338028169014085},"wholesale_price":[{"price":23.49,"min_quantity":1}],"weight":"0.08","compare_at_price":"27.64","price":"23.49","retail_price":"27.64","available":true,"url":"\/products\/retro-pearl-thick-chain-necklace-can-be-wrapped?variant=e9a08a85-0653-4eb1-a7af-7daca28d336a","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":15,"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":"e9a08a85-0653-4eb1-a7af-7daca28d336a","product_id":"85f5cf6e-9aac-43a0-8e5e-9ae8d8ac2bfa","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"211123499-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c21e1fb5a2706c1fca721af844e441e5.jpeg","path":"c21e1fb5a2706c1fca721af844e441e5.jpeg","width":888,"height":1065,"alt":"","aspect_ratio":0.8338028169014085},"wholesale_price":[{"price":23.49,"min_quantity":1}],"weight":"0.08","compare_at_price":"27.64","price":"23.49","retail_price":"27.64","available":true,"url":"\/products\/retro-pearl-thick-chain-necklace-can-be-wrapped?variant=e9a08a85-0653-4eb1-a7af-7daca28d336a","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":15,"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 `
`;
}()}