${function() {
const variantData = data.variant || {"id":"fc171746-ff53-4553-a8b8-2948bf6c5ebb","product_id":"84ea6ebe-c059-4848-a939-b9f16525ea7b","title":"White","weight_unit":"g","inventory_quantity":999,"sku":"XHy8IuHoB-White","barcode":"","position":2,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d7fceddfb93905f65b4736a21eccc7f.jpeg","path":"5d7fceddfb93905f65b4736a21eccc7f.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\/couple-knitted-hat-alphabet-wool-warm-hat?variant=fc171746-ff53-4553-a8b8-2948bf6c5ebb","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":51,"flashsale_info":[],"sales":2};
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 : XHy8IuHoB-White
Weight : 180g
${function(){
const variantData = data.variant || {"id":"fc171746-ff53-4553-a8b8-2948bf6c5ebb","product_id":"84ea6ebe-c059-4848-a939-b9f16525ea7b","title":"White","weight_unit":"g","inventory_quantity":999,"sku":"XHy8IuHoB-White","barcode":"","position":2,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5d7fceddfb93905f65b4736a21eccc7f.jpeg","path":"5d7fceddfb93905f65b4736a21eccc7f.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\/couple-knitted-hat-alphabet-wool-warm-hat?variant=fc171746-ff53-4553-a8b8-2948bf6c5ebb","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":51,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}