people are viewing this right now
${function() {
const variantData = data.variant || {"id":"2ac644f7-728e-4f4a-b3f8-8f7dc6c07b4f","product_id":"add32bdc-8781-408a-97d7-91d2b6c0c9ce","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ea58599c5e8d0957e6dc78d7eaaf713c.png","path":"ea58599c5e8d0957e6dc78d7eaaf713c.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/money-cant-buy-happiness-but-it-can-buy-a-bmw-m3-oversize-sports-car-hoodie?variant=2ac644f7-728e-4f4a-b3f8-8f7dc6c07b4f","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"2ac644f7-728e-4f4a-b3f8-8f7dc6c07b4f","product_id":"add32bdc-8781-408a-97d7-91d2b6c0c9ce","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ea58599c5e8d0957e6dc78d7eaaf713c.png","path":"ea58599c5e8d0957e6dc78d7eaaf713c.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/money-cant-buy-happiness-but-it-can-buy-a-bmw-m3-oversize-sports-car-hoodie?variant=2ac644f7-728e-4f4a-b3f8-8f7dc6c07b4f","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
return `
`
}()}