people are viewing this right now
${function() {
const variantData = data.variant || {"id":"4f4a9021-21ec-4813-8fdb-d47ce589692d","product_id":"2973a227-3f85-4e84-a7b7-c84c2e854b54","title":"Gray-S","weight_unit":"kg","inventory_quantity":1000,"sku":"CJTZ184633401AZ","barcode":"","position":1,"option1":"Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c49ee833d3ede80a49828327d1f5fd93.png","path":"c49ee833d3ede80a49828327d1f5fd93.png","width":996,"height":986,"alt":"","aspect_ratio":1.0101419878296145},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"29.99","retail_price":"39.99","available":true,"url":"\/products\/high-elastic-tight-womens-pants-slim-sexy-print-trousers?variant=4f4a9021-21ec-4813-8fdb-d47ce589692d","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":2};
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":"4f4a9021-21ec-4813-8fdb-d47ce589692d","product_id":"2973a227-3f85-4e84-a7b7-c84c2e854b54","title":"Gray-S","weight_unit":"kg","inventory_quantity":1000,"sku":"CJTZ184633401AZ","barcode":"","position":1,"option1":"Gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c49ee833d3ede80a49828327d1f5fd93.png","path":"c49ee833d3ede80a49828327d1f5fd93.png","width":996,"height":986,"alt":"","aspect_ratio":1.0101419878296145},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"29.99","retail_price":"39.99","available":true,"url":"\/products\/high-elastic-tight-womens-pants-slim-sexy-print-trousers?variant=4f4a9021-21ec-4813-8fdb-d47ce589692d","available_quantity":999999999,"options":[{"name":"Color","value":"Gray"},{"name":"size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":2};
return `
`
}()}