Magento jQuery / Prototype Issues in 1.9 After upgrade -
after doing upgrade 1.3 ( , moving theme , couple of extensions - reasonably clean install) , having lot of jquery issues , prototype issues. example home page: class not defined , ajax not defined.
i'm not sure start looking looks lot of errors although can few things ok on site not many ajax type functions.
even js/varien/js.js file says $ not function.
help :-)
this looks jquery , or prototype lib missing or conflicting on install.
in theme, have make sur 3 lines appear in first in block of name head under node <default>
on file app/design/frontend/your_package/your_theme/layout/page.xml
, in exact order.
<action method="addjs"><script>prototype/prototype.js</script></action> <action method="addjs"><script>lib/jquery/jquery-1.10.2.min.js</script></action> <action method="addjs"><script>lib/jquery/noconflict.js</script></action>
for information fresh installed page.xml
stripped lines like
<?xml version="1.0"?> <layout version="0.1.0"> <default translate="label" module="page"> <label>all pages</label> <block type="page/html" name="root" output="tohtml" template="page/3columns.phtml"> <block type="page/html_head" name="head" as="head"> <action method="addjs"><script>prototype/prototype.js</script></action> <action method="addjs"><script>lib/jquery/jquery-1.10.2.min.js</script></action> <action method="addjs"><script>lib/jquery/noconflict.js</script></action> </block> </block> </default> </layout>
and have check 3 files exists on server
js/prototype/prototype.js js/lib/jquery/jquery-1.10.2.min.js js/lib/jquery/noconflict.js
if not, them fresh copy of magento.
Comments
Post a Comment