Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Serve Different Languages Based On Domain Rate Topic   - - - - -

 

Posted 12 March 2018 - 01:53 PM #1

We'd like to serve different content (not everything - just certain language pieces) based on domain name.

 

For example; we have ourbusiness.com and ourbusiness.it. Both domains resolve to the same document root on the server - i.e. serve exactly the same content.

 

We'd like to server our Italian translations for the .it domain and our English ones for the .com domain.

 

Essentially I want to change the language used for the translations in code dynamically based on using PHP to see what domain were are on.

 

Can anyone point me in the right direction?

 

I don't mind, ultimately, using an Add-on but it will still be useful to understand how I could do this manually.

 

Thanks

 

version: 4.6.1 CS-Cart (not Ultimate)

 

 

 

 

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18934 posts

Posted 12 March 2018 - 02:14 PM #2

For example, you can use two store-fronts and Regions feature

 

http://prntscr.com/iq4r9c

 

Customers will be redirected to corresponding store-front depending on the IP address

 

Additional code customization is not required in this case


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • ThomH
  • Senior Member
  • Members
  • Join Date: 20-Nov 07
  • 1548 posts

Posted 13 March 2018 - 09:15 AM #3

This add-on may help you:

GeoIP Languages


WebGraphiq offers a wide range of professionally developed, ready to use CS-Cart add-ons to provide additional functionality and boost your sales. The oldest active CS-Cart add-on development team. -- Since 2006 --


CS-CART ADD-ONS | FREE QUOTE | CS-CART DEVELOPMENT | @webgraphiq