Page Ranking Tool

How To Use jQuery In Magento?

By default, Magento uses the Prototype javascript library. You can also integrate the javascript library “jQuery” in your Magento store. There is some problem to integrating jQuery in Magento, you might get some javascript conflict errors as your Magento  store is using two javascript libraries one is prototype.js and another one id jQuery.js at a same time. This is caused because prototype as well as jQuery uses “$” as a function or variable name. Don’t worry about it because jQuery has a solution for such kind of conflict case.

Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery case, $ is just an alias for jQuery, so all functionality is available without using $. If we need to use another JavaScript library alongside jQuery, we can return control of $ back to the other library with a call to $.noConflict(). Old references of $ are saved during jQuery initialization; noConflict() simply restores them.

this is what jQuery Says about the Conflict Read More

Here is the steps how to use the JQuery in Magento

Step 1. Download jQuery from jquery.com
Step 2. Copy the jquery file to the following directory: skin/frontend/default/your_custom_theme/js/
Step 3. Navigate to the app/design/frontend/default/your_custom_theme/layout/page.xml and open it in the editor of your choice.
Step 4. In page.xml file, search for block with name “head” and add the following code inside it.

<action method="addItem"><type>skin_js</type><name>js/jquery.js</name></action>

Step 5. Removing conflict between two javascript libraries
Navigate to the app/design/frontend/default/your_custom_theme/template/page/head.phtml and open it in the editor of your choice
Add the following code at the end of this page

<script type="text/javascript">
jQuery.noConflict();
</script>

You have done. You can use jQuery in your Magento store without any conflict.

