${function() {
const variantData = data.variant || {"id":"0aa4ea5a-5a73-416b-92d9-cc9adf0fed39","product_id":"e0fc998a-dcbe-4796-a77d-0acfc485c282","title":"green-M","weight_unit":"kg","inventory_quantity":0,"sku":"66230510972-green-M","barcode":"","position":5,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cb7fbd4415b6ce360cd529e4ffb73bac.jpeg","path":"cb7fbd4415b6ce360cd529e4ffb73bac.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=0aa4ea5a-5a73-416b-92d9-cc9adf0fed39","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"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.