${function() {
const variantData = data.variant || {"id":"73bb55b8-ca8b-46a7-97ce-8644a58b212a","product_id":"2508ef73-2830-4f87-897a-43f54f2ab79c","title":"black-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662209192551-black-one size","barcode":"","position":2,"option1":"black","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b6dac92d80363ab2d3b4bf51fb9ec306.jpeg","path":"b6dac92d80363ab2d3b4bf51fb9ec306.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=73bb55b8-ca8b-46a7-97ce-8644a58b212a","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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.