${function() {
const variantData = data.variant || {"id":"5f72fff3-688c-4526-b4b2-3db57b270313","product_id":"a3efc56b-13be-490d-aa7a-e8bff935a417","title":"black-4XL","weight_unit":"kg","inventory_quantity":0,"sku":"black-4XL","barcode":"","position":6,"option1":"black","option2":"4XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/589ee2c7520cc2ae80f6787ecc289450.jpeg","path":"589ee2c7520cc2ae80f6787ecc289450.jpeg","width":600,"height":900,"alt":"Casual Paneled Wide Leg Pants","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":34.87,"min_quantity":1}],"weight":"0","compare_at_price":"62.27","price":"34.87","retail_price":"62.27","available":true,"url":"\/products\/casual-paneled-wide-leg-pants?variant=5f72fff3-688c-4526-b4b2-3db57b270313","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"4XL"}],"off_ratio":44,"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.