${function() {
const variantData = data.variant || {"id":"050e6931-2bce-4007-9f42-045cf05527b1","product_id":"6da6867a-e217-4ab1-bc76-e393ed8a42d8","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"SLRYDNCN-0001","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"33.99","retail_price":"89.99","available":true,"url":"\/products\/multi-functional-wire-stripping-pliers?variant=050e6931-2bce-4007-9f42-045cf05527b1","available_quantity":999999999,"options":[],"off_ratio":62,"flashsale_info":[],"sales":861};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${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.