people are viewing this right now
${function() {
const variantData = data.variant || {"id":"a3dc8bd7-db33-4cf6-8b7c-0d6786737403","product_id":"35d278cb-4006-43b9-b847-b1f97b468114","title":"Orange-M","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2055509455207","barcode":"","position":11,"option1":"Orange","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae2e5a6823cd4437b63ecb1485072632.jpeg","path":"ae2e5a6823cd4437b63ecb1485072632.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"65","price":"39.99","retail_price":"65","available":true,"url":"\/products\/men-s-english-rib-turtleneck-cardigan-with-zipper?variant=a3dc8bd7-db33-4cf6-8b7c-0d6786737403","available_quantity":999999999,"options":[{"name":"color","value":"Orange"},{"name":"size","value":"M"}],"off_ratio":38,"flashsale_info":[],"sales":6};
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":"a3dc8bd7-db33-4cf6-8b7c-0d6786737403","product_id":"35d278cb-4006-43b9-b847-b1f97b468114","title":"Orange-M","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2055509455207","barcode":"","position":11,"option1":"Orange","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ae2e5a6823cd4437b63ecb1485072632.jpeg","path":"ae2e5a6823cd4437b63ecb1485072632.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"65","price":"39.99","retail_price":"65","available":true,"url":"\/products\/men-s-english-rib-turtleneck-cardigan-with-zipper?variant=a3dc8bd7-db33-4cf6-8b7c-0d6786737403","available_quantity":999999999,"options":[{"name":"color","value":"Orange"},{"name":"size","value":"M"}],"off_ratio":38,"flashsale_info":[],"sales":6};
return `
`
}()}