Post by patelprajay » Wed May 13, 2015 2:26 pm

Hello everyone,

I want to create a link on admin menu page, when i install my module. and when i uninstall it should remove it.

suppose i have a hello world module than the link should be displayed on the admin menu for hello world.

can any one know how to resolve this issue.?

many thanks
~ Prajay Patel

Many Thanks

~ Prajay Patel


Newbie

Posts

Joined
Wed May 13, 2015 2:19 pm

Post by qahar » Wed May 13, 2015 6:01 pm

You need to use modification, either vqmod or ocmod, to add link to main menu.

If you use ocmod, user need the enable and rebuild the modification before the link show.
When uninstall, you can directly find your ocmod on database by it's code; disabled and rebuild automaticly to remove the link. or just ask user to disable the modification and rebuild the modification cache.

If you use vqmod, you can just rename the vqmod file on your module installer module.xml_ to module.xml to enable/ disable the modification.

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by patelprajay » Thu May 14, 2015 12:50 pm

Many Thanks for your reply "qahar".

Well i do not know more about ocmod as i am new in the opencart.

but i do know about vqmod. so what kind of code i have to write to resolve my issue. can you send me some example code for this issue.

if you can help me i will be so please.

Many Thanks

~ Prajay Patel


Newbie

Posts

Joined
Wed May 13, 2015 2:19 pm
Who is online

Users browsing this forum: No registered users and 3 guests