${function() {
const variantData = data.variant || {"id":"591eed4d-8fe3-4744-a99c-74b518c70585","product_id":"66cf79a4-156a-4ab0-b8f5-ad60e7dc754e","title":"Red-S","weight_unit":"kg","inventory_quantity":1000,"sku":"BL34192-C122-S00S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7b8619f77d3bb0d6fac22761cabc9592.jpeg","path":"7b8619f77d3bb0d6fac22761cabc9592.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/plus-size-loose-shorts-suit?variant=591eed4d-8fe3-4744-a99c-74b518c70585","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
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.