people are viewing this right now
${function() {
const variantData = data.variant || {"id":"890dc73e-cd1a-4524-a119-7e459abc16ce","product_id":"31515789-9c02-4c69-86ec-d1477732208d","title":"blue-S","weight_unit":"kg","inventory_quantity":996,"sku":"KD022011-blue-S","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":null,"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/sexy-satin-strap-mini-dress-0vme-nudb-x87q-p9eb-j918-rmxn-u5t1-91i9-gpau-dui7-x9jo-p9gp-mstx-hs2c-okva-86vl-9r8r-88fn-zp59-kqj9-n7va-n28s-hz6y-ax5t-tvnx-5m4e-bjje-40uy-t0w4-ws81-oi3d-zevm-mwwe-t73y-rdwg-p0f0-ro0a-ltvw-nemj-8gif-rmkw-e1tv179297ed-4beb-4f39?variant=890dc73e-cd1a-4524-a119-7e459abc16ce","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":6};
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":"890dc73e-cd1a-4524-a119-7e459abc16ce","product_id":"31515789-9c02-4c69-86ec-d1477732208d","title":"blue-S","weight_unit":"kg","inventory_quantity":996,"sku":"KD022011-blue-S","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":null,"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/sexy-satin-strap-mini-dress-0vme-nudb-x87q-p9eb-j918-rmxn-u5t1-91i9-gpau-dui7-x9jo-p9gp-mstx-hs2c-okva-86vl-9r8r-88fn-zp59-kqj9-n7va-n28s-hz6y-ax5t-tvnx-5m4e-bjje-40uy-t0w4-ws81-oi3d-zevm-mwwe-t73y-rdwg-p0f0-ro0a-ltvw-nemj-8gif-rmkw-e1tv179297ed-4beb-4f39?variant=890dc73e-cd1a-4524-a119-7e459abc16ce","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":6};
return `
`
}()}