Magento: Move Paypal Express button on shopping cart

Magento: Move Paypal Express button on shopping cart

August 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: Move Paypal Express button on shopping cart

Rearranging Payment Methods in Magento

If you’re facing an issue where the PayPal Express Checkout button appears above the “Proceed to Checkout” button on your Magento shopping cart page, don’t worry—you’re not alone. This is a common layout issue that can be easily resolved with some code tweaks.

Understanding the Issue

The “sort order” of payment methods in the Magento admin doesn’t directly affect their placement on the frontend. The actual rendering of these buttons is handled by the checkout template, which follows its own logic.

Changing the Payment Method Order

To change the order of your payment methods, follow these steps:

  1. Log in to your Magento admin panel.
  2. Navigate to Stores > Configuration > Sales > Payment Methods.
  3. Expand the PayPal Express Checkout section.
  4. Change the “Sort Order” value to a number lower than 0 for Credit Card (or any other payment method you want at the bottom).
  5. Save the configuration.

However, this won’t move the PayPal button below the “Proceed to Checkout” button by default. We need to modify some templates to achieve that.

Modifying the Checkout Template

To rearrange the buttons, we’ll need to edit two files:

  1. app/design/frontend/<your_package>/<your_theme>/template/checkout/cart.phtml

Search for this line:

<div class="step-right">
    <button type="submit" name="proceed_checkout_button" id="top-cart-button-checkout" title="<?= /* @escapeNotVerified */ $block->getCheckoutLabel() ?>" class="button btn-proceed-checkout btn-checkout">
        <?= /* @escapeNotVerified */ $block->getCheckoutLabel() ?>
    </button>
</div>

Move the entire <div> section containing the PayPal Express Checkout button immediately after this line.

  1. app/design/frontend/<your_package>/<your_theme>/template/checkout/cart/items.phtml

Search for:

<?php foreach ($block->getItems() as $_item): ?>
    <tr>
        <!-- Item details here -->
    </tr>
<?php endforeach; ?>

Move the entire PayPal Express Checkout button code immediately after this foreach loop.

Conclusion

By following these steps, you should now have successfully moved your PayPal Express Checkout button below the “Proceed to Checkout” button on your Magento shopping cart. This approach ensures a clean and intuitive checkout process for your customers.

Remember, always make sure you have a backup of your files before making any modifications. If you’re not comfortable editing templates directly, consider using a template override plugin or contacting a professional developer at Laravel Company for assistance with complex customizations like this one.

Happy coding!

Checkout Themes Admin Configuration

Our network