people are viewing this right now
${function() {
const variantData = data.variant || {"id":"ec0d392f-efe5-4828-a781-e540194e74a9","product_id":"dbf5029a-cf42-4d93-9b2c-d03105b8ccec","title":"Red-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NRLC22082016-Red-S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5050963f244a1375b7f032890f75c1a6.jpeg","path":"5050963f244a1375b7f032890f75c1a6.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":48.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.84","price":"48.99","retail_price":"69.84","available":true,"url":"\/products\/long-sleeve-geometric-print-v-neck-dress-93?variant=ec0d392f-efe5-4828-a781-e540194e74a9","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":30,"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 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":"ec0d392f-efe5-4828-a781-e540194e74a9","product_id":"dbf5029a-cf42-4d93-9b2c-d03105b8ccec","title":"Red-S","weight_unit":"kg","inventory_quantity":1000,"sku":"NRLC22082016-Red-S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5050963f244a1375b7f032890f75c1a6.jpeg","path":"5050963f244a1375b7f032890f75c1a6.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":48.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.84","price":"48.99","retail_price":"69.84","available":true,"url":"\/products\/long-sleeve-geometric-print-v-neck-dress-93?variant=ec0d392f-efe5-4828-a781-e540194e74a9","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":0};
return `
`
}()}