PG Spring/Summer New Women's Ribbon Open Top Sun Hat A222090
${function() {
const variantData = data.variant || {"id":"c4e8a407-641f-4b9d-a59c-503f051e2c78","product_id":"cbb84691-1207-4dca-88c6-4abf54d056ad","title":"black","weight_unit":"kg","inventory_quantity":21,"sku":"A222090100-black-A001784","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/946ffad0d3dcf320a9e1e567bd12a174.jpg","path":"946ffad0d3dcf320a9e1e567bd12a174.jpg","width":1280,"height":1318,"alt":"","aspect_ratio":0.9711684370257967},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25","retail_price":"0","available":true,"url":"\/products\/pg-spring-summer-new-womens-ribbon-open-top-sun-hat-a222090?variant=c4e8a407-641f-4b9d-a59c-503f051e2c78","available_quantity":21,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":25};
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":"c4e8a407-641f-4b9d-a59c-503f051e2c78","product_id":"cbb84691-1207-4dca-88c6-4abf54d056ad","title":"black","weight_unit":"kg","inventory_quantity":21,"sku":"A222090100-black-A001784","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/946ffad0d3dcf320a9e1e567bd12a174.jpg","path":"946ffad0d3dcf320a9e1e567bd12a174.jpg","width":1280,"height":1318,"alt":"","aspect_ratio":0.9711684370257967},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25","retail_price":"0","available":true,"url":"\/products\/pg-spring-summer-new-womens-ribbon-open-top-sun-hat-a222090?variant=c4e8a407-641f-4b9d-a59c-503f051e2c78","available_quantity":21,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":25};
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 `
`;
}()}