Magento Core: Remove payment methods from frontend

Send Snippet To: Save this snippet to Code Collector Pro -- view all tamburra's snippets
language: Other
license: Other

Code for Snippet:

                
---------------
Notes:
---------------
 
http://www.magentocommerce.com/boards/viewthread/68490/#t301609
You need to find the payment method code name to put into the array to be able to disable.
Purchase Order: purchaseorder
Check/Money Order: checkmo
PayPal Express: paypal_express
 
 
---------------
Open:
---------------
 
/app/design/frontend/base/default/template/checkout/onepage/payment/methods.phtml
 
 
---------------
Find:
---------------
 
<?php foreach ($this->getMethods() as $_method): $_code = $_method->getCode() ?>
 
 
---------------
Add Below:
---------------
 
    <?php if($_code=="purchaseorder"){ continue; } ?>
comments powered by Disqus

Info

Tags: Core CE 1.6

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 3596
Date Added: 2012-01-24 06:15:11
Last Modified: 0000-00-00 00:00:00

Web Analytics