How could my extension create new menu item?

  • Posts: 2293
  • Thank you received: 315
7 years 7 months ago #266271

-- HikaShop version -- : 3.0.1

We have basic menu.



how could my extension can create new hikashop menu item?


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #266274

Hi,

If you're asking how to add menu items using PHP code in your extension, then what I can say is this:
Joomla doesn't have any API for that.
So you can directly insert the data of your menu items in the joomla menus table.
That's what we do on our end. For example, in the function addMenus of the file install.hikashop.php that you can find at the root of the install package of HikaShop.

The following user(s) said Thank You: progreccor

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum