${function() {
const variantData = data.variant || {"id":"d07840ee-e9c4-4008-878c-efb55effda4e","product_id":"282e168c-1df6-43a7-a39b-c2c7ce147283","title":"Green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"a-Green-M-A0026634","barcode":"","position":1,"option1":"Green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ccee59ec56cbe4005167f61486495235.png","path":"ccee59ec56cbe4005167f61486495235.png","width":419,"height":589,"alt":"","aspect_ratio":0.7113752122241087},"wholesale_price":[{"price":34.8,"min_quantity":1}],"weight":"0","compare_at_price":"59.96","price":"34.8","retail_price":"59.96","available":true,"url":"\/products\/palazzo-pants?variant=d07840ee-e9c4-4008-878c-efb55effda4e","available_quantity":1000,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"M"}],"off_ratio":42,"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.