However, now if I want to add a category in admin section, it asks me to input my category name in EACH language, like French, Russian etc.
How can I overcome this? The languages are all deactivated! Do I have to delete them????
Reason: Renamed and moved
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Only 2 languages are activated, also in store front only 2 languages are shown.
However, if I want to add a new category or new product in admin section, ALL the languages are shown and I have to input titles in ALL languages. If I only input German and English, I cannot save the product, it gives me an error that not all the necessary data has been input.
Who is using 1.5.1.3 Europa version? I think most of you (if not all) do not need many languages, maybe 2-4. How did you deactivate them in category/products menu? Deactivating in system-local settings only makes that they are not shown in the store front (flags).
1. Don't just "disable" the language -- delete it!
2. Edit the model (admin/model/localisation/language.php) by changing line 239 from:
Code: Select all
$sql = "SELECT * FROM " . DB_PREFIX . "language";
Code: Select all
$sql = "SELECT * FROM " . DB_PREFIX . "language" WHERE status = '1';
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "language ORDER BY sort_order, name");
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "language WHERE status = '1' ORDER BY sort_order, name");
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
So you say that adding option 2 will disable the language fields in OC necessary for that language if that language is disabled?fido-x wrote:There are 2 ways you can do this.
So when adding a product it will not show these fields?
This should be in the core then!!
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Yes, that's what I'm saying. When you disable a language, it is only disabled on the front-end, not in the back-end. In the back-end, all languages are loaded, regardless of status.i2Paq wrote:So you say that adding option 2 will disable the language fields in OC necessary for that language if that language is disabled?
So when adding a product it will not show these fields?
Probably should be reported as a bug!This should be in the core then!!
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Your wishfido-x wrote:Probably should be reported as a bug!
Issue 679: Language disabled only disables in storefront
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Code: Select all
$sql = "SELECT * FROM " . DB_PREFIX . "language" WHERE status = '1';
Code: Select all
$sql = "SELECT * FROM " . DB_PREFIX . "language WHERE status = '1'";
By disabling the language in the admin, you cause many errors for yourself which is why I added it back in. Best plan is to instead use php to copy the english to the german version if the german textarea is left empty. This way it still lets you only enter it once but doesn't break other things downstream.
Any other suggestions?
Is there such a VqMod Q was suggesting that can auto-fill the other languages?
Users browsing this forum: No registered users and 83 guests