${function() {
const variantData = data.variant || {"id":"22685047-f659-4d24-b85e-d00b9d642478","product_id":"191c16ac-5319-4151-9010-2bee49eb9335","title":"white","weight_unit":"kg","inventory_quantity":1000,"sku":"3256803041012945_white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/e89731348e7c94a1b7651a55d2911f91.jpeg","path":"e89731348e7c94a1b7651a55d2911f91.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"19.99","price":"9.99","retail_price":"19.99","available":true,"url":"\/products\/2pcs-set-woman-wave-colorful-hairpins-sets-women-hair-accessories-barrettes-hair-clips-lady-headwear-ornaments-hairgrip?variant=22685047-f659-4d24-b85e-d00b9d642478","available_quantity":999999999,"options":[{"name":"Color","value":"white"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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.
${function(){
const variantData = data.variant || {"id":"22685047-f659-4d24-b85e-d00b9d642478","product_id":"191c16ac-5319-4151-9010-2bee49eb9335","title":"white","weight_unit":"kg","inventory_quantity":1000,"sku":"3256803041012945_white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/e89731348e7c94a1b7651a55d2911f91.jpeg","path":"e89731348e7c94a1b7651a55d2911f91.jpeg","width":1920,"height":1920,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"19.99","price":"9.99","retail_price":"19.99","available":true,"url":"\/products\/2pcs-set-woman-wave-colorful-hairpins-sets-women-hair-accessories-barrettes-hair-clips-lady-headwear-ornaments-hairgrip?variant=22685047-f659-4d24-b85e-d00b9d642478","available_quantity":999999999,"options":[{"name":"Color","value":"white"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}