${function() {
const variantData = data.variant || {"id":"51e50b7d-c983-48a3-b7bb-12e969c64420","product_id":"a57df5aa-0da6-4c4c-a842-cb9d687f5edc","title":"Red-S","weight_unit":"kg","inventory_quantity":0,"sku":"2212122504-Red-S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/915c65edefa51cec9419256568e3e818.png","path":"915c65edefa51cec9419256568e3e818.png","width":675,"height":900,"alt":"Western Vintage Pattern Sweatshirt","aspect_ratio":0.75},"wholesale_price":[{"price":26.62,"min_quantity":1}],"weight":"0.4","compare_at_price":"42","price":"26.62","retail_price":"42","available":true,"url":"\/products\/western-vintage-pattern-sweatshirt?variant=51e50b7d-c983-48a3-b7bb-12e969c64420","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":37,"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.