Post by davoflores » Tue Jun 21, 2016 5:13 am

I’m developing a module for OpenCart and I need to add a custom field to the orders.

Almost all the tutorials say you have to edit de Order class and add a new attribute there (and a lot of other things).

My question is, if I add a custom field modifying the Order class and in the future another module modify the Order class too, would my module stop working?

How can I achieve that ensuring the correctness of my module?



Tue Jun 21, 2016 5:10 am

Post by imdevlper18 » Tue Jun 21, 2016 1:24 pm

You must design your module using vqmod/ocmod. So core files will not be changed. And you will be able to upgrade.

Opencart Extensions | Professional opencart support | Support Ticket |

User avatar
Active Member


Sun May 11, 2014 2:04 pm

Post by straightlight » Tue Jun 21, 2016 7:52 pm

Another suggested alternative way would be to use your own developed controller files by adding Ajax Request with jQuery from either new or modified template files in order to obtain the desired custom fields without having to use VQMod (if not using already existing core files). Then, even perhaps to add your order module into the API so that future upgrades wouldn't affect your development. :)

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Straightlight Administrator / Quality Assurance Analyst / Programmer / Opencart Tester

Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 4 guests