Jump to content
Sign in to follow this  
Dominika

Currency change option on home page

Recommended Posts

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&amp;get=price&amp;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&amp;get=price&amp;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!

Share this post


Link to post
Share on other sites
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&amp;get=price&amp;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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated