${function() {
const variantData = data.variant || {"id":"60f42269-4cce-431f-ba42-afc4c7ab01dc","product_id":"825f2a8b-425e-4ee8-9abc-fbdaf841ad71","title":"black","weight_unit":"kg","inventory_quantity":0,"sku":"662209192538-black","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b146c6d4bced62c0545b70d604319862.jpeg","path":"b146c6d4bced62c0545b70d604319862.jpeg","width":800,"height":800,"alt":"Leisure Literature and Art Washing Corduroy Simple Retro Bag","aspect_ratio":1},"wholesale_price":[{"price":28.59,"min_quantity":1}],"weight":"0.3","compare_at_price":"44.18","price":"28.59","retail_price":"44.18","available":true,"url":"\/products\/leisure-literature-and-art-washing-corduroy-simple-retro-bag?variant=60f42269-4cce-431f-ba42-afc4c7ab01dc","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"off_ratio":35,"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.