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

  • Posts: 615
  • Thank you received: 16
  • Hikashop Business
2 weeks 5 days ago #313447

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

Hi,

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.

--
Victor

Last edit: 2 weeks 5 days ago by PeterChain.

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

  • Posts: 67676
  • Thank you received: 10046
  • MODERATOR
2 weeks 5 days ago #313449

Hi,

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:
www.hikashop.com/download/languages.html#modify
- install modules anywhere:
www.regularlabs.com/extensions/modulesanywhere
- 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.052 seconds
Powered by Kunena Forum