people are viewing this right now
${function() {
const variantData = data.variant || {"id":"64b6906b-d7cd-4634-938c-da0c8dd35f79","product_id":"728a8ce4-ee30-433f-bda6-4954f6e8e31a","title":"S","weight_unit":"kg","inventory_quantity":1000,"sku":"AQ003247-S","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"53","price":"29.99","retail_price":"53","available":true,"url":"\/products\/casual-lapel-pocket-long-sleeve-solid-color-cotton-jumpsuit?variant=64b6906b-d7cd-4634-938c-da0c8dd35f79","available_quantity":999999999,"options":[{"name":"SIZE","value":"S"}],"off_ratio":43,"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 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":"64b6906b-d7cd-4634-938c-da0c8dd35f79","product_id":"728a8ce4-ee30-433f-bda6-4954f6e8e31a","title":"S","weight_unit":"kg","inventory_quantity":1000,"sku":"AQ003247-S","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"53","price":"29.99","retail_price":"53","available":true,"url":"\/products\/casual-lapel-pocket-long-sleeve-solid-color-cotton-jumpsuit?variant=64b6906b-d7cd-4634-938c-da0c8dd35f79","available_quantity":999999999,"options":[{"name":"SIZE","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":0};
return `
`
}()}