people are viewing this right now
${function() {
const variantData = data.variant || {"id":"cc70a533-d4dc-413f-8edb-a4ee7961126c","product_id":"26f6f7f6-fe0b-4603-8649-9413b6d0d19c","title":"blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NRLC23081113P-blue-S","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b26d26f07409f2a1f1d6f961ec1c17c6.jpeg","path":"b26d26f07409f2a1f1d6f961ec1c17c6.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":37.99,"min_quantity":1}],"weight":"0","compare_at_price":"53.99","price":"37.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-3izm?variant=cc70a533-d4dc-413f-8edb-a4ee7961126c","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":30,"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":"cc70a533-d4dc-413f-8edb-a4ee7961126c","product_id":"26f6f7f6-fe0b-4603-8649-9413b6d0d19c","title":"blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NRLC23081113P-blue-S","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b26d26f07409f2a1f1d6f961ec1c17c6.jpeg","path":"b26d26f07409f2a1f1d6f961ec1c17c6.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":37.99,"min_quantity":1}],"weight":"0","compare_at_price":"53.99","price":"37.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-3izm?variant=cc70a533-d4dc-413f-8edb-a4ee7961126c","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":0};
return `
`
}()}