people are viewing this right now
${function() {
const variantData = data.variant || {"id":"1deacf69-7601-46a4-a240-9ba9bfeff5af","product_id":"b8279bcc-8963-461c-a485-2be27f5106f2","title":"yellow-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NDLC23022405P-yellow-S","barcode":"","position":1,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/787d79dd5b3c8ce98f3d3b60ea8883eb.png","path":"787d79dd5b3c8ce98f3d3b60ea8883eb.png","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"71.98","price":"35.99","retail_price":"71.98","available":true,"url":"\/products\/pleated-one-shoulder-slit-dress-d1lc-90ru-rohp-6dj2-x9m7-r68y-3c05-8044-udqu-cfu1-374s-zk9s-3kic-z8kfdf83b0e5-7295-4158-865e-926b7f5055e3f0571a3f-bc71-486c-897b-7f9068cb8728?variant=1deacf69-7601-46a4-a240-9ba9bfeff5af","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":1};
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":"1deacf69-7601-46a4-a240-9ba9bfeff5af","product_id":"b8279bcc-8963-461c-a485-2be27f5106f2","title":"yellow-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NDLC23022405P-yellow-S","barcode":"","position":1,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/787d79dd5b3c8ce98f3d3b60ea8883eb.png","path":"787d79dd5b3c8ce98f3d3b60ea8883eb.png","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"71.98","price":"35.99","retail_price":"71.98","available":true,"url":"\/products\/pleated-one-shoulder-slit-dress-d1lc-90ru-rohp-6dj2-x9m7-r68y-3c05-8044-udqu-cfu1-374s-zk9s-3kic-z8kfdf83b0e5-7295-4158-865e-926b7f5055e3f0571a3f-bc71-486c-897b-7f9068cb8728?variant=1deacf69-7601-46a4-a240-9ba9bfeff5af","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":1};
return `
`
}()}