Page 1 of 1
product registration- only the main language is mandatory
Posted: Tue Jul 01, 2025 10:14 pm
by sidclel
Guys, how or what code to use to create an ocmod. to save mandatory titles and descriptions only in the main language, the others remain blank until I edit the product and put the text in it. In front, the user when selecting another language of the main product that does not have the titles and description is directed to Home if
Re: product registration- only the main language is mandatory
Posted: Wed Jul 02, 2025 2:47 am
by khnaz35
Opencart version? Theme being used?
Most likely you need to work with
admin/controller/catalog/product.php (filter non-default languages)
catalog/controller/product/product.php (redirect when missing data)
Re: product registration- only the main language is mandatory
Posted: Thu Jul 03, 2025 10:21 pm
by sidclel
opencart 3.0.3.9 The right question is how to publish and save only 1 language without language priority the others are blank until I write in it
Re: product registration- only the main language is mandatory
Posted: Thu Jul 03, 2025 10:37 pm
by khnaz35
Re: product registration- only the main language is mandatory
Posted: Fri Jul 04, 2025 2:05 am
by OSWorX
sidclel wrote: ↑Tue Jul 01, 2025 10:14 pm
Guys, how or what code to use to create an ocmod. to save mandatory titles and descriptions only in the main language, the others remain blank until I edit the product and put the text in it. In front, the user when selecting another language of the main product that does not have the titles and description is directed to Home if
Sorry, but what you're writing is completely nonsens!
When you provide several languages (as store owner) I ( as visitor) exprect that everything is in all provided languages.
Clicking now on another language and seeing blank fields (or no titles and no descriptions) - or much worser! - redirects me automatically to another (home) page, leads me to leave that store as quickly as I can!
I have made an extension to hide all those fields if a language is not enabled:
https://www.opencart.com/index.php?rout ... n_id=27975
No extra work has to be done if a language is not enabled - and if enabled again, no further action is required.
This let's you switch between - if you need, want, etc ...