${function(){
const variantData = data.variant || {"id":"f22f1acc-d16e-4311-b809-d6dff13d89d3","product_id":"167d6565-8f12-4a73-9404-b3f08cf2d221","title":"","weight_unit":"g","inventory_quantity":498,"sku":"788750.02","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":2.99,"min_quantity":1}],"weight":"83","compare_at_price":"5.99","price":"2.99","retail_price":"5.99","available":true,"url":"\/products\/cross-stitch-embroidery-tool-plastic-fixed-embroidery-clip-16x7-5cm-large-2-pack788750-02?variant=f22f1acc-d16e-4311-b809-d6dff13d89d3","available_quantity":498,"options":[],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"f22f1acc-d16e-4311-b809-d6dff13d89d3","product_id":"167d6565-8f12-4a73-9404-b3f08cf2d221","title":"","weight_unit":"g","inventory_quantity":498,"sku":"788750.02","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":2.99,"min_quantity":1}],"weight":"83","compare_at_price":"5.99","price":"2.99","retail_price":"5.99","available":true,"url":"\/products\/cross-stitch-embroidery-tool-plastic-fixed-embroidery-clip-16x7-5cm-large-2-pack788750-02?variant=f22f1acc-d16e-4311-b809-d6dff13d89d3","available_quantity":498,"options":[],"off_ratio":50,"flashsale_info":[],"sales":0};
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('1');
const maxInventory = parseInt('15');
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.
people are viewing this right now