people are viewing this right now
${function() {
const variantData = data.variant || {"id":"902660e0-fdf7-4bf0-8fd5-5ba2a91cb345","product_id":"6f0aac7f-cda6-4fdc-84fa-3c50cf4a5293","title":"khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NDLC23082113P-khaki-S","barcode":"","position":1,"option1":"khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b768f096a6762562714ef3f56151edc5.png","path":"b768f096a6762562714ef3f56151edc5.png","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"53.99","price":"39.99","retail_price":"53.99","available":true,"url":"\/products\/solid-color-loose-dress-with-straps-t76g-cic6-gk8t-lws1-3hs9-zzyj-ot52-ad6f-it03-4to6-i1vh-agb9-nofb-dzbf-iyrk-1lcm-mxrv-82l6-ulc3-nyol-ez76-tfbj-pcc5-in15-dml4-uv0w-7vk6-d4s4-yarc-exm8-wbap-4kwq-oijy-uge3-z43w-os5z-1jva-1hsg-qf7c-cqcf-5pcl-ifzh-qsgu-m1hq?variant=902660e0-fdf7-4bf0-8fd5-5ba2a91cb345","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"S"}],"off_ratio":26,"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":"902660e0-fdf7-4bf0-8fd5-5ba2a91cb345","product_id":"6f0aac7f-cda6-4fdc-84fa-3c50cf4a5293","title":"khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NDLC23082113P-khaki-S","barcode":"","position":1,"option1":"khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b768f096a6762562714ef3f56151edc5.png","path":"b768f096a6762562714ef3f56151edc5.png","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"53.99","price":"39.99","retail_price":"53.99","available":true,"url":"\/products\/solid-color-loose-dress-with-straps-t76g-cic6-gk8t-lws1-3hs9-zzyj-ot52-ad6f-it03-4to6-i1vh-agb9-nofb-dzbf-iyrk-1lcm-mxrv-82l6-ulc3-nyol-ez76-tfbj-pcc5-in15-dml4-uv0w-7vk6-d4s4-yarc-exm8-wbap-4kwq-oijy-uge3-z43w-os5z-1jva-1hsg-qf7c-cqcf-5pcl-ifzh-qsgu-m1hq?variant=902660e0-fdf7-4bf0-8fd5-5ba2a91cb345","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"S"}],"off_ratio":26,"flashsale_info":[],"sales":0};
return `
`
}()}