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:

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
<?php foreach ($this->getMethods() as $_method): $_code = $_method->getCode() ?>
Add Below:
    <?php if($_code=="purchaseorder"){ continue; } ?>
comments powered by Disqus


Tags: Core CE 1.6

Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on 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: 4135
Date Added: 2012-01-24 06:15:11
Last Modified: 0000-00-00 00:00:00

Web Analytics