Get Free Audit

Magento Tips: How To Include JQuery Into Magento

Feb 26, 2013

532 Aleksander Tretjak

Magento Tips: How To Include JQuery Into Magento

Not everyone probably likes the Prototype library which is included into Magento by default. Some users prefer to use a more popular tool – JQuery framework since it has pretty many ready-made add-ons and plugins.

Any js file can be included either with the help of config. files or using events. Using the event core_block_abstract_prepare_layout_before

 

we can include a library into the page directly before Magento js files.


Observer model:

Igor Dragun
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Igor


Indicating the location of files in helper and the list of included files:


Switching the library into compatibility mode.

jQuery

Download jQuery from GitHub

Igor Dragun
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Igor

3 Comments

  1. Hi sorry. I needs to activate via the admin.. its working now. I want to use this integration to the extension i am writing. More power!

  2. Hi Aleksander,

    I just tried to install your script via magento.

    and it seems it is not working. Any advise?

    Thank you!

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *