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

#   onBeforeProductListingLoad trigger question

##

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

Less More

- Posts: 50
- Thank you received: 1
-
-

12 years 5 months ago [\#155452](#155452) by [matback](/forum/user/13291-matback "View matback's Profile")  *[onBeforeProductListingLoad trigger question](/forum/31-development/868083-onbeforeproductlistingload-trigger-question#155452 "Hi. The onBeforeProductListingLoad triggers on product page load as well. Not the product listings exclusivly. I only want the trigger to have effect on product listing NOT the product page. Is there a smart way of making the the product page not trigger?  Regards Mathias")* was created by *[matback](/forum/user/13291-matback "View matback's Profile")*

Hi.
The onBeforeProductListingLoad triggers on product page load as well. Not the product listings exclusivly. I only want the trigger to have effect on product listing NOT the product page. Is there a smart way of making the the product page not trigger?

Regards
Mathias

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODA4My1vbmJlZm9yZXByb2R1Y3RsaXN0aW5nbG9hZC10cmlnZ2VyLXF1ZXN0aW9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 5 months ago [\#155482](#155482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[onBeforeProductListingLoad trigger question](/forum/31-development/868083-onbeforeproductlistingload-trigger-question#155482 "Hi. The onBeforeProductListingLoad triggers on product page load as well. Not the product listings exclusivly. I only want the trigger to have effect on product listing NOT the product page. Is there a smart way of making the the product page not trigger?  Regards Mathias")*

Hi,

The trigger will only be triggered on products listings. If you get it triggered on the product page, it means that you have a module listing products on that page. If you don't have any products listing module displaying there, then it's probably that you have the related products module which tries to display the related products of the current product. If you don't want related products, you can disable it from the option "modules under the product page" of the configuration.

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

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

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

Less More

- Posts: 50
- Thank you received: 1
-
-

12 years 5 months ago [\#155543](#155543) by [matback](/forum/user/13291-matback "View matback's Profile")  Replied by *[matback](/forum/user/13291-matback "View matback's Profile")* on topic *[onBeforeProductListingLoad trigger question](/forum/31-development/868083-onbeforeproductlistingload-trigger-question#155543 "Hi. The onBeforeProductListingLoad triggers on product page load as well. Not the product listings exclusivly. I only want the trigger to have effect on product listing NOT the product page. Is there a smart way of making the the product page not trigger?  Regards Mathias")*

Thanks Nicolas.

Sorry I'm really stupid. You are right off course. The product page load doesn't trigger. I did actually have a second trigger, onBeforeCompileHead, in my code placing a javascript library. The dynamic code gets loaded on dom ready with onBeforeProductListingLoad listings and that works as it should.

I have a conflict with my javascript library and the (motools I guess) voting stars on the product page. I had no problem with this untill some update. I will do some debugging and add some rules to the library. Then I think I'm good to go.

Thanks for helping me straight ![:)](/media/kunena/emoticons/8.png ":)")

Regards
Mathias

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODA4My1vbmJlZm9yZXByb2R1Y3RsaXN0aW5nbG9hZC10cmlnZ2VyLXF1ZXN0aW9uP3RtcGw9bWFya2Rvd24=) 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.166 seconds

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

[](#top)
