${function() {
const variantData = data.variant || {"id":"64b0b7e5-a96a-4a82-8130-04ccf9ee1506","product_id":"889ebd8d-7013-4b8b-a529-ee2c8331c040","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230506777-gray-S","barcode":"","position":6,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ec2fd14d7c6a36e8d41db0437c7ad7bf.jpeg","path":"ec2fd14d7c6a36e8d41db0437c7ad7bf.jpeg","width":800,"height":800,"alt":"Stand Collar Comfortable Casual Shirt","aspect_ratio":1},"wholesale_price":[{"price":36.54,"min_quantity":1}],"weight":"0.3","compare_at_price":"45","price":"36.54","retail_price":"45","available":true,"url":"\/products\/stand-collar-comfortable-casual-shirt?variant=64b0b7e5-a96a-4a82-8130-04ccf9ee1506","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":19,"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.