Home menu icon multiplies when hikashop filter triggers

  • Posts: 1027
  • Thank you received: 11
  • Hikashop Business
2 years 11 months ago #332734

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26

Hi!

Something strange happens, in home menu item i use a uikit icon via this class "add-icon-home", when i search or check a hikashop filter this icon multiplies more and more. Is this coming from hikashop?

Thank you

Attachments:

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
2 years 11 months ago #332736

Hi,

The issue comes from your template. When we refresh the different areas of the page in AJAX (with tmpl=raw), the template adds some of its javascript to add that icon:
i.imgur.com/QECteg3.png
There are several ways this could be fixed:
- modify the javascript adding the icon to replace the HTML instead of adding
- modify the javascript adding the icon to only add it if it's not already there
- add that javascript only when the tmpl parameter is empty in $_REQUEST
Any of these three solutions need to be implemented in the template so you'll have to your template support.

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.061 seconds
Powered by Kunena Forum