ralphonz Posted February 16, 2014 Share Posted February 16, 2014 (edited) Hi, I'm trying to use the smarty modifier 'lower' in clientareaproductdetails.tpl like this: {$status|lower} as mentioned in the smarty docs here: http://www.smarty.net/docsv2/en/language.modifier.lower.tpl But all i get is a blank page if I put |lower in. Why doesn't this work? Edited February 16, 2014 by ralphonz 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 16, 2014 Share Posted February 16, 2014 that confused me too when I first came across it some months ago... I assumed whmcs didn't include it in the installed smarty plugins for some reason. anyway, the workaround is to use {$status|strtolower} 0 Quote Link to comment Share on other sites More sharing options...
ralphonz Posted February 17, 2014 Author Share Posted February 17, 2014 Amazing! Thanks brian. I'm wondering how on earth you figured that out and why is it strtolower rather than the documented lower? Thanks again! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 17, 2014 Share Posted February 17, 2014 The original lower modifier used the php command strtolower in it if you want the original lower modifier shoot me a ticket at my site. 0 Quote Link to comment Share on other sites More sharing options...
ralphonz Posted February 18, 2014 Author Share Posted February 18, 2014 Thanks for the offer sparky. I'm not too bothered about it being different, I just wondered why that was the case and how we are supposed to know if it's not documented! I'm just learning smarty and trying to understand how it is implemented in WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 18, 2014 Share Posted February 18, 2014 Amazing! Thanks brian. I'm wondering how on earth you figured that out and why is it strtolower rather than the documented lower? I think I saw it in another client area template! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.