people are viewing this right now
${function() {
const variantData = data.variant || {"id":"105ad48a-e5e2-44e3-879a-ebfec494d8e7","product_id":"14f6c608-e709-4fcb-869c-b0884925301e","title":"green-XS","weight_unit":"kg","inventory_quantity":1000,"sku":"NDML23082129P-green-XS","barcode":"","position":1,"option1":"green","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/36fee00e10e0dfb67d6374369b8cda53.jpeg","path":"36fee00e10e0dfb67d6374369b8cda53.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"39.99","retail_price":"55.99","available":true,"url":"\/products\/one-shoulder-solid-color-two-piece-suit-sq06-wy9a-l2wl-awjh-4aqw-dk4a-4j0f-h66z-nk12-8dq9-a5f8-6hbv-xr0a-jmrj-glyh-ay3j-838o-1hw4-55y0-nt47-a9wz-y4y6-kv71-94hs-1yo3-v59u-7it3-07ch-blez-1nwd-6znj-1oag-9ewn-gi0j-lrub-wo81-jvr9-c4xg-6b91-whs2-wavt-tz3o-08r8?variant=105ad48a-e5e2-44e3-879a-ebfec494d8e7","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"XS"}],"off_ratio":29,"flashsale_info":[],"sales":0};
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"105ad48a-e5e2-44e3-879a-ebfec494d8e7","product_id":"14f6c608-e709-4fcb-869c-b0884925301e","title":"green-XS","weight_unit":"kg","inventory_quantity":1000,"sku":"NDML23082129P-green-XS","barcode":"","position":1,"option1":"green","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/36fee00e10e0dfb67d6374369b8cda53.jpeg","path":"36fee00e10e0dfb67d6374369b8cda53.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"39.99","retail_price":"55.99","available":true,"url":"\/products\/one-shoulder-solid-color-two-piece-suit-sq06-wy9a-l2wl-awjh-4aqw-dk4a-4j0f-h66z-nk12-8dq9-a5f8-6hbv-xr0a-jmrj-glyh-ay3j-838o-1hw4-55y0-nt47-a9wz-y4y6-kv71-94hs-1yo3-v59u-7it3-07ch-blez-1nwd-6znj-1oag-9ewn-gi0j-lrub-wo81-jvr9-c4xg-6b91-whs2-wavt-tz3o-08r8?variant=105ad48a-e5e2-44e3-879a-ebfec494d8e7","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"XS"}],"off_ratio":29,"flashsale_info":[],"sales":0};
return `
`
}()}