people are viewing this right now
${function() {
const variantData = data.variant || {"id":"18b02d07-639c-4343-8434-7d122d65dd17","product_id":"08ffa3cc-fb86-407b-8bd6-6062e482a654","title":"black","weight_unit":"lb","inventory_quantity":996,"sku":"","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/15dfc5346e4ae3c0f0bdc55de545b61d.jpeg","path":"15dfc5346e4ae3c0f0bdc55de545b61d.jpeg","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/wireless-bottle-lamp9691af1b-3ef6-496a-b7c9-3f317a89325c?variant=18b02d07-639c-4343-8434-7d122d65dd17","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"off_ratio":40,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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":"18b02d07-639c-4343-8434-7d122d65dd17","product_id":"08ffa3cc-fb86-407b-8bd6-6062e482a654","title":"black","weight_unit":"lb","inventory_quantity":996,"sku":"","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/15dfc5346e4ae3c0f0bdc55de545b61d.jpeg","path":"15dfc5346e4ae3c0f0bdc55de545b61d.jpeg","width":900,"height":900,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/wireless-bottle-lamp9691af1b-3ef6-496a-b7c9-3f317a89325c?variant=18b02d07-639c-4343-8434-7d122d65dd17","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"off_ratio":40,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}