Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Multi Site & CEON - need to change the links generated by the language flags

Multi Site & CEON - need to change the links generated by the language flags

Started by xarum on 28 Apr 2016, 12:15 AM · Views: 770

Results 1 to 5 of 5
28 Apr 2016, 12:15 AM
#1
xarum avatar

xarum

New Zenner

Join Date:
Apr 2016
Location:
Amsterdam
Posts:
6
Plugin Contributions:
0

Post #1 by xarum

This topic refers

https://www.zen-cart.com/showthread.php?210386-Stirling-Grand-Responsive-Template&p=1308750#post1308750

I have ZC 1.5.4 and Multi Site and CEON installed. Shop will be in English and German.

Came to the conclusion that it would be best to structure the shop in this style

domain1/some-english-category/some-product-in-english
domain2/some-german-category/some-product-in-german

Basically, all english products on domain1 and all german products on domain2.

Found out it is possible this way if I create the English descriptions etc., but don't enter anything in German. CEON complains that mappings for German could not be created, I ignore this warning. In the multi site module I can then configure that English categories will only show on domain1 and German categories only on domain2. So far so good, even found - with Anne's help - a solution to replace the auto-generated top menu with a manually created one.

Leaves the language flags to solve which always auto-generate

category/product?language=en
category/product?language=de

This is a problem if a user is on say

domain1/some-english-category/some-product-in-english

and clicks on the German flag it would go to

domain1/some-english-category/some-product-in-english?language=de

which is of course not displayed.

Is there a way to add

/domain1/ to the link generated for the English flag

and

/domain2/ to the link generated for the German flag?

Or could CEON be configured to generally prefix /domain2/ if ?language=de
and /domain1/ if ?language=en

Thanks
Jan

http://www.xarum.com

28 Apr 2016, 1:46 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

If you have two sites one in English and another in German -
Why do you also have language selection enabled??

Zen-Venom Get Bitten

29 Apr 2016, 9:11 AM
#3
xarum avatar

xarum

New Zenner

Join Date:
Apr 2016
Location:
Amsterdam
Posts:
6
Plugin Contributions:
0

Post #3 by xarum

Was hoping to have more links to the products that way and hence improve search engine ratings.

30 Apr 2016, 12:10 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Was hoping to have more links to the products
More links where??

Zen-Venom Get Bitten

2 May 2016, 10:00 PM
#5
xarum avatar

xarum

New Zenner

Join Date:
Apr 2016
Location:
Amsterdam
Posts:
6
Plugin Contributions:
0

Post #5 by xarum

If domain1 sells products in English only and domain2 sells the same products in German and these would be linked via the language flags (without ?language=en/de)
each product would have an incoming link from a related website. Hence hope to improve search relevance/rating.