Obtain number of items in a cart to be inserted in a menu item

  • Posts: 620
  • Thank you received: 16
  • Hikamarket Multivendor Hikashop Business
7 months 2 weeks ago #313447

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.10


Is there a simple way to retrieve the number of items in the current cart and display it in a joomla menu item title?

Thanks in advance.


Last edit: 7 months 2 weeks ago by PeterChain.

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

  • Posts: 70020
  • Thank you received: 10485
7 months 2 weeks ago #313449


Yes, you can :
- configure a HikaShop cart module instance via the Joomla modules manager to be configured as a "mini cart".
- You can potentially setup a translation override to remove the text around the quantity:
- install modules anywhere:
- in the title of your menu item, enter the module anywhere tag corresponding to that HikaShop cart module instance so that it will display in the title of the menu item.

The following user(s) said Thank You: PeterChain

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

Time to create page: 0.061 seconds
Powered by Kunena Forum