Adhesive logo hollow top cap sunscreen cap
${function() {
const variantData = data.variant || {"id":"830032d6-55b1-4398-b4b0-f36c5ff624d0","product_id":"9b4bf2e5-1447-4982-914a-da18f5393e4a","title":"white","weight_unit":"kg","inventory_quantity":94,"sku":"\u546830-13-white-A0015819","barcode":"","position":2,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ea175b8f0b0b4fdcee21e20d892345fd.jpg","path":"ea175b8f0b0b4fdcee21e20d892345fd.jpg","width":983,"height":783,"alt":"","aspect_ratio":1.2554278416347382},"wholesale_price":[{"price":11.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"11.5","retail_price":"0","available":true,"url":"\/products\/adhesive-logo-hollow-top-cap-sunscreen-cap?variant=830032d6-55b1-4398-b4b0-f36c5ff624d0","available_quantity":94,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":132};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"830032d6-55b1-4398-b4b0-f36c5ff624d0","product_id":"9b4bf2e5-1447-4982-914a-da18f5393e4a","title":"white","weight_unit":"kg","inventory_quantity":94,"sku":"\u546830-13-white-A0015819","barcode":"","position":2,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ea175b8f0b0b4fdcee21e20d892345fd.jpg","path":"ea175b8f0b0b4fdcee21e20d892345fd.jpg","width":983,"height":783,"alt":"","aspect_ratio":1.2554278416347382},"wholesale_price":[{"price":11.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"11.5","retail_price":"0","available":true,"url":"\/products\/adhesive-logo-hollow-top-cap-sunscreen-cap?variant=830032d6-55b1-4398-b4b0-f36c5ff624d0","available_quantity":94,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":132};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${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 `
`;
}()}