${function() {
const variantData = data.variant || {"id":"875247cb-6f33-46c5-9079-a9b88f2bd904","product_id":"950c4710-2e64-4986-8ede-50bbe482296e","title":"green-one size","weight_unit":"kg","inventory_quantity":0,"sku":"66221021461-green-one size","barcode":"","position":1,"option1":"green","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/538db1058d74e7ef20609efa26c0c067.jpeg","path":"538db1058d74e7ef20609efa26c0c067.jpeg","width":1000,"height":1000,"alt":"V-Neck Sweater Cropped Linen Pattern Knit Sweater","aspect_ratio":1},"wholesale_price":[{"price":37.48,"min_quantity":1}],"weight":"0.4","compare_at_price":"73.49","price":"37.48","retail_price":"73.49","available":true,"url":"\/products\/v-neck-sweater-cropped-linen-pattern-knit-sweater?variant=875247cb-6f33-46c5-9079-a9b88f2bd904","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"one size"}],"off_ratio":49,"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.