Home > Magento, Magento Tutorials > Magento Tutorial – Payment Icons on Checkout

Magento Tutorial – Payment Icons on Checkout

Posted on: 17th Sep 2009 By: Adam Moss 3 Comments

Making an e-commerce website as usable as possible is a major factor in its success. If a customer finds it difficult or frustrating to checkout then they’ll give up and go elsewhere. Therefore every little bit of detail that can help with this process of ecommerce web design. When a customer suggested having the logos appear next to the various payment options, it was a great idea that can very easily be implemented into all stores.

Payment icons

To do this you need to start by creating 3 images, and saving them in the same folder. The name of the images need to be exactly the same as the value in the input box, so it might be ‘paypal_standard’ or ‘paypal_direct’ etc. You can check this by viewing the source on the checkout page. My images were therefore called paypal_standard.gif etc. The name of the payment methods is called with this code: <?php echo $_code ?>. So to add the code, go to:

template/checkout/onepage/payment/methods.phtml

Just after this code:

<label for=”p_method_<?php echo $_code ?>”><?php echo $_method->getTitle() ?></label>

Add this code (except replace yourdomain with…. your domain:

&nbsp;&nbsp;<img alt=”<?php echo $_method->getTitle() ?>” src=”//www.yourdomain.co.uk/images/<?php echo $_code ?>.jpg” />

3 Responses to “ Magento Tutorial – Payment Icons on Checkout ”

  1. benb
    #1 | 13th October 2009

    great tip .. thanks!!

  2. John | Magento Developer
    #2 | 17th February 2010

    Thanks for sharing this tutorial for Magento. Visa and Paypal icons would really give it a better look.

  3. About Magento
    #3 | 13th December 2010

    “Nice post thanks for sharing this.”

Post A Comment

Your comments:
Enclose code snippets within the appropriate tags: [php][/php]   [js][/js]   [xml][/xml]   [css][/css]   [html][/html]
E.g: [php]<?php echo "hello world"; ?>[/php]

Search Blog

Archives

For the record...

Views & opinions in this blog are those of the individual and do not necessarily reflect those of E-commerce Web Design or the Creare Group.