In the payment method section I have three options and are in the following order..
1.checkout with credit card
2.Payment with amazon
3.Pay with paypal
And this method is getting rendered by the following code..

<div class="cart">
<?php if(!$this->hasError()): ?>
    <ul class="checkout-types contpdng pdngbtm0">
    <?php foreach ($this->getMethods('methods') as $method): ?>
        <?php $methodHtml = $this->getMethodHtml($method); ?>
        <?php if ($methodHtml): ?>
        <li><?php echo $methodHtml; ?></li>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

But I want to reorder it like :

  1. Pay with paypal
  2. Payment with amazon
  3. Checkout with credit card
    Could any one suggest how to reorder the payment method in the front end ?
  • I can't find the configuration field Sort Order for Crefo Payment. Where can i add this? layout.xml?? how?
    – Amin
    Nov 21, 2019 at 14:30

2 Answers 2


Magento already has this feature.

For every payment method, there is a configuration field name Sort Order by which you can manage this sort order.

  • Can it be possible through layout xml file ? Feb 29, 2016 at 9:52
  • 2
    @KishorePatra No. But you can configure it per store view. Mar 2, 2016 at 15:27
  • Are there same option in magento 2
    – Lasantha
    May 4, 2018 at 12:10
  • Yes,it have....
    – Amit Bera
    May 4, 2018 at 13:11

Check on your xml file for this particular payment method, in my case I was entering an order position but it was ignored by the system. added after='-' or before='' on the line that inserts the .phtml file used and it worked for the modified payment methods. hope this helps you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.