${function() {
const variantData = data.variant || {"id":"3aee2a5d-d7a2-421a-a715-b479b679f2c6","product_id":"4fe21546-3a02-40ba-86d6-83a616a54970","title":"White","weight_unit":"g","inventory_quantity":999,"sku":"XH5XqRdxO-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/21b95a8ee06f0c7eff0dae20b3fc8be1.jpeg","path":"21b95a8ee06f0c7eff0dae20b3fc8be1.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.89,"min_quantity":1}],"weight":"180","compare_at_price":"20","price":"13.89","retail_price":"20","available":true,"url":"\/products\/baseball-cap-sun-embroidered-peaked-cap-warm-plush-hat?variant=3aee2a5d-d7a2-421a-a715-b479b679f2c6","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":31,"flashsale_info":[],"sales":2};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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.
Sku : XH5XqRdxO-White
Weight : 180g
${function(){
const variantData = data.variant || {"id":"3aee2a5d-d7a2-421a-a715-b479b679f2c6","product_id":"4fe21546-3a02-40ba-86d6-83a616a54970","title":"White","weight_unit":"g","inventory_quantity":999,"sku":"XH5XqRdxO-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/21b95a8ee06f0c7eff0dae20b3fc8be1.jpeg","path":"21b95a8ee06f0c7eff0dae20b3fc8be1.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.89,"min_quantity":1}],"weight":"180","compare_at_price":"20","price":"13.89","retail_price":"20","available":true,"url":"\/products\/baseball-cap-sun-embroidered-peaked-cap-warm-plush-hat?variant=3aee2a5d-d7a2-421a-a715-b479b679f2c6","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":31,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}