High quality baseball cap
${function() {
const variantData = data.variant || {"id":"a77c1e7a-cfab-492a-aa2b-7543a63ad04b","product_id":"fadbbe18-58c8-48dd-8aba-3b4db248401f","title":"\u767d\u8272","weight_unit":"kg","inventory_quantity":46,"sku":"\u8001\u677f\u5a18-30-\u767d\u8272-A0012892","barcode":"","position":1,"option1":"\u767d\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cfd5afd8fea811a5362333cae407c739.jpg","path":"cfd5afd8fea811a5362333cae407c739.jpg","width":1080,"height":1920,"alt":"","aspect_ratio":0.5625},"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12","retail_price":"0","available":true,"url":"\/products\/high-quality-baseball-cap?variant=a77c1e7a-cfab-492a-aa2b-7543a63ad04b","available_quantity":46,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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":"a77c1e7a-cfab-492a-aa2b-7543a63ad04b","product_id":"fadbbe18-58c8-48dd-8aba-3b4db248401f","title":"\u767d\u8272","weight_unit":"kg","inventory_quantity":46,"sku":"\u8001\u677f\u5a18-30-\u767d\u8272-A0012892","barcode":"","position":1,"option1":"\u767d\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cfd5afd8fea811a5362333cae407c739.jpg","path":"cfd5afd8fea811a5362333cae407c739.jpg","width":1080,"height":1920,"alt":"","aspect_ratio":0.5625},"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12","retail_price":"0","available":true,"url":"\/products\/high-quality-baseball-cap?variant=a77c1e7a-cfab-492a-aa2b-7543a63ad04b","available_quantity":46,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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 `
`;
}()}