[Skip to main content](#vessel-content)

#   Product listing causes error on other modules

##

- **[disc](/forum/user/35571-disc "View disc's Profile")**
- [![disc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35571-disc "View disc's Profile") Topic Author
- [ Offline](/forum/user/35571-disc)

Less More

- Posts: 43
- Thank you received: 3
-
-

11 years 3 months ago [\#209625](#209625) by [disc](/forum/user/35571-disc "View disc's Profile")  *[Product listing causes error on other modules](/forum/26-product-category-display/878398-product-listing-causes-error-on-other-modules#209625 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : div  Hi Hika developers,  I´m using some other modules on my site, e.g. SJ HK Minicart and BM Slide Login and this custom code to display the active menu item of the main menu:  jQuery(document).ready(function($){ var url = window.location.href; $('#gc-headmenu .menu li a').filter(function() { return this.href == url; }).addClass('active'); });  The Minicart and Slide Login module both use a slide functionality. All these three modules work well on all pages except when a product listing page is displayed. Both sliders - the one of the Minicart and the one of the Slide Login - do not work on a product listing page. Simultanously also the active menu item is not going to be highlighted on a product listing page.  Is there a javascript conflict somewhere? Do you have any advice what I need to check in order to find the rootcause of this error?  Thanks.")* was created by *[disc](/forum/user/35571-disc "View disc's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : div

Hi Hika developers,

I´m using some other modules on my site, e.g. SJ HK Minicart and BM Slide Login and this custom code to display the active menu item of the main menu:

jQuery(document).ready(function($){
var url = window.location.href;
$('#gc-headmenu .menu li a').filter(function() {
return this.href == url;
}).addClass('active');
});

The Minicart and Slide Login module both use a slide functionality.
All these three modules work well on all pages except when a product listing page is displayed.
Both sliders - the one of the Minicart and the one of the Slide Login - do not work on a product listing page. Simultanously also the active menu item is not going to be highlighted on a product listing page.

Is there a javascript conflict somewhere?
Do you have any advice what I need to check in order to find the rootcause of this error?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgzOTgtcHJvZHVjdC1saXN0aW5nLWNhdXNlcy1lcnJvci1vbi1vdGhlci1tb2R1bGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#209627](#209627) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product listing causes error on other modules](/forum/26-product-category-display/878398-product-listing-causes-error-on-other-modules#209627 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : div  Hi Hika developers,  I´m using some other modules on my site, e.g. SJ HK Minicart and BM Slide Login and this custom code to display the active menu item of the main menu:  jQuery(document).ready(function($){ var url = window.location.href; $('#gc-headmenu .menu li a').filter(function() { return this.href == url; }).addClass('active'); });  The Minicart and Slide Login module both use a slide functionality. All these three modules work well on all pages except when a product listing page is displayed. Both sliders - the one of the Minicart and the one of the Slide Login - do not work on a product listing page. Simultanously also the active menu item is not going to be highlighted on a product listing page.  Is there a javascript conflict somewhere? Do you have any advice what I need to check in order to find the rootcause of this error?  Thanks.")*

Hi,

If you have javascript conflict or javascript error ; you should be able to see it in your browser console.
And when you have a javascript error, the rest of the code below the error would not be processed.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [disc](/forum/user/35571-disc "View disc's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgzOTgtcHJvZHVjdC1saXN0aW5nLWNhdXNlcy1lcnJvci1vbi1vdGhlci1tb2R1bGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[disc](/forum/user/35571-disc "View disc's Profile")**
- [![disc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35571-disc "View disc's Profile") Topic Author
- [ Offline](/forum/user/35571-disc)

Less More

- Posts: 43
- Thank you received: 3
-
-

11 years 3 months ago [\#209788](#209788) by [disc](/forum/user/35571-disc "View disc's Profile")  Replied by *[disc](/forum/user/35571-disc "View disc's Profile")* on topic *[Product listing causes error on other modules](/forum/26-product-category-display/878398-product-listing-causes-error-on-other-modules#209788 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : div  Hi Hika developers,  I´m using some other modules on my site, e.g. SJ HK Minicart and BM Slide Login and this custom code to display the active menu item of the main menu:  jQuery(document).ready(function($){ var url = window.location.href; $('#gc-headmenu .menu li a').filter(function() { return this.href == url; }).addClass('active'); });  The Minicart and Slide Login module both use a slide functionality. All these three modules work well on all pages except when a product listing page is displayed. Both sliders - the one of the Minicart and the one of the Slide Login - do not work on a product listing page. Simultanously also the active menu item is not going to be highlighted on a product listing page.  Is there a javascript conflict somewhere? Do you have any advice what I need to check in order to find the rootcause of this error?  Thanks.")*

Thanks Jerome, that pointed me to the error: jQuery undefined.
In case the product listing is active the jQuery library is not loaded. That´s the reason why all three modules do not work on product listing pages. I understand that jQuery will be called by using JHtml::_('jquery.framework'); but I´´m not sure how to integrate this.
integrating jQuery into the templates index will call the library too late. It needs to be loaded prior to any other javascript.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgzOTgtcHJvZHVjdC1saXN0aW5nLWNhdXNlcy1lcnJvci1vbi1vdGhlci1tb2R1bGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 3 months ago [\#209798](#209798) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product listing causes error on other modules](/forum/26-product-category-display/878398-product-listing-causes-error-on-other-modules#209798 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : div  Hi Hika developers,  I´m using some other modules on my site, e.g. SJ HK Minicart and BM Slide Login and this custom code to display the active menu item of the main menu:  jQuery(document).ready(function($){ var url = window.location.href; $('#gc-headmenu .menu li a').filter(function() { return this.href == url; }).addClass('active'); });  The Minicart and Slide Login module both use a slide functionality. All these three modules work well on all pages except when a product listing page is displayed. Both sliders - the one of the Minicart and the one of the Slide Login - do not work on a product listing page. Simultanously also the active menu item is not going to be highlighted on a product listing page.  Is there a javascript conflict somewhere? Do you have any advice what I need to check in order to find the rootcause of this error?  Thanks.")*

Hi,

If you have issues with jQuery, the best is to try to install and setup the extension jQuery Easy.
It helps fixing jQuery issues on Joomla websites.

The following user(s) said Thank You: [disc](/forum/user/35571-disc "View disc's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgzOTgtcHJvZHVjdC1saXN0aW5nLWNhdXNlcy1lcnJvci1vbi1vdGhlci1tb2R1bGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[disc](/forum/user/35571-disc "View disc's Profile")**
- [![disc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35571-disc "View disc's Profile") Topic Author
- [ Offline](/forum/user/35571-disc)

Less More

- Posts: 43
- Thank you received: 3
-
-

11 years 3 months ago [\#210816](#210816) by [disc](/forum/user/35571-disc "View disc's Profile")  Replied by *[disc](/forum/user/35571-disc "View disc's Profile")* on topic *[Product listing causes error on other modules](/forum/26-product-category-display/878398-product-listing-causes-error-on-other-modules#210816 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : div  Hi Hika developers,  I´m using some other modules on my site, e.g. SJ HK Minicart and BM Slide Login and this custom code to display the active menu item of the main menu:  jQuery(document).ready(function($){ var url = window.location.href; $('#gc-headmenu .menu li a').filter(function() { return this.href == url; }).addClass('active'); });  The Minicart and Slide Login module both use a slide functionality. All these three modules work well on all pages except when a product listing page is displayed. Both sliders - the one of the Minicart and the one of the Slide Login - do not work on a product listing page. Simultanously also the active menu item is not going to be highlighted on a product listing page.  Is there a javascript conflict somewhere? Do you have any advice what I need to check in order to find the rootcause of this error?  Thanks.")*

Perfect.
The extension jQuery Easy did exactly what I tried to fix manually and didn´t work - whatever the reason was.
Clean and smart tool - I can recommend it!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzgzOTgtcHJvZHVjdC1saXN0aW5nLWNhdXNlcy1lcnJvci1vbi1vdGhlci1tb2R1bGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.061 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
