${function() {
const variantData = data.variant || {"id":"b4cfdc3a-f965-4f6b-83a5-6a6e8fec0fd0","product_id":"658e365a-bee6-4d16-9b76-ee70eb0a98a7","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"662209192548-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4104f1e52e411e8908c282fa4fb38654.jpeg","path":"4104f1e52e411e8908c282fa4fb38654.jpeg","width":750,"height":750,"alt":"Autumn and winter fashion atmosphere knitted bag","aspect_ratio":1},"wholesale_price":[{"price":27.81,"min_quantity":1}],"weight":"0.23","compare_at_price":"31.92","price":"27.81","retail_price":"31.92","available":true,"url":"\/products\/autumn-and-winter-fashion-atmosphere-knitted-bag?variant=b4cfdc3a-f965-4f6b-83a5-6a6e8fec0fd0","available_quantity":999999999,"options":[{"name":"color","value":"white"}],"off_ratio":13,"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}
`
}()}
Product was out of stock.
Product is unavailable.