nabbello Posted November 8, 2020 Share Posted November 8, 2020 Hello, im using data feed for domain list in my site, <script language="javascript" src="feeds/domainpricing.php"></script> The out put is es. €9.99 EURO i need to hide EURO and add a space after €, like this "€9.99" Any suggestion? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 9, 2020 Share Posted November 9, 2020 as the feed is taking the currency formatting from how you've setup the currency in setup -> currencies, the quick way would be to remove EURO from the suffix and add your space to the prefix in the EUR currency setup. if that's not an option. then I suspect you're looking at duplicating the data feed file (don't' edit the existing data feed as your changes will be removed after a WHMCS update), and modifying the output with string replaces to remove the EURO suffix... technically, the prices are all using the PriceFormatter method, so adding ->toPrefixed() to the variables in the feed code would work, though you would likely need some checks to ensure that the pricing exists in each type for the current TLD before trying to modify it. 0 Quote Link to comment Share on other sites More sharing options...
nabbello Posted November 9, 2020 Author Share Posted November 9, 2020 2 hours ago, brian! said: as the feed is taking the currency formatting from how you've setup the currency in setup -> currencies, the quick way would be to remove EURO from the suffix and add your space to the prefix in the EUR currency setup. This exactly what i needed. Really thanks brian! 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.