golf cap sun hats
${function() {
const variantData = data.variant || {"id":"287d0ced-cc74-4378-8b9e-2867dcd06320","product_id":"6369b364-654b-4e24-953e-01b183bc0349","title":"\u767d\u8272","weight_unit":"kg","inventory_quantity":99,"sku":"\u767d\u8272","barcode":"","position":1,"option1":"\u767d\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a5851e1aefe5a84af107b7cd9a4b7829.jpg","path":"a5851e1aefe5a84af107b7cd9a4b7829.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11.5,"min_quantity":1}],"weight":"0","compare_at_price":"25","price":"11.5","retail_price":"25","available":true,"url":"\/products\/golf-cap-sun-hats-o0uk?variant=287d0ced-cc74-4378-8b9e-2867dcd06320","available_quantity":99,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"}],"off_ratio":54,"flashsale_info":[],"sales":1};
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":"287d0ced-cc74-4378-8b9e-2867dcd06320","product_id":"6369b364-654b-4e24-953e-01b183bc0349","title":"\u767d\u8272","weight_unit":"kg","inventory_quantity":99,"sku":"\u767d\u8272","barcode":"","position":1,"option1":"\u767d\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a5851e1aefe5a84af107b7cd9a4b7829.jpg","path":"a5851e1aefe5a84af107b7cd9a4b7829.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11.5,"min_quantity":1}],"weight":"0","compare_at_price":"25","price":"11.5","retail_price":"25","available":true,"url":"\/products\/golf-cap-sun-hats-o0uk?variant=287d0ced-cc74-4378-8b9e-2867dcd06320","available_quantity":99,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"}],"off_ratio":54,"flashsale_info":[],"sales":1};
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 `
`;
}()}