people are viewing this right now
${function() {
const variantData = data.variant || {"id":"b7a134f3-8b74-4589-b2ba-0bb16325a113","product_id":"739899be-14ff-4e52-b849-e19a77518bc2","title":"Magnetic Set-1200mA","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Magnetic Set-1200mA","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9f42c897af4cef46525e34a71463847c.jpeg","path":"9f42c897af4cef46525e34a71463847c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.74,"min_quantity":1}],"weight":"0","compare_at_price":"38.76","price":"26.74","retail_price":"38.76","available":true,"url":"\/products\/castle-magnetic-wall-corner-induction-night-lamp-3d-wall-decoration-atmosphere-lamp-usb-rechargeable-bedroom-corridor-lamp-gift?variant=b7a134f3-8b74-4589-b2ba-0bb16325a113","available_quantity":999999999,"options":[{"name":"Emitting Color","value":"Magnetic Set-1200mA"}],"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 minInventory = parseInt('10');
const maxInventory = parseInt('50');
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.
${function(){
const variantData = data.variant || {"id":"b7a134f3-8b74-4589-b2ba-0bb16325a113","product_id":"739899be-14ff-4e52-b849-e19a77518bc2","title":"Magnetic Set-1200mA","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Magnetic Set-1200mA","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9f42c897af4cef46525e34a71463847c.jpeg","path":"9f42c897af4cef46525e34a71463847c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.74,"min_quantity":1}],"weight":"0","compare_at_price":"38.76","price":"26.74","retail_price":"38.76","available":true,"url":"\/products\/castle-magnetic-wall-corner-induction-night-lamp-3d-wall-decoration-atmosphere-lamp-usb-rechargeable-bedroom-corridor-lamp-gift?variant=b7a134f3-8b74-4589-b2ba-0bb16325a113","available_quantity":999999999,"options":[{"name":"Emitting Color","value":"Magnetic Set-1200mA"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
`
}()}