1

I followed the instructions as per http://www.fontis.com.au/blog/magento/using-jquery-magento . So to include jquery.js file i have downloaded it and placed at skin/frontend/enterprise/yummjunkie/js/jquery/js. And in page.xml All Pages

        <block type="page/html_head" name="head" as="head">
            <action method="addItem"><type>skin_js</type><name>js/jquery.js</name></action>

So when i checked at checout/onepage/ page source it does not include jquery.js file.

As checkout/onepage is 2 columns right template i have placed

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

in checkout.xml at <checkout_onepage_index>

So please help me on how to add jquery.js file

5
  • do you get any 404 load error in your browser console, looking for the declared file? if yes, then check the filename or permissions; if no then try clearing all your caches
    – Alex Dinca
    Jun 12, 2014 at 8:09
  • try clearing cache and check.delete var/cache folder. Jun 12, 2014 at 8:11
  • @prasad solved your problem ? Jun 12, 2014 at 8:17
  • i have used flush cache storage and flush magento cache, but no use!!! Jun 12, 2014 at 9:17
  • use my code give below Jun 12, 2014 at 11:23

1 Answer 1

3

You can add the following code in your theme's local.xml file.and upload your jquery.js file into the js folder and in that upload in jquery folder.

<layout>
    <checkout_onepage_index>
        <reference name="head">
            <action method="addJs"><script>jquery/jquery.js</script></action>
        </reference>
    </checkout_onepage_index>
</layout>
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.