${function() {
const variantData = data.variant || {"id":"d37f2f0f-ffb9-4fe8-8e38-e755c9569060","product_id":"658e365a-bee6-4d16-9b76-ee70eb0a98a7","title":"yellow","weight_unit":"kg","inventory_quantity":0,"sku":"662209192548-yellow","barcode":"","position":2,"option1":"yellow","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/084c7c63bc787b252590a1ef24fa7b26.jpeg","path":"084c7c63bc787b252590a1ef24fa7b26.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=d37f2f0f-ffb9-4fe8-8e38-e755c9569060","available_quantity":999999999,"options":[{"name":"color","value":"yellow"}],"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.