Page 1 of 1

OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 6:08 pm
by HarishST
Please suggest me the procedure to add a "Simple Dropdown" in "admin/index.php?route=sale/order/info" like Order Status Drop Down!
I need it as A Module/Extension, so that anyone can install it and remove it if they don't need.
I could create this by directly hard coding into the sale/order_info.tpl, but I need it as a Module/extension.
Can Anyone Help ?

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 6:34 pm
by thekrotek
Which kind of help are you looking for? Nobody will describe you the whole process, you need to learn it yourself. Start with understanding of MVC structure, then take any other simple module and see, how it is made. And finally create your own extension by copying and modifying that other simple module (the easy way).

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 6:45 pm
by HarishST
Thanks for your Reply. I have already created a simple module, which retrieves the Database data into catalog Front End.
I can add that module in extensions and I can successfully add it into any page.

Now I am trying to create a Module for Admin not for Front End. It is a simple one actually. I have to create an extension, so that when I install it, in the route "admin/sale/order_info" a drop down box should be displayed, which should display the DB details.

I am not asking for the whole process or code. I just need the help on "The Procedures and files I have to create" and How O can enable the dropdown on installing the extension. I am so confused, how I can display the .tpl in in another .tpl :(

Image

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 8:10 pm
by thekrotek
You don't need to add one TPL into another. You just need to insert the code using VQMod/OCMod.

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 8:31 pm
by HarishST
Ok Thanks... Is there any Documentation or Links I can Refer to ? I am able to create a separate custom page in admin as extension. But Don't have an idea about changing existing .tpl file !

Any Reference will help me a lot!

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 8:57 pm
by thekrotek

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Tue Jul 03, 2018 9:56 pm
by OSWorX
If you intend to develop this extension for 2.x and up, use only OCMod and forget VQMod.
If for 1.5.x, create another extension using VQMod.

And 1 tip: download a free extension from the market for 2.x and/or 3.x using OCMod, and see how this is done - this will help you more than the OCMod documentation.

Re: OpenCart 2.3.0.2 : Creating A Simple Dropdown Module in admin/sale/order_info

Posted: Wed Jul 04, 2018 11:55 am
by HarishST
Thank You So Much Both of YOU @thekrotek @OSWorlx .
Thanks for your suggestions and help. I will try to change the system core files using OCmod. :)