If you are thinking of adding a confirmation of e-mail address to the front-end registration pages of your store e.g the Checkout billing page or the customer account registration, the little snippets below could be of use to you For the Checkout billing page 1. Locate the magento checkout billing page (billing.phtml) which can be [...]
Archive: javascript
Posts Tagged ‘javascript’
Often you will see SSL warnings or errors related to insecure content being displayed on a secure page. This could be as simple as one javascript file or image that is being included via http rather than https, though some times this can be a bit tricky to track down. The easiest solution is to [...]
If you are writing any javascript in magento and try to debug using console.log, you may find that nothing happens in Chrome, but everything works as expected in Firefox. The reason for this is that varien have included a blank console object to prevent any calls to the console throwing an error if a console [...]
If you are using jQuery and attaching click handlers etc to elements as part of your document ready block, you may find you are losing those handlers if you update the page with Javascript after load. For example if you have some kind of slide show which involves redrawing the contents of a div, you [...]
I've just spent to long trying to fix an infuriating problem with a simple fix. If you create a new theme from scratch and suddenly realise that none of your magento javascript is working, it could be because you've included jQuery and forgotten to include the noConflict argument. If you have included jQuery, then make [...]
Magento redesign with added functionality This project asked for new functionality to be added to an existing magento site, whilst modifying the design. The changes included modifying the layered navigation, the home page slide show and the layout of the category page. An SEO report was also produced for the site Bent Shop The Bent [...]
If you are struggling to debug why some ajax, perhaps using jquery etc is working fine when you access the page via http, but if you use https then it fails silently with very little error messaging to work on then this could be your solution. Basically, although you have accessed the page over HTTPS, [...]
If you are scratching your head trying to figure out where in your Javascript the mysterious doIt error is coming from when testing using Chrome, this might just save you.. After loads of digging around it turns out that the error is actually caused by the Chrome SEO extension I had installed. Disable that and [...]
If you upgrade to Magento version 1.4 and find that your admin totally stops working then this might be for you. If you view source and notice that your javascript paths are totally wrong then it could be that Merge JavaScript Files is causing it. The answer is: go to System -> Configuration -> Developer [...]
If you need to work collaboratively on some Javascript then check out JS Bin It's just like pastebin, but with Javascript compatability, handy. More Reading:Adding Confirm E-mail Address Field to Magento Frontend FormsGot the Insecure Content on a Secure HTTPs Page Problem – Easy SolutionConsole Log not working in Magento + solutionPHP SimpleXML CData not [...]