${function() {
const variantData = data.variant || {"id":"3035bc96-40d7-45eb-90b9-be8836ef314f","product_id":"fb2ad0bd-1d6e-4a39-8948-4b7835800db5","title":"Red","weight_unit":"g","inventory_quantity":999,"sku":"XHkBKgulj-Red","barcode":"","position":3,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de95f4cf3f184d4971a82a70d1472328.jpeg","path":"de95f4cf3f184d4971a82a70d1472328.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.89,"min_quantity":1}],"weight":"180","compare_at_price":"18","price":"8.89","retail_price":"18","available":true,"url":"\/products\/trendy-couple-style-knitted-hat-no-8-ball-multi-color-hat?variant=3035bc96-40d7-45eb-90b9-be8836ef314f","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"off_ratio":51,"flashsale_info":[],"sales":3};
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 : XHkBKgulj-Red
Weight : 180g
${function(){
const variantData = data.variant || {"id":"3035bc96-40d7-45eb-90b9-be8836ef314f","product_id":"fb2ad0bd-1d6e-4a39-8948-4b7835800db5","title":"Red","weight_unit":"g","inventory_quantity":999,"sku":"XHkBKgulj-Red","barcode":"","position":3,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de95f4cf3f184d4971a82a70d1472328.jpeg","path":"de95f4cf3f184d4971a82a70d1472328.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":8.89,"min_quantity":1}],"weight":"180","compare_at_price":"18","price":"8.89","retail_price":"18","available":true,"url":"\/products\/trendy-couple-style-knitted-hat-no-8-ball-multi-color-hat?variant=3035bc96-40d7-45eb-90b9-be8836ef314f","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"off_ratio":51,"flashsale_info":[],"sales":3};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}