Camouflage handbag golf bag
${function() {
const variantData = data.variant || {"id":"3b4d477c-db3d-40e0-8eb6-bd0bc2204c06","product_id":"ced914ae-5f20-4847-bfd9-750e0942fb21","title":"blue","weight_unit":"kg","inventory_quantity":39,"sku":"\u546839-35-blue-A00110488","barcode":"","position":1,"option1":"blue","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f290c0316c46f90f0ffa60f55cc08365.jpg","path":"f290c0316c46f90f0ffa60f55cc08365.jpg","width":1280,"height":960,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/camouflage-handbag-golf-bag?variant=3b4d477c-db3d-40e0-8eb6-bd0bc2204c06","available_quantity":39,"options":[{"name":"colour","value":"blue"}],"off_ratio":0,"flashsale_info":[],"sales":17};
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":"3b4d477c-db3d-40e0-8eb6-bd0bc2204c06","product_id":"ced914ae-5f20-4847-bfd9-750e0942fb21","title":"blue","weight_unit":"kg","inventory_quantity":39,"sku":"\u546839-35-blue-A00110488","barcode":"","position":1,"option1":"blue","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f290c0316c46f90f0ffa60f55cc08365.jpg","path":"f290c0316c46f90f0ffa60f55cc08365.jpg","width":1280,"height":960,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/camouflage-handbag-golf-bag?variant=3b4d477c-db3d-40e0-8eb6-bd0bc2204c06","available_quantity":39,"options":[{"name":"colour","value":"blue"}],"off_ratio":0,"flashsale_info":[],"sales":17};
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 `
`;
}()}