Jump to content

[FREE MODULE] Language Per Domain


Inform-All

Recommended Posts

This module allows you to set a domain for every installed language.

379111513_Screenshot2020-06-12at15_00_18.png.a6a80374621c8b98d1c298601a97475f.pngThat means you can set a domain extension for each installed language.

No multistore is needed!

Have a unique domain for every language (or country) that you are selling your products.

 

Once you set a domain for every language the module does the following

  • Removes the language in behind the url
  • Adds a language selector in the front office
  • Rewrites all the urls for the selected language
  • No multistore for multiple urls
  • Front office language selector redirects to corresponding url
  • Upon changing language in front office, you keep your shopping cart

Easier to have a domain for their preferred language

After installation set the desired URL for each language you have installed.

Even when you are using multistore you can set a domain for every language in every multistore.

setup-domains.thumb.png.18da26afd5f899bb05107f54735eaa34.png

 

Prestashop's module: Language selector block does not function anymore.

But this module has a language selector build in for the front office.

 

Prestashop 1.7


Download: languageperdomain.zip

 

Any ideas, comments or updates? Check GIT

* Update V.1.1.1 20-02-2023 Links send from admin adjusted to customer's language
* Update V.1.3 27-07-2023 You can put any language/store url on maintenance mode and minor bug fixes.

Edited by Inform-All
Update (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 2 months later...
1 hour ago, BartekGM said:

Hi,
I installed the module, but it does not work on PS 1.7.6.8
There is an error 500 on the page.
What could be the cause?

Can you check with debug mode enabled, if it gives any errors please share them with us.
If that does not give any errors, check your server log.

 

Link to comment
Share on other sites

  • 2 months later...

Hi,

thanks for sharing this module.

Same problem for me. I get 500 errors and even though debug mode is enabled it is not working and we have no extra info.

Our Prestashop version is 1.7.8.7 as for the php version it is set to 7.4 for every of our subdomains. There must be an issue with the way htaccess is rewritten because as we disable the URL rewriting the site seems to work correctly.

Link to comment
Share on other sites

2 hours ago, jr.villaron said:

Hi,

thanks for sharing this module.

Same problem for me. I get 500 errors and even though debug mode is enabled it is not working and we have no extra info.

Our Prestashop version is 1.7.8.7 as for the php version it is set to 7.4 for every of our subdomains. There must be an issue with the way htaccess is rewritten because as we disable the URL rewriting the site seems to work correctly.

Rewritten urls should also work without a problem.
Unless you have any custom .htaccess rewrites i cant (of course) tell anything about that.

In the database "shop_url" it should contain all the desired urls and they should all point to the same shop id.
And i have added a screenshot with the advised settings for "Shop Parameters > Traffic & SEO" 

 242519179_trafficseo.thumb.png.715a904ca388b8c72540b183d651e7db.png

Link to comment
Share on other sites

Hi,

I attach a screenshot of our ps_shop_url table. I imagine that everything is ok but we are displaying at the same time the original line (where physical_uri is /) and the next lines which correspond with the lines creating after the module was configured.

Does everything look ok for you in the table?

Thanks

 

Edited by jr.villaron
Privacy reasons (see edit history)
Link to comment
Share on other sites

10 minutes ago, jr.villaron said:

Hi,

I attach a screenshot of our ps_shop_url table. I imagine that everything is ok but we are displaying at the same time the original line (where physical_uri is /) and the next lines which correspond with the lines creating after the module was configured.

Does everything look ok for you in the table?

Thanks

2022-12-07_143847_phpmyadmin.eu.ionos.host.png

Yes, this looks good.
And i've tested your URLS and it is working perfectly already. 

Please clear all your local cookies from your device(s).

Link to comment
Share on other sites

Yeah the homepages work fine but when I try to visit other pages (categories, products, cms pages, even account pages) I get 500 error and no extra info about the error (debug mode is enabled)

For example : https://test.haritza.com/3-vetements

PS : Could you please edit your answer and remove my attached screenshot please ? I have just noticed that host address is shown 😒

Link to comment
Share on other sites

  • 3 weeks later...

HI,

Same problem for 1.7.8.8 and PHP 7.4, it's doesn't work (with last version).

Debug is in capture to have an idea.

---

 

Also, is it possible to keep same URI for 3 domains for instance and have only 1 domain for a specific domain only.

Ex: 

EN -> www.website.com/en
ES -> www.website.com/es

DE-> www.website.de/de

I made a test but it retourn an error because duplicate URI.

Regards,

bug-7.4.png

Link to comment
Share on other sites

On 3/14/2023 at 9:02 AM, prestaconfig said:

HI,

Same problem for 1.7.8.8 and PHP 7.4, it's doesn't work (with last version).

Debug is in capture to have an idea.

---

 

Also, is it possible to keep same URI for 3 domains for instance and have only 1 domain for a specific domain only.

Ex: 

EN -> www.website.com/en
ES -> www.website.com/es

DE-> www.website.de/de

I made a test but it retourn an error because duplicate URI.

Regards,

bug-7.4.png

I have not had the time to test this module for PS 1.7.8.8.

It's not possible to have the example you showed.

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...