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

#   a bug in the Hikashop Geolocation Plugin

##

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

Less More

- Posts: 49
- Thank you received: 0
-
-

10 years 10 months ago [\#224037](#224037) by [likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")  *[a bug in the Hikashop Geolocation Plugin](/forum/30-integrations/881072-a-bug-in-the-hikashop-geolocation-plugin#224037 "-- url of the page with the problem -- : market.zaihaiwai.net -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : chrome 47 -- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin  the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded. disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.")* was created by *[likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")*

-- url of the page with the problem -- : market.zaihaiwai.net
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : chrome 47
-- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin

the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded.
disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 10 months ago [\#224039](#224039) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[a bug in the Hikashop Geolocation Plugin](/forum/30-integrations/881072-a-bug-in-the-hikashop-geolocation-plugin#224039 "-- url of the page with the problem -- : market.zaihaiwai.net -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : chrome 47 -- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin  the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded. disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.")*

Hi,

Please provide details about your geolocation plugin configuration.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

10 years 10 months ago [\#224087](#224087) by [likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")  Replied by *[likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")* on topic *[a bug in the Hikashop Geolocation Plugin](/forum/30-integrations/881072-a-bug-in-the-hikashop-geolocation-plugin#224087 "-- url of the page with the problem -- : market.zaihaiwai.net -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : chrome 47 -- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin  the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded. disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.")*

[ ![setting.png](/forum/attachment/28458) ](/forum/attachment/28458 "setting.png")

If the "Set currency" set "yes", the problem which i said before will happen.

- [ ![setting.png](/forum/attachment/28458) ](/forum/attachment/28458 "setting.png") [ ](/forum/attachment/28458?download=1 "setting.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODEwNzItYS1idWctaW4tdGhlLWhpa2FzaG9wLWdlb2xvY2F0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86281
- Thank you received: 14262
-
-

10 years 10 months ago [\#224104](#224104) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[a bug in the Hikashop Geolocation Plugin](/forum/30-integrations/881072-a-bug-in-the-hikashop-geolocation-plugin#224104 "-- url of the page with the problem -- : market.zaihaiwai.net -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : chrome 47 -- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin  the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded. disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.")*

Hi,

The only thing that setting does is that it initialize the HikaShop library and set the current currency based on the IP address of the customer.
It doesn't touch at anything relative to the template used.
So I guess that the problem is with the way the template switching is done based on the domain name used to access the website.
I think the best would be to contact the developer of the extension you're using to do that switch. Normally, having HikaShop loaded or not shouldn't make a difference for it.

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

10 years 10 months ago [\#224211](#224211) by [likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")  Replied by *[likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")* on topic *[a bug in the Hikashop Geolocation Plugin](/forum/30-integrations/881072-a-bug-in-the-hikashop-geolocation-plugin#224211 "-- url of the page with the problem -- : market.zaihaiwai.net -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : chrome 47 -- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin  the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded. disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.")*

Hi,nicolas

the subdomain name, market.zaihaiwai.net is only a URL redirection to zaihaiwai.net/index.php/market-home(there is no any components or plugin doing the template switching), the section of market was using template B. there are also a few section in the same website with different templates, however, they are all run well. Only the market section with the "Set currency" enabled would have the issue.
Please help me find what cause this problem
thank you~

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

10 years 10 months ago [\#224450](#224450) by [likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")  Replied by *[likunzhou](/forum/user/36539-likunzhou "View likunzhou's Profile")* on topic *[a bug in the Hikashop Geolocation Plugin](/forum/30-integrations/881072-a-bug-in-the-hikashop-geolocation-plugin#224450 "-- url of the page with the problem -- : market.zaihaiwai.net -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : chrome 47 -- Error-message(debug-mod must be tuned on) -- : a bug in the Hikashop Geolocation Plugin  the main site(zaihaiwai.net) is using template A, and the part, market.zaihaiwai.net is using template B , however,If the Set currency in the Hikashop Geolocation Plugin enabled, every fist time the market. zaihaiwai.net was opened , the template A was loaded. Then the page was refreshed or opened again, it will runs correctly with template B loaded. disable the Set currency in the Hikashop Geolocation Plugin, all runs well again.")*

I forgot an important part.
the URL redirection is not via the domain management, but a component which named virtual domains.
I think the problem may be caused by the conflict from Hikashop Geolocation Plugin and virtual domains

*This attachment is hidden for guests.
Please log in or register to see it.*

can you fInd what cause the conflict ?
thank you~

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODEwNzItYS1idWctaW4tdGhlLWhpa2FzaG9wLWdlb2xvY2F0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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.218 seconds

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

[](#top)
