Jump to content

MULTISTORE INTERNATIONAL-MULTIBOUTIQUE


Ledu

Recommended Posts

Hello

I have a store under construction https://alcovista.eu with 7 countries in multistore mode. prestashop 8.0.1.

The server and location of the company is in Spain.

I am currently in France and I have a problem because when I open the website it is my Spanish page that is displayed and not the French one.
It's the same thing when I connect to the website on a VPN in Germany for example, I get the ES page instead of the DE.... page.

I've got another site up and running with prestashop 1.6 (https://preventika.com) and it's working fine, but currently in France I get the FR page displayed as soon as I enter the site name.

Does anyone have any clues?

José

Link to comment
Share on other sites

Hi,

There may be several reasons for this.

The first is that your browser is configured in Spanish, so the site is displayed in Spanish.

The second is that you've already visited the site in Spanish, so you come back and it knows you were in Spanish. In this case, all you have to do is clear your browser's cookies.

After that, it also depends on your store's configuration, because you're talking about 7 countries when that seems to correspond more to 7 languages, but basically, whether you have a store per language or not, your configuration isn't very well explained at the moment.

As the site is under maintenance, we can't test it.

Link to comment
Share on other sites

I think the issue could be due to a combination of browser language settings, cookie storage, and how your multistore setup is configured. As Mediacom87 mentioned, cookies may be causing the site to remember your previous visit in Spanish. Clear your cookies and try accessing the site again to see if the correct country store is displayed.

You could implement browser language detection in PHP or JavaScript, as Prestashop Addict suggested. This can automatically redirect visitors to the correct store based on their browser's language setting. It might not be built into multistore, but custom code or a module could achieve this.

Make sure that your multistore is properly configured, with each store associated with the right language and country. You should verify this under Shop Parameters > Multistore and ensure that the URLs and redirections are set up correctly for each version of the site. After clearing cookies and adjusting settings, test your site from different browsers and VPN locations to see if the correct store is displayed.

Link to comment
Share on other sites

22 hours ago, Ledu said:

I am currently in France and I have a problem because when I open the website it is my Spanish page that is displayed and not the French one.

is it possible that your browser is set to Spanish?

Link to comment
Share on other sites

On 10/15/2024 at 2:55 PM, Prestashop Addict said:

Hi, this is not working in multistore. This feature is working with languages in International settings for single shop. The best solution is to detect browser language in php or js and make a redirect

You're probably right.
I'll try to modify the index php ...

thank you

Link to comment
Share on other sites

12 hours ago, Mediacom87 said:

Hi,

There may be several reasons for this.

The first is that your browser is configured in Spanish, so the site is displayed in Spanish.

The second is that you've already visited the site in Spanish, so you come back and it knows you were in Spanish. In this case, all you have to do is clear your browser's cookies.

After that, it also depends on your store's configuration, because you're talking about 7 countries when that seems to correspond more to 7 languages, but basically, whether you have a store per language or not, your configuration isn't very well explained at the moment.

As the site is under maintenance, we can't test it.

Thanks for your reply.
The browser is in French. And I'm constantly deleting coockies

Each store is configured with its own language, for example the url of the French shop is alcovista.eu/fr/fr , this store is aimed at French-speaking customers and I want this to be the one displayed in France...
The multi-boutique mode seems to be well configured.
But maybe Prestashop Addict is right.

On my admin the site is not under maintenance

Link to comment
Share on other sites

2 hours ago, Nickz said:

is it possible that your browser is set to Spanish?

 

Bonjour

Actuellement je suis sur un ordinateur Français et une IP française

Link to comment
Share on other sites

il y a 4 minutes, Ledu a dit :

Each store is configured with its own language, for example the url of the French shop is alcovista.eu/fr/fr , this store is aimed at French-speaking customers and I want this to be the one displayed in France...

I have no trouble accessing it, and in French.

Link to comment
Share on other sites

is to implement browser language detection in PHP or JavaScript, as suggested by Prestashop Addict is to implement browser language detection in PHP or JavaScript, as suggested by Prestashop Addict. 
Or buy a URL redirection module...

 

Merci

Link to comment
Share on other sites

9 minutes ago, Mediacom87 said:

I have no trouble accessing it, and in French.

If you enter alcovista.de/fr/fr in your browser, you'll have no problem accessing the French page. But if you enter alcovista.eu without fr/fr in your browser, you'll be redirected to alcovista.eu/es.

Link to comment
Share on other sites

see here how to configure PS to localize lang on http browser language

when testing,  open in incognito browser window so cookies are new...note: if you have tab also  opened in same incognito it will use previous cookie

just to toot my own horn we have a different solution for multishop, written for 1.4 (back before electricity), works perfectly for shops that will share catalog/customers...but want each shop to have different core defaults, name, contact info, default currency/language.

https://prestaheroes.com/products/prestashop-multistore-multishop-pro?variant=41091628859599

Link to comment
Share on other sites

il y a 33 minutes, Ledu a dit :

If you enter alcovista.de/fr/fr in your browser, you'll have no problem accessing the French page. But if you enter alcovista.eu without fr/fr in your browser, you'll be redirected to alcovista.eu/es.

You tell us that everything is well configured, but we don't know your configuration, the stores, their localization settings, and so on.

And above all, how can the site know which language to display if each language has its own independent store?

If I understand correctly, each store has a sub-folder corresponding to its language, basically a virtual one to make it look like it's multi-language, but it's not.

So you need a module that will take care of the switchover, as proposed by this module:

https://www.prestatoolbox.com/multi-store-prestashop/317-block-multi-languages-multi-domains.html

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...