100% Satisfaction Guaranteed. Click here to read why you should by from us.

Easy Magento Checkout Page Improvements


Here are a couple of easy improvements that you can make to your Magento store checkout page in order to eliminate a few extra clicks for customers. All it takes is 2 lines of javascript.

(1) Select "Checkout as Guest" by default



(2) Select "Ship to this Address" by default

If you notice that most customers use the same billing and shipping address, you may want to select the "Ship to this Address" option by default so that customers can skip the shipping address step.



In order to set these defaults, you need to modify the opcheckout.js file located at:

    frontend/base/default/js/opcheckout.js

(* Note, you may want to move this file to frontend/default/default/js/opcheckout.js and modify it there to avoid modifying core magento code)

Add this code to the end of the initialize function:

  1.  
  2. initialize: function(accordion, urls){
  3. ...
  4.  
  5. // Set guest checkout by default
  6. if ($('login:guest')) $('login:guest').checked=true;
  7.  
  8. // Set shipping = billing by default
  9. if ($('billing:use_for_shipping_yes')) $('billing:use_for_shipping_yes').checked=true;
  10. },
  11.  

Then refresh your browser cache and test it out.

Keep in mind that when you update Magento, the opcheckout.js file may be different in the new version, so you may have to do this change again.


See • MagentoProblems and SolutionsCode Snippits

Comments

By MageWorx
10 09 2010 at 02:08 AM

Hi,

Yes, these two radio-buttons always make me nervous smile


By Rob
23 02 2011 at 01:49 AM

So simple yet so great! Magento really do need to focus on the customer flow through the site. Less clicks and less typing is what its all about


Leave a Comment

Name:

Email: (required but not publicly shown)

URL:

Please enter the word you see in the image below.: