${function() {
const variantData = data.variant || {"id":"7ed98fb9-bdb5-49ef-966e-195083aea6f1","product_id":"469c7fb6-cd88-4582-aa26-52fb58cdf8d9","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MOC376641-BLA00S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b767b1e034bacac8da2a97e0a9643607.jpeg","path":"b767b1e034bacac8da2a97e0a9643607.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":47.99,"min_quantity":1}],"weight":"0","compare_at_price":"85.99","price":"47.99","retail_price":"85.99","available":true,"url":"\/products\/mens-vintage-flag-independence-day-print-cargo-shorts?variant=7ed98fb9-bdb5-49ef-966e-195083aea6f1","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":44,"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.