people are viewing this right now
${function() {
const variantData = data.variant || {"id":"bdbf7203-66e8-4ccb-8c11-15c6f184c496","product_id":"81dcdb5e-1f34-4fcb-b38d-32673b6e468d","title":"3PCS","weight_unit":"kg","inventory_quantity":998,"sku":"","barcode":"","position":1,"option1":"3PCS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d6f96667cdf304badc257d47a06cfbe2.jpeg","path":"d6f96667cdf304badc257d47a06cfbe2.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.99","price":"21.99","retail_price":"31.99","available":true,"url":"\/products\/christmas-decorations?variant=bdbf7203-66e8-4ccb-8c11-15c6f184c496","available_quantity":999999999,"options":[{"name":"Color","value":"3PCS"}],"off_ratio":31,"flashsale_info":[],"sales":7};
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":"bdbf7203-66e8-4ccb-8c11-15c6f184c496","product_id":"81dcdb5e-1f34-4fcb-b38d-32673b6e468d","title":"3PCS","weight_unit":"kg","inventory_quantity":998,"sku":"","barcode":"","position":1,"option1":"3PCS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d6f96667cdf304badc257d47a06cfbe2.jpeg","path":"d6f96667cdf304badc257d47a06cfbe2.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.99","price":"21.99","retail_price":"31.99","available":true,"url":"\/products\/christmas-decorations?variant=bdbf7203-66e8-4ccb-8c11-15c6f184c496","available_quantity":999999999,"options":[{"name":"Color","value":"3PCS"}],"off_ratio":31,"flashsale_info":[],"sales":7};
return `
`
}()}