${function() {
const variantData = data.variant || {"id":"a02c0c25-76b8-40a2-afda-2dba12f87e15","product_id":"9418d122-2c05-4eb4-8c7e-d9a7cbfd1980","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MOC373240-BLA00S","barcode":"","position":8,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2a03df6eec4d8ab54c156959c6461a67.jpeg","path":"2a03df6eec4d8ab54c156959c6461a67.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"44.99","price":"25.99","retail_price":"44.99","available":true,"url":"\/products\/mens-vintage-distressed-hem-independence-day-print-loose-shorts?variant=a02c0c25-76b8-40a2-afda-2dba12f87e15","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"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.