Golf cap women's new model without top sunshade hat bow design-BB
${function() {
const variantData = data.variant || {"id":"63204327-1075-4d01-b7e6-8ce0c445a269","product_id":"1c7518e7-f22b-4593-a486-041c9c2cffeb","title":"white","weight_unit":"kg","inventory_quantity":45,"sku":"\u51b0\u51b0-70-white-A0018399","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/18d2664dddeec475e2d5ffce0ff677e9.jpg","path":"18d2664dddeec475e2d5ffce0ff677e9.jpg","width":1081,"height":1440,"alt":"","aspect_ratio":0.7506944444444444},"wholesale_price":[{"price":23,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"23","retail_price":"0","available":true,"url":"\/products\/golf-cap-womens-new-model-without-top-sunshade-hat-bow-design-bb?variant=63204327-1075-4d01-b7e6-8ce0c445a269","available_quantity":45,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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":"63204327-1075-4d01-b7e6-8ce0c445a269","product_id":"1c7518e7-f22b-4593-a486-041c9c2cffeb","title":"white","weight_unit":"kg","inventory_quantity":45,"sku":"\u51b0\u51b0-70-white-A0018399","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/18d2664dddeec475e2d5ffce0ff677e9.jpg","path":"18d2664dddeec475e2d5ffce0ff677e9.jpg","width":1081,"height":1440,"alt":"","aspect_ratio":0.7506944444444444},"wholesale_price":[{"price":23,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"23","retail_price":"0","available":true,"url":"\/products\/golf-cap-womens-new-model-without-top-sunshade-hat-bow-design-bb?variant=63204327-1075-4d01-b7e6-8ce0c445a269","available_quantity":45,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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 `
`;
}()}