${function() {
const variantData = data.variant || {"id":"4a36cd5b-42ed-48b5-ac0e-44d3f3808f79","product_id":"b127c8bd-c0b6-45b7-974b-fc23d8e11eda","title":"Pink","weight_unit":"kg","inventory_quantity":0,"sku":"SLR2MLJ8-0001","barcode":"","position":1,"option1":"Pink","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e01e1334f781f68231c5bd0d645446fe.png","path":"e01e1334f781f68231c5bd0d645446fe.png","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.99","price":"39.99","retail_price":"79.99","available":true,"url":"\/products\/automatic-curler-8pj4?variant=4a36cd5b-42ed-48b5-ac0e-44d3f3808f79","available_quantity":999999999,"options":[{"name":"Color","value":"Pink"}],"off_ratio":50,"flashsale_info":[],"sales":1569};
const saveType = "percentage";
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 minInventory = parseInt('20');
const maxInventory = parseInt('100');
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 `
`;
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.