${function() {
const variantData = data.variant || {"id":"4535ae01-ec4d-498f-9b04-9540390409ea","product_id":"f17abdfd-5480-4ae3-8b4c-62f408b60fa9","title":"Wheat-S","weight_unit":"g","inventory_quantity":0,"sku":"WY04F-A147-Wheat-S","barcode":"","position":1,"option1":"Wheat","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7fa6410f4fe4f8df2bea3355f457cd3e.jpeg","path":"7fa6410f4fe4f8df2bea3355f457cd3e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.98,"min_quantity":1}],"weight":"348","compare_at_price":"35.98","price":"24.98","retail_price":"35.98","available":true,"url":"\/products\/heart-grows-flower-printed-casual-sweatshirt?variant=4535ae01-ec4d-498f-9b04-9540390409ea","available_quantity":999999999,"options":[{"name":"Color","value":"Wheat"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "amount";
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}
`
}()}
${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":"4535ae01-ec4d-498f-9b04-9540390409ea","product_id":"f17abdfd-5480-4ae3-8b4c-62f408b60fa9","title":"Wheat-S","weight_unit":"g","inventory_quantity":0,"sku":"WY04F-A147-Wheat-S","barcode":"","position":1,"option1":"Wheat","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7fa6410f4fe4f8df2bea3355f457cd3e.jpeg","path":"7fa6410f4fe4f8df2bea3355f457cd3e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.98,"min_quantity":1}],"weight":"348","compare_at_price":"35.98","price":"24.98","retail_price":"35.98","available":true,"url":"\/products\/heart-grows-flower-printed-casual-sweatshirt?variant=4535ae01-ec4d-498f-9b04-9540390409ea","available_quantity":999999999,"options":[{"name":"Color","value":"Wheat"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}