${function() {
const variantData = data.variant || {"id":"741e7503-af03-42a9-8a1b-e8ecb32f9635","product_id":"2508ef73-2830-4f87-897a-43f54f2ab79c","title":"gray-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662209192551-gray-one size","barcode":"","position":3,"option1":"gray","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9644c1b98a8f035f000f13a510298f55.jpeg","path":"9644c1b98a8f035f000f13a510298f55.jpeg","width":800,"height":800,"alt":"Autumn and winter loose knitted pants","aspect_ratio":1},"wholesale_price":[{"price":42.36,"min_quantity":1}],"weight":"0.5","compare_at_price":"46.33","price":"42.36","retail_price":"46.33","available":true,"url":"\/products\/autumn-and-winter-loose-knitted-pants?variant=741e7503-af03-42a9-8a1b-e8ecb32f9635","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"one size"}],"off_ratio":9,"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.