Hello.
How I can switch default language using PHP command in exp. "index.php"?
I found these files related with language.
\system\library\language.php
\system\config\default.php
I like to create language switcher related with IP address.
Example:
If someone visit from UK they get english, if someone visit from Germany they get auto selected germany language etc.
Any idea?
How I can switch default language using PHP command in exp. "index.php"?
I found these files related with language.
\system\library\language.php
\system\config\default.php
I like to create language switcher related with IP address.
Example:
If someone visit from UK they get english, if someone visit from Germany they get auto selected germany language etc.
Any idea?
Izdelava spletne trgovine | Najem spletne trgovine | PHP programiranje
Are there not any extensions to do this?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Hi,faca5 wrote: ↑Tue Nov 21, 2017 4:36 pmHello.
How I can switch default language using PHP command in exp. "index.php"?
I found these files related with language.
\system\library\language.php
\system\config\default.php
I like to create language switcher related with IP address.
Example:
If someone visit from UK they get english, if someone visit from Germany they get auto selected germany language etc.
Any idea?
I think you should make language autoswitcher in this file catalog/controller/common/language.php
Or find some extension.
I have not tried yet.
Good Luck
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
faca5 wrote: ↑Tue Nov 21, 2017 4:36 pmHello.
How I can switch default language using PHP command in exp. "index.php"?
I found these files related with language.
\system\library\language.php
\system\config\default.php
I like to create language switcher related with IP address.
Example:
If someone visit from UK they get english, if someone visit from Germany they get auto selected germany language etc.
Any idea?
Hii
https://www.opencart.com/index.php?rout ... g=3&page=7
https://www.opencart.com/index.php?rout ... load_id=49
Thx
sachin
I have added PHP code into "catalog/controller/startup/startup.php". Now it works.
Izdelava spletne trgovine | Najem spletne trgovine | PHP programiranje
Who is online
Users browsing this forum: No registered users and 195 guests