Post by itzikd1 » Tue Apr 21, 2015 5:02 pm

http://perfectcod.es/2013/07/05/opencar ... rough-url/

http://forum.opencart.com/viewtopic.php?f=20&t=57551

i saw both this posts, which one should i use?

and did the location change to system\library language.php? beacuse i cant seem to find it in the location those posts say it is

opencart 2.1.1

New member

Posts

Joined
Sat Nov 08, 2014 2:12 am

Post by viethemes » Wed Apr 22, 2015 12:15 am

You should follow the first tutorial http://perfectcod.es/2013/07/05/opencar ... rough-url/.

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by itzikd1 » Wed Apr 22, 2015 2:18 am

there is not such a file:
catalog/controller/module/language.php
....


is this the same one? system\library\language.php

opencart 2.1.1

New member

Posts

Joined
Sat Nov 08, 2014 2:12 am

Post by Mondragger » Wed Apr 22, 2015 10:29 am

I've been needing this exact same thing for days, and that code seems outdated for 2.0.1.1, if someone can please help us solve this puzzle, it would be awesome :)

New member

Posts

Joined
Wed Apr 22, 2015 10:27 am

Post by itzikd1 » Thu Apr 23, 2015 6:11 am

anyone?

New member

Posts

Joined
Sat Nov 08, 2014 2:12 am

Post by viethemes » Thu Apr 23, 2015 9:32 pm

You can insert code below after the line 4 in the file catalog\controller\common\language.php

Code: Select all

if (isset($this->request->get['lang'])) {
 
    $this->session->data['language'] = $this->request->get['lang'];
 
    $this->response->redirect($this->url->link('common/home'));
}

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by itzikd1 » Thu Apr 23, 2015 9:39 pm

thanks, it works

New member

Posts

Joined
Sat Nov 08, 2014 2:12 am

Post by dovvas » Wed Jul 10, 2019 7:32 pm

Yes it worked, but keep in mind that you need to send the opencart language code ("en-GB" or "el-GR")
It took me some time figure it out, I was sending the html tag lang "en" and "el" and didnt work.
Yes it was a silly,I know :P

Newbie

Posts

Joined
Wed Jul 10, 2019 5:46 pm
Who is online

Users browsing this forum: thekrotek and 39 guests