How to add jQuery as extension in Magento

magento-connect-150x150jQuery is a very popular Javascript library and therefore it is often used in Magento projects.

It can be added in Magento by editing the apropriate template files and either downloading and installing the library files locally or by using the CDN url.

To avoid all the hassle of editing templates and having to manually update library files jQuery can also be installed as a Magento extension – simply by downloading and installing MageJquery. This approach has considerable advantages over the manual way to do it:

MageJquery makes adding jQuery easy

  • Installation is quick, easy and carefree
  • All important parameters can be configured directly from the Magento backend: activation or deactivation of the library, which jQuery version should be used, from which repository should it be included
  • The library can be updated in the Magento store at the push of the save button in the backend
  • Including the module in all of your Magento projects streamlines your development as well as the deployment process

magejquery-backend_en

Installation of jQuery is really simple with MageJquery

  • Purchase and download the extension
  • Unzip and upload to your host
  • Issue modman deploy magejquery to install the extension
  • Empty Magento cache, re-compile if need be
  • Configure the extension in System > Configuration > interSales Modules > MageJquery
  • Ready to go!

With MageJquery the configuration of jQuery can be done in the Magento backend

Activation and configuration is done in the backend

To activate jQuery in the Magento store three simple steps are necessary:

  • Set Enabled to true
  • Enter the desired jQuery version
  • Press Save Config

The extension will now download and install the library for you and include it in your template.

If you wish you can have the extension also include jQuery-UI and jQuery-Mobile for you. Also you can specify a list of aliases, which helps you to avoid conflicts with other javascript libraries like prototype, which comes bundled with Magento.

I hope you enjoy our extension. Please let us know your thoughts!

Dieser Beitrag wurde unter Allgemein abgelegt am von .

Über Andrej Radonic

Andrej Radonic ist Vorstand und Mitgründer der interSales AG. Als Experte für E-Commerce berät er Kunden und konzipiert individuelle Internet-Lösungen mit Schwerpunkt Magento. Als Buchautor und IT-Journalist schreibt er regelmäßig für zahlreiche IT-Fachpublikationen.

5 Gedanken zu „How to add jQuery as extension in Magento

  1. katana sword for sale

    this is a fantastic sword. the only issue with it is the handle wrap is not the same as shown in the image (same color as all other bio hazard green weapons) its well built and would make a good collection starter for any katana lover.

    Antworten

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.