${function() {
const variantData = data.variant || {"id":"ccd6885b-4b49-43e5-83fc-45ffbf48c66a","product_id":"2508ef73-2830-4f87-897a-43f54f2ab79c","title":"khaki-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662209192551-khaki-one size","barcode":"","position":1,"option1":"khaki","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7fc3715ae21939ec579b5722f75d8540.jpeg","path":"7fc3715ae21939ec579b5722f75d8540.jpeg","width":800,"height":800,"alt":"Autumn and winter loose knitted pants","aspect_ratio":1},"wholesale_price":[{"price":42.36,"min_quantity":1}],"weight":"0.5","compare_at_price":"46.33","price":"42.36","retail_price":"46.33","available":true,"url":"\/products\/autumn-and-winter-loose-knitted-pants?variant=ccd6885b-4b49-43e5-83fc-45ffbf48c66a","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"one size"}],"off_ratio":9,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.