${function() {
const variantData = data.variant || {"id":"84ab2cfd-f164-46fd-8f89-326398595682","product_id":"658e365a-bee6-4d16-9b76-ee70eb0a98a7","title":"green","weight_unit":"kg","inventory_quantity":0,"sku":"662209192548-green","barcode":"","position":3,"option1":"green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ec1737e8a9a2154a8c3144744a4d1f4e.jpeg","path":"ec1737e8a9a2154a8c3144744a4d1f4e.jpeg","width":800,"height":800,"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=84ab2cfd-f164-46fd-8f89-326398595682","available_quantity":999999999,"options":[{"name":"color","value":"green"}],"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.