${function() {
const variantData = data.variant || {"id":"eb60c199-c118-48e2-922f-18e2650ba9ea","product_id":"aff84b25-0004-4db0-854c-0c2502a110d1","title":"yellow-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428442-yellow-S","barcode":"","position":6,"option1":"yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/03fbfa766f91be581118cde9af41d88a.jpeg","path":"03fbfa766f91be581118cde9af41d88a.jpeg","width":800,"height":800,"alt":"Cotton linen tie casual cropped pants","aspect_ratio":1},"wholesale_price":[{"price":37.85,"min_quantity":1}],"weight":"0.3","compare_at_price":"46","price":"37.85","retail_price":"46","available":true,"url":"\/products\/cotton-linen-tie-casual-cropped-pants?variant=eb60c199-c118-48e2-922f-18e2650ba9ea","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"size","value":"S"}],"off_ratio":18,"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.