${function() {
const variantData = data.variant || {"id":"c8b660d7-86a3-4728-a0b2-419f263ca320","product_id":"1404560b-364c-4f8e-b342-9e3ba0d07630","title":"G10-2W black\/3-piece set-European Standard","weight_unit":"kg","inventory_quantity":0,"sku":"SLRWZKRA-0001","barcode":"","position":1,"option1":"G10-2W black\/3-piece set","option2":"European Standard","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de5525f4651a60e4336bd8a227209a65.jpeg","path":"de5525f4651a60e4336bd8a227209a65.jpeg","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.99","price":"38.99","retail_price":"68.99","available":true,"url":"\/products\/multi-function-soldering-iron-soldering-gun-set?variant=c8b660d7-86a3-4728-a0b2-419f263ca320","available_quantity":999999999,"options":[{"name":"Style","value":"G10-2W black\/3-piece set"},{"name":"Size","value":"European Standard"}],"off_ratio":43,"flashsale_info":[],"sales":5811};
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 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.