neaweb6 Posted April 23, 2017 Share Posted April 23, 2017 (edited) Hello, I am trying to setup a data feed to display domain pricing on my website. The current data feed script displays the price as '$14.95 USD' and I would like to remove the 'USD' suffix from the price. I was looking at this thread https://forums.whmcs.com/showthread.php?104355-Data-Feeds but it does not appear to work for the feeds/domainprice.php file. How can I get this to work? Edit: I realize that removing the "USD" suffix in the Currencies setup will fix this problem, but I'm wanting to keep the suffix on other pages. Edited April 23, 2017 by neaweb6 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 24, 2017 Share Posted April 24, 2017 it should work fine if you modify/replicate the feed and use... if ($format) { $price = formatCurrency($price); $price = str_replace('USD','',$price); } ... and then remember to add format=1 to your URL... <script language="javascript" src="feeds/domainprice.php?tld=.com&type=register®period=1¤cy=1&format=1"></script> you could ultimately rewrite the feed to give you different currency output options, but the above should work for your needs. 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.