${function() {
const variantData = data.variant || {"id":"523811d9-ea3b-40f1-8cc0-fb6ec4ee8071","product_id":"087d2aef-fa9e-47e8-80f7-5f4f104a94d3","title":"8 PCS RANDOM COLOR-L","weight_unit":"kg","inventory_quantity":1000,"sku":"sku1684734031991","barcode":"","position":1,"option1":"8 PCS RANDOM COLOR","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9a2609871206d989d4eea0a5e9b40b1c.jpeg","path":"9a2609871206d989d4eea0a5e9b40b1c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":48.99,"min_quantity":1}],"weight":"0","compare_at_price":"70.99","price":"48.99","retail_price":"70.99","available":true,"url":"\/products\/8-pcs-plus-size-slim-fit-lace-underwear?variant=523811d9-ea3b-40f1-8cc0-fb6ec4ee8071","available_quantity":1000,"options":[{"name":"SIZE","value":"8 PCS RANDOM COLOR"},{"name":"COLOR","value":"L"}],"off_ratio":31,"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"523811d9-ea3b-40f1-8cc0-fb6ec4ee8071","product_id":"087d2aef-fa9e-47e8-80f7-5f4f104a94d3","title":"8 PCS RANDOM COLOR-L","weight_unit":"kg","inventory_quantity":1000,"sku":"sku1684734031991","barcode":"","position":1,"option1":"8 PCS RANDOM COLOR","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9a2609871206d989d4eea0a5e9b40b1c.jpeg","path":"9a2609871206d989d4eea0a5e9b40b1c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":48.99,"min_quantity":1}],"weight":"0","compare_at_price":"70.99","price":"48.99","retail_price":"70.99","available":true,"url":"\/products\/8-pcs-plus-size-slim-fit-lace-underwear?variant=523811d9-ea3b-40f1-8cc0-fb6ec4ee8071","available_quantity":1000,"options":[{"name":"SIZE","value":"8 PCS RANDOM COLOR"},{"name":"COLOR","value":"L"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
`
}()}
people are viewing this right now
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('20');
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 `
`;
}()}