Post by shashank1992 » Thu Apr 28, 2022 3:18 pm

Hi,
My extension adds a new column to the order info page in admin. How can I make this extension without modifying core files.

thanks

Newbie

Posts

Joined
Fri Apr 01, 2022 2:52 pm

Post by kestas » Thu Apr 28, 2022 5:30 pm

shashank1992 wrote:
Thu Apr 28, 2022 3:18 pm
Hi,
My extension adds a new column to the order info page in admin. How can I make this extension without modifying core files.

thanks
Use Events

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by IP_CAM » Thu Apr 28, 2022 5:32 pm

You could add the Extension Content into the corresponding Core Files, to make it work, but without modifying the core files in charge, changes cannot work.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by JNeuhoff » Thu Apr 28, 2022 5:52 pm

IP_CAM wrote:
Thu Apr 28, 2022 5:32 pm
You could add the Extension Content into the corresponding Core Files, to make it work, but without modifying the core files in charge, changes cannot work.
Actually, there is no need for modifying core files. A simple event handler for the trigger admin/view/sale/order_info/before should do the job.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by IP_CAM » Thu Apr 28, 2022 7:17 pm

Well, that might be so, but I assume, that 'creating events' has little or no meaning for most OC Users, asking such questions... ??? :D

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by grgr » Thu Apr 28, 2022 9:44 pm

IP_CAM wrote:
Thu Apr 28, 2022 7:17 pm
Well, that might be so, but I assume, that 'creating events' has little or no meaning for most OC Users, asking such questions... ??? :D
There is quite a bit of good information about all such mattter now available.
Here is the place to start:
viewtopic.php?t=227710

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by straightlight » Fri Apr 29, 2022 12:16 am

IP_CAM wrote:
Thu Apr 28, 2022 7:17 pm
Well, that might be so, but I assume, that 'creating events' has little or no meaning for most OC Users, asking such questions... ??? :D
Their opinion. The engine is built-in the core wanted or not on anyhow and still takes the lead on the MB.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Apr 29, 2022 12:17 am

shashank1992 wrote:
Thu Apr 28, 2022 3:18 pm
Hi,
My extension adds a new column to the order info page in admin. How can I make this extension without modifying core files.

thanks
OC version. Vague info. Posted in the wrong forum section.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by OSWorX » Fri Apr 29, 2022 3:26 pm

IP_CAM wrote:
Thu Apr 28, 2022 7:17 pm
Well, that might be so, but I assume, that 'creating events' has little or no meaning for most OC Users, asking such questions..
Not only might be so, it IS so that events are the way to go (especially when OpenCart 4.x will be published)!
Everything else is old and "out fashioned".

And the "question" does not comes from a "user", more from a so called "developer" who does not know what he is doing!

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by straightlight » Fri Apr 29, 2022 8:00 pm

It is not only from the fact that a so-called developer may not know what he's doing but also from those who knows what they're doing but simply rather takes chances to search for core lines in existing codes whereas these lines can interfere with other extensions without being aware of it as opposed to the use of Event Triggers.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Users browsing this forum: No registered users and 6 guests