${function() {
const variantData = data.variant || {"id":"5e09888c-22c6-4c6e-bee7-232bc411db8f","product_id":"45650c64-e68d-4639-9ee8-631fe089ff01","title":"Black","weight_unit":"g","inventory_quantity":999,"sku":"XHHjP8UoX-Black","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8e1b3a784714fda7da4435f72de0a2ae.jpeg","path":"8e1b3a784714fda7da4435f72de0a2ae.jpeg","width":400,"height":311,"alt":"","aspect_ratio":1.2861736334405145},"wholesale_price":[{"price":10.99,"min_quantity":1}],"weight":"30","compare_at_price":"29","price":"10.99","retail_price":"29","available":true,"url":"\/products\/double-thread-knitted-hat-tide-brand-woolen-hat-lovers-hat?variant=5e09888c-22c6-4c6e-bee7-232bc411db8f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":62,"flashsale_info":[],"sales":7};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
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 : XHHjP8UoX-Black
Weight : 30g
${function(){
const variantData = data.variant || {"id":"5e09888c-22c6-4c6e-bee7-232bc411db8f","product_id":"45650c64-e68d-4639-9ee8-631fe089ff01","title":"Black","weight_unit":"g","inventory_quantity":999,"sku":"XHHjP8UoX-Black","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8e1b3a784714fda7da4435f72de0a2ae.jpeg","path":"8e1b3a784714fda7da4435f72de0a2ae.jpeg","width":400,"height":311,"alt":"","aspect_ratio":1.2861736334405145},"wholesale_price":[{"price":10.99,"min_quantity":1}],"weight":"30","compare_at_price":"29","price":"10.99","retail_price":"29","available":true,"url":"\/products\/double-thread-knitted-hat-tide-brand-woolen-hat-lovers-hat?variant=5e09888c-22c6-4c6e-bee7-232bc411db8f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":62,"flashsale_info":[],"sales":7};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}