people are viewing this right now
${function() {
const variantData = data.variant || {"id":"e0cfce43-467f-4639-82a1-fd36e0e0cad2","product_id":"55e7603d-1873-4487-83d0-dbdf27b7e769","title":"grey-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NRML23082229P-grey-S","barcode":"","position":1,"option1":"grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5723a6f73be76278dce0d97a2a6f297d.jpeg","path":"5723a6f73be76278dce0d97a2a6f297d.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\/solid-color-loose-dress-with-straps-uk7g-akpn-i967-y5jo-a863-h8ij-vl3v-sj5n-dhv7-xpew-b143-rnqx-ld9l-6x50-m8r4-ji8l-bzq6-475o-g0w2-ozhb-pk1s-do2z-zyk3-3y04-h8dx-uaxi-95l1-vll9-cnih-17d1-r88m-ksqi-m0si-2jm1-19pp-9tac-grtq-k60p-ah66-yj52-yhhi-2hs9-iygk-oa7u?variant=e0cfce43-467f-4639-82a1-fd36e0e0cad2","available_quantity":999999999,"options":[{"name":"color","value":"grey"},{"name":"size","value":"S"}],"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":"e0cfce43-467f-4639-82a1-fd36e0e0cad2","product_id":"55e7603d-1873-4487-83d0-dbdf27b7e769","title":"grey-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NRML23082229P-grey-S","barcode":"","position":1,"option1":"grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5723a6f73be76278dce0d97a2a6f297d.jpeg","path":"5723a6f73be76278dce0d97a2a6f297d.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\/solid-color-loose-dress-with-straps-uk7g-akpn-i967-y5jo-a863-h8ij-vl3v-sj5n-dhv7-xpew-b143-rnqx-ld9l-6x50-m8r4-ji8l-bzq6-475o-g0w2-ozhb-pk1s-do2z-zyk3-3y04-h8dx-uaxi-95l1-vll9-cnih-17d1-r88m-ksqi-m0si-2jm1-19pp-9tac-grtq-k60p-ah66-yj52-yhhi-2hs9-iygk-oa7u?variant=e0cfce43-467f-4639-82a1-fd36e0e0cad2","available_quantity":999999999,"options":[{"name":"color","value":"grey"},{"name":"size","value":"S"}],"off_ratio":29,"flashsale_info":[],"sales":0};
return `
`
}()}