${function() {
const variantData = data.variant || {"id":"79304e74-2030-431b-860b-1226fbafad52","product_id":"a7952cb1-4387-4b25-b051-3046fb83564f","title":"light gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211181865-light gray-S","barcode":"","position":4,"option1":"light gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/606357ef83289f338f44a82546a65f3e.jpeg","path":"606357ef83289f338f44a82546a65f3e.jpeg","width":800,"height":800,"alt":"Drape Snow Cotton All-Match Casual Pants","aspect_ratio":1},"wholesale_price":[{"price":51.73,"min_quantity":1}],"weight":"0.3","compare_at_price":"90.75","price":"51.73","retail_price":"90.75","available":true,"url":"\/products\/drape-snow-cotton-all-match-casual-pants?variant=79304e74-2030-431b-860b-1226fbafad52","available_quantity":999999999,"options":[{"name":"color","value":"light gray"},{"name":"size","value":"S"}],"off_ratio":43,"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.