people are viewing this right now
${function() {
const variantData = data.variant || {"id":"0fd3a5a9-a9b5-44bc-9cc6-f2a82b6e2605","product_id":"b886bcf5-03df-45e6-951f-cc26cdc13da4","title":"Purple-XXS","weight_unit":"kg","inventory_quantity":-1,"sku":"","barcode":"","position":1,"option1":"Purple","option2":"XXS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3c89fd8117bcfc62a2b0bc0224ef19de.jpg","path":"3c89fd8117bcfc62a2b0bc0224ef19de.jpg","width":600,"height":900,"alt":"","aspect_ratio":0.6666666666666666},"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\/pink-long-sleeved-hollow-out-long-skirt-uq55-5p7s-ud6y-cr7n-0tan-2acf-cuil-59fz-n8mg-ufmn8e484f6f-8075-452e-be1c-bf4b43c3d3ef?variant=0fd3a5a9-a9b5-44bc-9cc6-f2a82b6e2605","available_quantity":999999999,"options":[{"name":"color","value":"Purple"},{"name":"size","value":"XXS"}],"off_ratio":50,"flashsale_info":[],"sales":21};
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":"0fd3a5a9-a9b5-44bc-9cc6-f2a82b6e2605","product_id":"b886bcf5-03df-45e6-951f-cc26cdc13da4","title":"Purple-XXS","weight_unit":"kg","inventory_quantity":-1,"sku":"","barcode":"","position":1,"option1":"Purple","option2":"XXS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3c89fd8117bcfc62a2b0bc0224ef19de.jpg","path":"3c89fd8117bcfc62a2b0bc0224ef19de.jpg","width":600,"height":900,"alt":"","aspect_ratio":0.6666666666666666},"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\/pink-long-sleeved-hollow-out-long-skirt-uq55-5p7s-ud6y-cr7n-0tan-2acf-cuil-59fz-n8mg-ufmn8e484f6f-8075-452e-be1c-bf4b43c3d3ef?variant=0fd3a5a9-a9b5-44bc-9cc6-f2a82b6e2605","available_quantity":999999999,"options":[{"name":"color","value":"Purple"},{"name":"size","value":"XXS"}],"off_ratio":50,"flashsale_info":[],"sales":21};
return `
`
}()}