${function() {
const variantData = data.variant || {"id":"c6c8037f-23d6-4fe2-ba12-89011c32ff9e","product_id":"edd6bcad-f074-4cb0-8aba-c7e9803bf9f7","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"662209192589-black-S","barcode":"","position":7,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eed0f6f0c59193bc9595ad3ddbb74125.jpeg","path":"eed0f6f0c59193bc9595ad3ddbb74125.jpeg","width":800,"height":800,"alt":"Thick corduroy straight-leg slacks","aspect_ratio":1},"wholesale_price":[{"price":29.74,"min_quantity":1}],"weight":"0.25","compare_at_price":"58.31","price":"29.74","retail_price":"58.31","available":true,"url":"\/products\/thick-corduroy-straight-leg-slacks?variant=c6c8037f-23d6-4fe2-ba12-89011c32ff9e","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":49,"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.