[Skip to main content](#vessel-content)

#   Add HikaShop Currency Switcher to checkout page

##

- **[mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile")**
- [![mohsenr1's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1287-mohsenr1 "View mohsenr1's Profile") Topic Author
- [ Offline](/forum/user/1287-mohsenr1)

Less More

- Posts: 5
- Thank you received: 0
-
-

15 years 3 months ago [\#24035](#24035) by [mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile")  *[Add HikaShop Currency Switcher to checkout page](/forum/4-how-to/24035-add-hikashop-currency-switcher-to-checkout-page#24035 "Hi. I want to show the Currency Switcher in Checkout page. I know there is a module named &quot;HikaShop Currency Switcher Module&quot; for Hikashop to do switches between currencies, but I don't want to show that switcher in any module. So I've found a solution myself. To do so, change the module position of module &quot;HikaShop Currency Switcher Module&quot; to any custom position. I did changed to &quot;currencyswitcher&quot;. The only thing you need now, is to use that position in Content - Load Module plugin. You may put  in any article you want. But I did not wanted to put the switcher to an article. I wanted to put that in checkout page. So I did found another solution. I've found &quot;cart.php&quot; in ../components/com&#95;hikashop/views/checkout/tmpl that presents our checkout page. So the only change I needed to do in this file was to add a Joomla API that bring this ability to render modules in scripts. Here it is :  And put this line of code where ever the switcher must appear:  It shows the switcher in checkout page, But it does not switch the currencies anyway. So I asked you for help, if it's possible to add switcher in checkout page only. Any help will be appreciated.")* was created by *[mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile")*

Hi.
I want to show the Currency Switcher in Checkout page. I know there is a module named "HikaShop Currency Switcher Module" for Hikashop to do switches between currencies, but I don't want to show that switcher in any module.
So I've found a solution myself. To do so, change the module position of module "HikaShop Currency Switcher Module" to any custom position. I did changed to "currencyswitcher". The only thing you need now, is to use that position in Content - Load Module plugin. You may put Code:

{loadposition currencyswitcher}

in any article you want.
But I did not wanted to put the switcher to an article. I wanted to put that in checkout page. So I did found another solution. I've found "cart.php" in ../components/com_hikashop/views/checkout/tmpl that presents our checkout page. So the only change I needed to do in this file was to add a Joomla API that bring this ability to render modules in scripts.
Here it is : Code:

jimport('joomla.application.module.helper'); $mods = JModuleHelper::getModules('currencymanager');

And put this line of code where ever the switcher must appear: Code:

echo JModuleHelper::renderModule($mods[0]);

It shows the switcher in checkout page, But it does not switch the currencies anyway. So I asked you for help, if it's possible to add switcher in checkout page only. Any help will be appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI0MDM1LWFkZC1oaWthc2hvcC1jdXJyZW5jeS1zd2l0Y2hlci10by1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 3 months ago [\#24036](#24036) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add HikaShop Currency Switcher to checkout page](/forum/4-how-to/24035-add-hikashop-currency-switcher-to-checkout-page#24036 "Hi. I want to show the Currency Switcher in Checkout page. I know there is a module named &quot;HikaShop Currency Switcher Module&quot; for Hikashop to do switches between currencies, but I don't want to show that switcher in any module. So I've found a solution myself. To do so, change the module position of module &quot;HikaShop Currency Switcher Module&quot; to any custom position. I did changed to &quot;currencyswitcher&quot;. The only thing you need now, is to use that position in Content - Load Module plugin. You may put  in any article you want. But I did not wanted to put the switcher to an article. I wanted to put that in checkout page. So I did found another solution. I've found &quot;cart.php&quot; in ../components/com&#95;hikashop/views/checkout/tmpl that presents our checkout page. So the only change I needed to do in this file was to add a Joomla API that bring this ability to render modules in scripts. Here it is :  And put this line of code where ever the switcher must appear:  It shows the switcher in checkout page, But it does not switch the currencies anyway. So I asked you for help, if it's possible to add switcher in checkout page only. Any help will be appreciated.")*

You can just restrict the module to one page with its page assignment option and set force the menu checkout to be that page with the option "force a menu on checkout" of the config. Thus, the module will only be displayed on the checkout.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI0MDM1LWFkZC1oaWthc2hvcC1jdXJyZW5jeS1zd2l0Y2hlci10by1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile")**
- [![mohsenr1's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1287-mohsenr1 "View mohsenr1's Profile") Topic Author
- [ Offline](/forum/user/1287-mohsenr1)

Less More

- Posts: 5
- Thank you received: 0
-
-

15 years 3 months ago -  13 years 9 months ago [\#24038](#24038) by [mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile")  Replied by *[mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile")* on topic *[Re: Add HikaShop Currency Switcher to checkout page](/forum/4-how-to/24035-add-hikashop-currency-switcher-to-checkout-page#24038 "Hi. I want to show the Currency Switcher in Checkout page. I know there is a module named &quot;HikaShop Currency Switcher Module&quot; for Hikashop to do switches between currencies, but I don't want to show that switcher in any module. So I've found a solution myself. To do so, change the module position of module &quot;HikaShop Currency Switcher Module&quot; to any custom position. I did changed to &quot;currencyswitcher&quot;. The only thing you need now, is to use that position in Content - Load Module plugin. You may put  in any article you want. But I did not wanted to put the switcher to an article. I wanted to put that in checkout page. So I did found another solution. I've found &quot;cart.php&quot; in ../components/com&#95;hikashop/views/checkout/tmpl that presents our checkout page. So the only change I needed to do in this file was to add a Joomla API that bring this ability to render modules in scripts. Here it is :  And put this line of code where ever the switcher must appear:  It shows the switcher in checkout page, But it does not switch the currencies anyway. So I asked you for help, if it's possible to add switcher in checkout page only. Any help will be appreciated.")*

I did not see that. Thank you.

Last edit: 13 years 9 months ago by [mohsenr1](/forum/user/1287-mohsenr1 "View mohsenr1's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI0MDM1LWFkZC1oaWthc2hvcC1jdXJyZW5jeS1zd2l0Y2hlci10by1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Hátle](/forum/user/17167-hatle "View Hátle's Profile")**
- [![Hátle's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17167-hatle "View Hátle's Profile")
- [ Offline](/forum/user/17167-hatle)

Less More

- Posts: 15
- Thank you received: 0
-
-

13 years 6 months ago [\#103225](#103225) by [Hátle](/forum/user/17167-hatle "View Hátle's Profile")  Replied by *[Hátle](/forum/user/17167-hatle "View Hátle's Profile")* on topic *[Add HikaShop Currency Switcher to checkout page](/forum/4-how-to/24035-add-hikashop-currency-switcher-to-checkout-page#103225 "Hi. I want to show the Currency Switcher in Checkout page. I know there is a module named &quot;HikaShop Currency Switcher Module&quot; for Hikashop to do switches between currencies, but I don't want to show that switcher in any module. So I've found a solution myself. To do so, change the module position of module &quot;HikaShop Currency Switcher Module&quot; to any custom position. I did changed to &quot;currencyswitcher&quot;. The only thing you need now, is to use that position in Content - Load Module plugin. You may put  in any article you want. But I did not wanted to put the switcher to an article. I wanted to put that in checkout page. So I did found another solution. I've found &quot;cart.php&quot; in ../components/com&#95;hikashop/views/checkout/tmpl that presents our checkout page. So the only change I needed to do in this file was to add a Joomla API that bring this ability to render modules in scripts. Here it is :  And put this line of code where ever the switcher must appear:  It shows the switcher in checkout page, But it does not switch the currencies anyway. So I asked you for help, if it's possible to add switcher in checkout page only. Any help will be appreciated.")*

Hello,

I would like to display the currency module on the checkout page as well,
but my problem is multilingual site, so i can't force a single menu item on the checkout page.

I have made menu items for each checkout in each language and i'm able to display the module on these pages.

Well but still when i click on the hikashop cart module, which goes to checkout, the currency module is hidden, cause it doesn't follow the checkout menu items.

Please can you guide me how to fix this ?
I guess a solution could be to add some code to the checkout view file to display the module.

THank youu

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI0MDM1LWFkZC1oaWthc2hvcC1jdXJyZW5jeS1zd2l0Y2hlci10by1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

13 years 6 months ago [\#103227](#103227) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add HikaShop Currency Switcher to checkout page](/forum/4-how-to/24035-add-hikashop-currency-switcher-to-checkout-page#103227 "Hi. I want to show the Currency Switcher in Checkout page. I know there is a module named &quot;HikaShop Currency Switcher Module&quot; for Hikashop to do switches between currencies, but I don't want to show that switcher in any module. So I've found a solution myself. To do so, change the module position of module &quot;HikaShop Currency Switcher Module&quot; to any custom position. I did changed to &quot;currencyswitcher&quot;. The only thing you need now, is to use that position in Content - Load Module plugin. You may put  in any article you want. But I did not wanted to put the switcher to an article. I wanted to put that in checkout page. So I did found another solution. I've found &quot;cart.php&quot; in ../components/com&#95;hikashop/views/checkout/tmpl that presents our checkout page. So the only change I needed to do in this file was to add a Joomla API that bring this ability to render modules in scripts. Here it is :  And put this line of code where ever the switcher must appear:  It shows the switcher in checkout page, But it does not switch the currencies anyway. So I asked you for help, if it's possible to add switcher in checkout page only. Any help will be appreciated.")*

Hi,

You can use [ extensions.joomla.org/extensions/core-en...embed-a-include/6402](http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/embed-a-include/6402) and add the tag at the beginning or the end of the file "step" via the menu Display-&gt;Views and that will display the module at the top or bottom of the checkout.

The following user(s) said Thank You: [Hátle](/forum/user/17167-hatle "View Hátle's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI0MDM1LWFkZC1oaWthc2hvcC1jdXJyZW5jeS1zd2l0Y2hlci10by1jaGVja291dC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.095 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