Comments
  1. Garcinia Cambogia Supplement

    I really like your blog.. very nice colors & theme.
    Did you design this website yourself or did you hire someone
    to do it for you? Plz reply as I’m looking to create my own blog and would like to know where u got this from. appreciate it

    • admin

      If you want to start your own blog you can choose the wordpress themes from the Magazine3. It has alot of options for the blog as well as for the ecommerce.

      Thanks

  2. Randall

    Үour own article pгoѵіdeѕ confiгmed necessary to myself.
    It’s eхtrеmelу informative аnd
    you are certainly extremely ωell-infoгmed of this typе.
    You hаve got exρosed mу рersonal eyеѕ
    for yоu tо various viеws оn this κind of mattеr togetheг with intгiguіng аnd reliable wrіtten content.

  3. Pure GCE REviews

    If you want to get much from this article then you have to apply these methods to your own weblog.

  4. Bradyquick

    I rarely comment, however i did a few searching and wound up here How To Use jQuery In Magento |
    Expertwebadvisor. And I actually do have some questions for you if it’s allright. Could it be just me or does it look as if like some of the comments come across like left by brain dead visitors? :-P And, if you are writing on additional sites, I would like to keep up with anything new you have to post. Would you make a list of all of your social pages like your twitter feed, Facebook page or linkedin profile?

  5. Heyward Perigo

    Good post. I became verifying continually this website and i am pleased! Handy facts especially the continue portion :) I personally handle such information very much. I used to be searching for this unique information for any number of years. Many thanks and regarding luck.

  6. Anonymous

    Heya i am for the primary time here. I found this board and I to find It really useful & it helped me out a lot. I hope to present one thing again and help others such as you aided me.

  7. andreas

    I have read so many content on the topic of the blogger lovers but this post is in fact a nice post,
    keep it up.

  8. Tera

    Thanks, for this piece of writing, in my view
    its in fact remarkable.

  9. Thanh Shea

    Pretty section of cοntent. I just stumbleԁ upоn уouг weblog аnd in accession сapital to asѕert thаt I аcquire іn fact enjoуеd acсount your blοg posts.

    Anyωay I will be subѕсribing to уour feeds аnd evеn
    I aсhieνement you аccess consіѕtentlу rapidly.

  10. Alsop

    Superb weblog here! Also your web site loads up quickly! What host are you making use of? Can I get your affiliate link to your host? I wish my web site loaded up as swiftly as yours…

  11. Miguelburch

    Usually I do not learn article on blogs,
    however I wish to say that this write-up very forced me to take
    a look at and do so! Your writing taste has
    been amazed me. Thanks, quite great article.

  12. admin

    Thanks for your appreciation and good comments.

  13. Aurora

    Howdy, i read your blog from time to time and i own a similar one
    and i was just curious if you get a lot of spam remarks? If so how
    do you prevent it, any plugin or anything you can advise?
    I get so much lately it’s driving me mad so any help is very much appreciated.

  14. Anonymous

    I am quite happy to go through this article .. many thanks for giving us go by way of data.Amazing nice. I value this submit….

  15. candaceteeter

    Hey There. I discovered your weblog the use of msn.

    This is a very smartly written article. I’ll be sure to bookmark it and return to learn more of your helpful information. Thanks for the post. I’ll definitely comeback.

  16. Jeramy

    Its nice discussion on the topic of this paragraph
    at this place at this website, I have read all that,
    so at this time me also commenting at this place.

  17. Hyman

    I love your blog.. very nice colors & theme. Did you make this
    website yourself or did you hire someone to do it for you?

    Plz reply as I’m looking to design my own blog and would like to know where u got this from. kudos

  18. Barbara

    I reаlly like whаt you guys are up too.
    Such cleѵer worκ and coverаge!
    Keep up the аwesome ωοrkѕ guуs I’ve included you guys to blogroll.

  19. Tanya tuggle

    I am regular reader, how are you everybody? This paragraph posted at this
    website is really nice.

  20. Michael

    Howdy I am so thrilled I found your web site, I really found you by accident, while
    I was researching on Yahoo for something else, Anyhow I am here now and
    would just like to say thank you for a remarkable post and a all
    round entertaining blog (I also love the theme/design), I
    don’t have time to read through it all at the minute but I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the great job.

  21. akshay naik

    thanks for sharing

  22. Erick

    Hi there, just became aware of your blog through
    Google, and found that it’s truly informative. I am going to watch out for brussels. I will appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!

  23. Issac

    Way cool! Some extremely valid points! I appreciate you penning this write-up
    and the rest of the website is also really good.

  24. barbara

    This is my first time go to see at here and i am truly impressed to read all at alone place.

  25. shelly

    Wonderful goods from you, man. I’ve bear in mind your stuff previous to and you’re just extremely magnificent. I really like what you have got right here, certainly like what you are stating and the best way through which you are saying it. You’re making it enjoyable and you still take care of to keep it sensible. I can not wait to read much more from you. That is really a tremendous site.

  26. Jefferey

    It is in reality a great and useful piece of information.
    I’m satisfied that you just shared this useful info with us. Please stay us informed like this. Thank you for sharing.

  27. Fernando

    This web site definitely has all the information and facts I wanted concerning this subject and didn’t know who to ask.

  28. Coralhino

    Remarkable issues here. I am very happy to see your post. Thank you a lot and I’m taking a look forward to contact you. Will you please drop me a e-mail?

  29. Celes

    If you are going for finest contents like me, simply go to see this web page every day for the reason that it provides feature contents, thanks

  30. Lanora

    If some one needs expert view regarding running a blog after that i advise him/her to pay a visit this weblog, Keep up the nice
    job.

  31. Betsey

    Way cool! Some very valid points! I appreciate you writing this post and also the rest of the site is very good.

  32. Abraham

    Quality content is the secret to be a focus for the viewers to visit the web site, that’s what this web page is providing.

  33. Cathleen

    It’s an remarkable paragraph in support of all the online users; they will get benefit from it I am sure.

  34. Kami

    I am in fact thankful to the owner of this website who has shared this great article at at
    this place.

  35. Patrick

    Wе’re a bunch of volunteers and opening a new scheme in our community. Your website offered us with useful info to work on. You have performed a formidable task and our whole group will likely be grateful to you.

  36. Fredrick

    That is a good tip especially to those new to the blogosphere.
    Brief but very precise information… Thank you for sharing this one.
    A must read post!

  37. Bridgette

    Wonderful items from you, man. I have take into accout your stuff prior to and you are simply extremely great.
    I actually like what you’ve bought here, really like what you are saying and the best way in which you assert it. You’re making it entertaining and you continue to take care of to keep it smart.
    I cant wait to read much more from you. This is really a terrific website.

  38. christa

    Thanks a lot for sharing this with all of us you actually understand what you’re speaking about! Bookmarked. Please additionally discuss with my web site =). We can have a hyperlink alternate agreement among us

  39. leandra

    Hi there, You have done a great job. I’ll definitely digg it and personally recommend to
    my friends. I’m confident they’ll be benefited from this site.

  40. camilletalbot

    You need to be a part of a contest for one of the best sites on the net.
    I most certainly will recommend this blog!

  41. Donald J. McWilliams

    Good day very cool blog!! Guy .. Beautiful .. Wonderful ..
    I will bookmark your website and take the feeds additionally?
    I am satisfied to seek out so many useful information right here in the put up,
    we need develop extra strategies on this regard,
    thanks for sharing. . . . . .

  42. dolliegarside

    Thanks for sharing your info. I really appreciate your
    efforts and I am waiting for your further post thank you
    once again.

  43. Michael S. Clark

    Thanks a lot for sharing this with all people you
    really recognize what you are speaking approximately! Bookmarked.
    Please additionally visit my web site =). We may have a hyperlink exchange contract between us

  44. cloud

    Hi there, I discovered your site by the use of
    Google while looking for a related subject, your web site came up, it seems great.
    I have bookmarked it in my google bookmarks.

    Hi there, simply become aware of your blog via Google, and located that it’s truly informative.
    I am gonna be careful for brussels. I’ll appreciate if you happen to proceed this in future.
    A lot of people will likely be benefited from your writing.
    Cheers!

  45. Tracy L. Faller

    I got this web site from my friend who told me about
    this site and now this time I am visiting this
    website and reading very informative posts at this time.

  46. Ernatran

    Thanks for your marvelous posting! I seriously enjoyed reading it, you will
    be a great author.I will make sure to bookmark your blog and definitely will come back sometime soon.
    I want to encourage yourself to continue your great posts, have a nice afternoon!

  47. Aide Almanzar

    I’m not that much of a online reader to be honest but your blogs really nice, keep it up!

    I’ll go ahead and bookmark your website to come back later.
    Many thanks

  48. wordpress hosting

    I’d like to thank you for the efforts you’ve put in writing this
    blog. I’m hoping to see the same high-grade blog posts
    by you later on as well. In fact, your creative writing abilities has motivated me to get my own, personal website now ;)

  49. cloud hosting

    Hey I am so excited I found your weblog, I really found you by mistake, while I was looking on Google for something
    else, Anyhow I am here now and would just like
    to say many thanks for a remarkable post and a all round entertaining blog (I also love the theme/design), I don’t have
    time to read it all at the minute but I have saved it and also
    added in your RSS feeds, so when I have time I will be
    back to read much more, Please do keep up the awesome work.

  50. Niklas

    I could not refrain from commenting. Perfectly written!

  51. steve

    Thanks very interesting blog!

  52. elizbethsheldon

    I eel that is one of the so much vital info for me. And
    i’m glad studying your article. However want to remark on some normal things, The site style
    is wonderful, the articles is actually great : D.
    Just right job, cheers

  53. Tracy J. Hall

    I was wondering if you ever thought of changing the structure of your blog?
    Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or two images.
    Maybe you could space it out better?

  54. evonneneal

    Iloved as muсh as yοu will receive carried out right here.
    The sketch is attractive, your authored subject matter ѕtylish.
    nonetheless, you commandd get got an edginess over that you wieh be delivering the following.
    unwell unquestіonably come more formerly again as exactly the same nearly a lot ofrten insidеe case you shield this increaѕe.

  55. Mawson

    You’ve made some really good points there. I looked on the web for more information about the issue and found most people will go along with your views on this web site.

  56. Donald V. Phillips

    I think the admin of this web site is truly working hard for his website, because here every stuff is quality
    based material.

  57. tomas

    hello!,I really like your writing very a lot! percentage we keep
    up a correspondence more approximately your article on AOL?
    I need a specialist in this house to unravel my problem.
    May be that’s you! Having a look forward to peer you.

  58. Robert V. Prather

    After looking over a handful of the blog articles on your website, I truly like
    your technique of writing a blog. I bookmarked it to my bookmark site list and will be checking
    back in the near future. Please visit my website too and tell me
    what you think.

  59. Eva E. Yang

    Your style is really unique in comparison to other folks I’ve read stuff from.
    Thanks for posting when you’ve got the opportunity, Guess I will just bookmark this site.

  60. Dora

    Right away I am going to do my breakfast, later than having my breakfast coming over
    again to read other news.

  61. aracely

    Hi therе, I wish foг to ѕubѕcribe for this
    blog to obtain ոewest updates, thus where can i do it please help.

  62. Michael A. Yang

    I like the helpful info you provide in your articles.

    I will bookmark your weblog and check again here frequently.
    I am quite certain I’ll learn many new stuff right here! Best
    of luck for the next!

  63. Rodney

    I enjoy reading a post that will make men and women think. Also, thank
    you for allowing for me to comment!

  64. Rena

    Great post. I was checking constantly this blog and I’m impressed!
    Very useful information specifically the last phase :
    ) I take care of such information much. I was looking for
    this particular information for a very lengthy time.

    Thank you and best of luck.

  65. Tracy D. Yang

    I must thank you for the efforts you have put in penning this
    blog. I’m hoping to see the same high-grade content from
    you later on as well. In truth, your creative writing abilities has motivated me to get my own website now ;)

  66. Magaret

    Oh my goodness! Awesome article dude! Thanks, However I am having issues
    with your RSS. I don’t understand the reason why
    I cannot join it. Is there anybody else getting identical RSS problems?
    Anybody who knows the solution can you kindly respond?
    Thanx!!

  67. Zane

    Hello There. I discovered your blog using msn. That is a very neatly
    written article. I’ll be sure to bookmark it and come back
    to read extra of your helpful info. Thank you for the post.

    I will definitely comeback.

  68. Anke

    Excellent article. Keep posting such kind of information on your blog.
    Im really impressed by your site.
    Hello there, You’ve done a fantastic job. I’ll definitely digg it and for
    my part suggest to my friends. I’m sure they’ll be benefited from
    this web site.

  69. Cora U. Harrell

    I feel that is one of the so much vital information for me.
    And i am glad studying your article. However wanna commentary on few general
    things, The site style is perfect, the articles is actually
    great : D. Excellent process, cheers

  70. Michael U. Harrell

    Thanks very nice blog!

  71. Agatha Z. Clark

    Quality articles is the key to attract the people to go to see the website, that’s what this web
    page is providing.

  72. Agatha U. Phillips

    We are a group of volunteers and starting a new scheme in our community.

    Your site provided us with valuable information to work on.
    You have done an impressive job and our whole community will be
    grateful to you.

  73. Michael V. Hines

    Hi there, always i used to check blog posts here in the early hours
    in the break of day, because i like to find out more and more.

  74. Berniece

    Useful info. Lucky me I discovered your website by accident,
    and I am surprised why this twist of fate
    didn’t happened in advance! I bookmarked it.

  75. Robert U. Faller

    Excellent site you have here but I was curious
    if you knew of any user discussion forums that cover the same topics discussed in this article?
    I’d really love to be a part of community where I can get opinions
    from other knowledgeable people that share the same interest.
    If you have any suggestions, please let me know.
    Thanks!

  76. Agatha R. Prather

    Hi! I’ve been reading your blog for a long time now and finally got the bravery to
    go ahead and give you a shout out from Humble Tx! Just wanted to mention keep up the fantastic job!

  77. Evely

    Hurrah, that’s what I was searching for,what a stuff!
    existing here at this web site, thanks admin of this web site.

  78. Kelsey

    Thanks very nice blog!

  79. Michael G. Harrell

    Good answers in return of this query with
    solid arguments and explaining all regarding that.

  80. Robert L. Prather

    If some one wants expert view concerning blogging and site-building after that i propose
    him/her to pay a visit this webpage, Keep up the nice work.

  81. Juliet

    Does your website have a contact page? I’m having problems locating it but, I’d like to shoot you an email.
    I’ve got some creative ideas for your blog you might be
    interested in hearing. Either way, great website and I look forward to
    seeing it develop over time.

  82. Isabelllauer

    You actually make it seem so easy with your presentation but I find this matter to be actually
    something which I think I would never understand.

    It seems too complex and very broad for me. I’m looking
    forward for your next post, I’ll try to get the hang of it!

  83. Cecill

    It’s going to be end of mine day, but before end I
    am reading this enormous article to improve my knowledge.

  84. Harold B. McWilliams

    I’m really impressed with your writing skills and also with
    the layout on your blog. Is this a paid theme or did you modify it yourself?

    Either way keep up the nice quality writing, it is rare to see a great blog
    like this one nowadays.

  85. Frankdel

    Hi there, after reading this remarkable post i am as well delighted to share my experience here with
    friends.

ADD YOUR COMMENT

*