${function() {
const variantData = data.variant || {"id":"b4e36bb4-1a01-4543-b2a3-1d8a6ad64f61","product_id":"e0fc998a-dcbe-4796-a77d-0acfc485c282","title":"coffee-M","weight_unit":"kg","inventory_quantity":0,"sku":"66230510972-coffee-M","barcode":"","position":1,"option1":"coffee","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a1a5455496b4b69546ba66cdf9d389cb.jpeg","path":"a1a5455496b4b69546ba66cdf9d389cb.jpeg","width":800,"height":800,"alt":"Retro thin and elegant double-layer cropped pants","aspect_ratio":1},"wholesale_price":[{"price":41.79,"min_quantity":1}],"weight":"0.4","compare_at_price":"52","price":"41.79","retail_price":"52","available":true,"url":"\/products\/retro-thin-and-elegant-double-layer-cropped-pants?variant=b4e36bb4-1a01-4543-b2a3-1d8a6ad64f61","available_quantity":999999999,"options":[{"name":"color","value":"coffee"},{"name":"size","value":"M"}],"off_ratio":20,"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.