How to make not required fields in the admin on OpenCart
An extension for OpenCart that allows you to remove the check of required fields in the form of adding and editing the order and the buyer and his address. This way, editable fields will be optional and the online store administrator or manager will be able to add a new customer or create a new order much faster without having to enter data in unnecessary fields.
What is the purpose of this extension:
not required fields when creating an order in the admin panel
not required fields when editing the order in the admin panel
optional fields when adding a new buyer in the admin panel
optional fields when editing the buyer in the admin panel
not mandatory fields when editing the buyer's address in the admin panel
The module makes optional such fields as the name of the buyer, phone, address, city, zip code, country, region, additional fields.
Module installation instructions:
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Modifications" section and update the cache.
Bingo!
Changelog of Not Required Editing Fields
v1.0.1 (31 March 2023) - All fields of the customer form and his address are optional. Password autofill by the browser in the customer's edit form is disabled.
How to build a variable name or array key in Twig: attribute(context, 'var'~id), square brackets, the .() operator from Twig 3.15, interpolation, and OpenCart compatibility.
An analysis of OpenCart 4.2.x.x development plans: the switch to jQuery 4.0.0, changes to `oc_product_code`, a 15–20 MB reduction in the distribution size, and the module adaptation process.
Daniel Kerr has announced the static OpenCart 5 and the opencart.js project. We analyze the advantages and limitations of this concept, as well as the development of PHP branches 3.0, 4.1, and 4.2.