Post by marijan100 » Sat Jan 02, 2016 7:02 pm

I am trying to do one change in opencart source code (1.5.6 version), but unfortunately without success.

We have 5 languages on website.

I want to show english description for the products on all version of languages on web site.

All other content will be on selected language but only description need be on english (no matter what language is selected).

I am searching for solution, and only logical for me is that this changes in code need to be make on product.php file under catalog/controller/product dir.

But can anybody give to me advice where to change the line of code where open cart select language id? In database english is language_id = 1

Newbie

Posts

Joined
Wed Sep 10, 2014 5:35 pm

Post by IP_CAM » Sun Jan 03, 2016 1:20 am

I guess, this would not work, this way. You just try, to make Life harder, than it really is.

If you use a multilanguage Shop, you have to FILL OUT certain required Sections, on every single Product, or what else, in every Language Section, regardless of, if you ever use it or not. Therefore, in every Language Section, where you want to place something in a specific language, just insert, whatever you like, on Content, you may mix i.E. german/english Text/Content-Sections, in a german, or english Content-Frame-Setup, this is of no concern.

You therefore possibly would not even require multilanguage, basically, just place the 'whatever Content' in the language, you decide. Then, possibly even use the 'Magic Translations' Extension, or it's OC v.2.x legacy 'Translate Mate', to modify/change certain 'System-given' Language Content into the planned, 'matching' Form, in the Language Department. :D (Technically, you could so translate an entire Default english Language Sub into another Language, in full, it's all been done by use of VARIABLES, not language words, anyway...!)

But since you use 5 Languages, you just have to insert the english Product Content, in each one of those Sections.

Magic Translations OC v.1.5.x:
http://www.opencart.com/index.php?route ... n_id=24320

Translate Mate OC v.2.x:
http://www.opencart.com/index.php?route ... n_id=23098

Strictly personally, I would choose swiss-german, as Default, because then, I will have i.E. èéàÜÄÖ available as 'legal' language Code, so beeing visible, in any case, but, this all depend's on what languages you plan to use.

I hope, you'll get the message, it's kind of hard to explain... :D

Good Luck
Ernie
jti.li/shop/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 37 guests