${function() {
const variantData = data.variant || {"id":"66529fc3-2e97-4d78-858e-b8f856e2215e","product_id":"b21e65fe-2261-4e82-94da-1b3f3e60fbfb","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"662210082971-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/61dbda06ec39f6c2ea270613333abde7.jpeg","path":"61dbda06ec39f6c2ea270613333abde7.jpeg","width":800,"height":800,"alt":"High waist slim all match straight leg casual pants","aspect_ratio":1},"wholesale_price":[{"price":45.33,"min_quantity":1}],"weight":"0.6","compare_at_price":"78.16","price":"45.33","retail_price":"78.16","available":true,"url":"\/products\/high-waist-slim-all-match-straight-leg-casual-pants?variant=66529fc3-2e97-4d78-858e-b8f856e2215e","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":42,"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.