Forums / Setting Up Categories, Products, Attributes / add language=xx to every product link and category

add language=xx to every product link and category

Locked

Views: 1,316

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Jun 2009, 2:29 PM
#1
sohotech avatar

sohotech

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

add language=xx to every product link and category

can anyone tell me how i can ensure every product link and every category has the language= parameter?

If i need to edit some files can you let me know which files and where?

8 Jun 2009, 3:38 PM
#2
kobra avatar

kobra

Black Belt

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

Re: add language=xx to every product link and category

can anyone tell me how i can ensure every product link and every category has the language= parameter?
Are you trying to display your cart in another language?
This is selectable in the language sidebox if you have installed another language and then is automatically displayed in selected language
https://www.zen-cart.com/tutorials/index.php?article=231

Zen-Venom Get Bitten

8 Jun 2009, 4:41 PM
#3
sohotech avatar

sohotech

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

Re: add language=xx to every product link and category

i have other languages installed. I have tried 4 or 5 SEO products to distinguish links but the basic problem is that the same product and category links are used for each language and the all the SEO use 301 redirects on the alternative languages to resolve this issue.

I want to ensure that all categories and all products have the language= parameter added under all listings. 100% consistancy. This is under the condition where there is no SEO product installed so you are dealing with links that look like

index.php?main_page=product_info&cPath=18&products_id=212

At the moment you get the language= paramater only in the link you are on when you click a language you want that is different from the default. All the other product and category links remain the same as the previous default language links.

Also if you are on the default language say English none of the products or categories have the language= parameter.

8 Jun 2009, 4:46 PM
#4
kobra avatar

kobra

Black Belt

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

Re: add language=xx to every product link and category

I guess I do not understand???

index.php?main_page=product_info&cPath=18&products_id=212

What does this have to do with what language is displayed on the page?

Zen-Venom Get Bitten

8 Jun 2009, 4:55 PM
#5
sohotech avatar

sohotech

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

Re: add language=xx to every product link and category

if you are on the default language say english the links are like the following

index.php?main_page=product_info&cPath=18&products_id=212

what i want is to have all the product links and categories have the language=en at the end so the links would all look like the following:

index.php?main_page=product_info&cPath=18&products_id=212&language=en
8 Jun 2009, 4:57 PM
#6
kobra avatar

kobra

Black Belt

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

Re: add language=xx to every product link and category

I still ask
What does this have to do with what language is displayed on the page?

What the url is has nothing to do with the language displayed

Zen-Venom Get Bitten

8 Jun 2009, 5:16 PM
#7
sohotech avatar

sohotech

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

Re: add language=xx to every product link and category

i have a valid reasons for wanting this that is related to how google deals with sitemaps for different languages versus crawling your website.

If you know how I can achieve adding the langauge= parameter to all links can you explain how i can do this.

8 Jun 2009, 5:25 PM
#8
kobra avatar

kobra

Black Belt

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

Re: add language=xx to every product link and category

i have a valid reasons for wanting this that is related to how google deals with sitemaps for different languages versus crawling your website.
That is a valid reason and might have been expained in your original post as to what you were seeking to do, Complete detail = better responses
If you know how I can achieve adding the langauge= parameter to all links can you explain how i can do this.
I do not right off, but with this detail maybe another will

Zen-Venom Get Bitten