how can i add hikashop cart icon with count

  • Posts: 26
  • Thank you received: 2
  • Hikashop Business
5 years 8 months ago #304577

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.3
-- PHP version -- : 7.1.26
-- Browser(s) name and version -- : chrome

Hi,

I have seen that this topic is already discussed on forum, but still i couldn't achieve the result.
The problem is I couldn't understand where to place the correct code!

I have placed a cart icon (thanks to the template provider) via hikashop mini cart module in my website, when it clicked it shows the cart status on drop down (cart is empty or 'x' items for "Rs.xxx"). This is fine. But I want to display the count in numeric (number of products added in the cart as bubble) on the cart icon.

Could you please guide me in simple steps (easy to follow) to achieve this one?

Regards,
ganesamoorthy


Regards,
Ganesamoorthy
Project Coordinator @ minminiweb.in

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
5 years 8 months ago #304593

Hello,

In order to better understand the context and better answer to your question can you provide an Url in order to see it by ourselves ?
Their are many possibilities but it's highly linked to the context.
Awaiting news from you

Regards

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

  • Posts: 26
  • Thank you received: 2
  • Hikashop Business
5 years 8 months ago #304604

Hi, Please check the url. Thanks.

This message contains confidential information


Regards,
Ganesamoorthy
Project Coordinator @ minminiweb.in

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

  • Posts: 82865
  • Thank you received: 13373
  • MODERATOR
5 years 8 months ago #304609

Hi,

You need to remove what you did and have the normal HikaShop cart module there.
Then, there are two steps:
- active the "mini cart" setting of your HikaShop cart module via the Joomla modules manager. Configure it to have it display how you want when you hover/click on the text of the cart module.
- use translation overrides to change the default text of the cart module so that instead of saying "X items for YINR", you have "HTML of your cart iconX", and when you have the "the cart is empty", you change it to "HTML of your cart icon0".
We have some documentation on translation overrides here: www.hikashop.com/download/languages.html#modify

Doing it like that shouldn't require any code change.

The following user(s) said Thank You: minminiweb

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

Time to create page: 0.051 seconds
Powered by Kunena Forum