people are viewing this right now
${function() {
const variantData = data.variant || {"id":"1b2a6583-5f23-4d76-a712-4346dda2723d","product_id":"776808cc-7082-4618-a839-0e1da87bc040","title":"Khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"DA0168_KHAKI_S","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4be28576e86600fe72a70e3b476acefe.jpg","path":"4be28576e86600fe72a70e3b476acefe.jpg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.97,"min_quantity":1}],"weight":"0","compare_at_price":"59.94","price":"29.97","retail_price":"59.94","available":true,"url":"\/products\/mens-workwear-solid-color-casual-sweatshirt-sc?variant=1b2a6583-5f23-4d76-a712-4346dda2723d","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":72};
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":"1b2a6583-5f23-4d76-a712-4346dda2723d","product_id":"776808cc-7082-4618-a839-0e1da87bc040","title":"Khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"DA0168_KHAKI_S","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4be28576e86600fe72a70e3b476acefe.jpg","path":"4be28576e86600fe72a70e3b476acefe.jpg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.97,"min_quantity":1}],"weight":"0","compare_at_price":"59.94","price":"29.97","retail_price":"59.94","available":true,"url":"\/products\/mens-workwear-solid-color-casual-sweatshirt-sc?variant=1b2a6583-5f23-4d76-a712-4346dda2723d","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":72};
return `
`
}()}