people are viewing this right now
${function() {
const variantData = data.variant || {"id":"955d39cf-6591-4aae-b560-dae4b447ceb2","product_id":"621ec728-8d46-4b8a-b41f-e5efff1e0744","title":"picture color-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NTML23081112P-picture color-S","barcode":"","position":1,"option1":"picture color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2a07a5f4d0c4ce2993e505566abd9436.jpeg","path":"2a07a5f4d0c4ce2993e505566abd9436.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0","compare_at_price":"54.99","price":"38.99","retail_price":"54.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-p8k6?variant=955d39cf-6591-4aae-b560-dae4b447ceb2","available_quantity":999999999,"options":[{"name":"color","value":"picture color"},{"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":"955d39cf-6591-4aae-b560-dae4b447ceb2","product_id":"621ec728-8d46-4b8a-b41f-e5efff1e0744","title":"picture color-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NTML23081112P-picture color-S","barcode":"","position":1,"option1":"picture color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2a07a5f4d0c4ce2993e505566abd9436.jpeg","path":"2a07a5f4d0c4ce2993e505566abd9436.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0","compare_at_price":"54.99","price":"38.99","retail_price":"54.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-p8k6?variant=955d39cf-6591-4aae-b560-dae4b447ceb2","available_quantity":999999999,"options":[{"name":"color","value":"picture color"},{"name":"size","value":"S"}],"off_ratio":29,"flashsale_info":[],"sales":0};
return `
`
}()}