Dominika Posted July 18, 2020 Share Posted July 18, 2020 Hello, I am new to WHMCS and I really appreciate any help. I am working on my site here http://creativeherhosting.com/hosting/ , under the "basic" package , I displayed its price using: <script language="javascript" src="feeds/productsinfo.php?pid=3&get=price&billingcycle=monthly"></script> But this price won't change if you select another currency on the top nav. I would appreciate any help with either: 1. Adding a currency switcher to the nav that will change this price: <script language="javascript" src="feeds/productsinfo.php?pid=3&get=price&billingcycle=monthly"></script> or 2. How to add a price of basic plan under "basic" that will change when currency is changed in the top nav Many thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 21, 2020 Share Posted July 21, 2020 On 18/07/2020 at 13:21, Dominika said: But this price won't change if you select another currency on the top nav. because you're not passing a currency to your feed. On 18/07/2020 at 13:21, Dominika said: 1. Adding a currency switcher to the nav that will change this price: <script language="javascript" src="feeds/productsinfo.php?pid=3&get=price&billingcycle=monthly"></script> no switcher will influence a feed if you're not passing a currency to it. 🙂 On 18/07/2020 at 13:21, Dominika said: 2. How to add a price of basic plan under "basic" that will change when currency is changed in the top nav 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst II WHMCS Lawrence Posted July 22, 2020 WHMCS Technical Analyst II Share Posted July 22, 2020 You would need to pass in the currency parameter as advised by Brian. Assuming that the dropdown is setting the currency ID from the tblcurrencies database table in the PHP session, it should be possible to adjust your code to check for it and set the currency parameter accordingly. 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.