${function() {
const variantData = data.variant || {"id":"9c2ad890-ca27-45ec-944a-3fcdb39b5bef","product_id":"90355e52-8556-4c53-97b3-a4e9f16a9bde","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"JW2402151668-Black-S","barcode":"","position":8,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9d055826debacf2d4934482526483f1e.jpeg","path":"9d055826debacf2d4934482526483f1e.jpeg","width":640,"height":853,"alt":"","aspect_ratio":0.7502930832356389},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"23.99","price":"21.99","retail_price":"23.99","available":true,"url":"\/products\/mens-basic-washed-distressed-cotton-coconut-tree-pattern-t-shirte4ecbadc-f10c-4a97-9c93-8978addcece5?variant=9c2ad890-ca27-45ec-944a-3fcdb39b5bef","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":8,"flashsale_info":[],"sales":1};
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.