people are viewing this right now
${function() {
const variantData = data.variant || {"id":"1ff5efab-bf46-48a9-a121-9ba086d7e651","product_id":"5f5213c1-6bff-490a-908e-59d5dcdf3877","title":"khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NTLC23081616P-khaki-S","barcode":"","position":1,"option1":"khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c23f6e406368e9da39c84df296de7c22.jpeg","path":"c23f6e406368e9da39c84df296de7c22.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":41.99,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"41.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-69w5-1qtc-l4zk-wx1b-ddg8-f892-lltr-uiw3-uldn-40ry?variant=1ff5efab-bf46-48a9-a121-9ba086d7e651","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"S"}],"off_ratio":25,"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":"1ff5efab-bf46-48a9-a121-9ba086d7e651","product_id":"5f5213c1-6bff-490a-908e-59d5dcdf3877","title":"khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NTLC23081616P-khaki-S","barcode":"","position":1,"option1":"khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c23f6e406368e9da39c84df296de7c22.jpeg","path":"c23f6e406368e9da39c84df296de7c22.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":41.99,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"41.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-69w5-1qtc-l4zk-wx1b-ddg8-f892-lltr-uiw3-uldn-40ry?variant=1ff5efab-bf46-48a9-a121-9ba086d7e651","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":0};
return `
`
}()}