| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
disable languages | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() is there an easy way to disable the languages option?
If not, what code do I need to remove out of head.tpl to remove the dropdown box without screwing up the rest of head.tpl? Thanks in advance |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Of course I fight with it for 2 hours and as soon as I post I figure it out.
For other who might need to know Code:
Remove this from head.tpl and the pesky languages drop box goes away ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() There's easier way other than removing the section of code from head.tpl. From Admin, enter Languages section. Under "Edit language", select the language you don't want to use and click on "Disable" button. If you disabled all but one language, the language option box on customer's page will disappear.
|
|||||||
#4
|
|||||||
|
|||||||
![]() False!
I did it, I disabled all but one language (the one I use), and the combo box still appears, showing just one language... |
|||||||
#5
|
|||||||||
|
|||||||||
![]() you can comment out the code in the header or run an sql statement to remove all language entries apart from the ones you want
something along the lines of Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#6
|
|||||||
|
|||||||
![]() Yeah, disabled all but one language worked until I upgraded Cart to newer version. It came back again. I tried to remove other languages from SQL and it doesn't work so I just edit the header tpl to hide it instead.
![]() |
|||||||
#7
|
|||||||
|
|||||||
![]() I think I took out the same section from head.tpl, but the code looks a little different. Anyway, it seems to work.
Code:
__________________
X-Cart version 4.0.17 X-Cart version 4.0.18 Web servers = Apache OS = Linux |
|||||||
#9
|
|||||||
|
|||||||
![]() Quote:
Well... It worked fine with older version until I upgraded it to v3.5.3. The v3.5.3 didn't hide the menu when I deleted all but one. I don't know if this is a bug and already fixed in newer releases. I ended up editing the header instead. |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Can anybody tell me how to edit the /include/get_language.php file to reduce the server processing too?
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|