Removing paypal express checkout radio button from checkout page

Removing paypal express checkout radio button from checkout page

September 24, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Removing paypal express checkout radio button from checkout page

Removing PayPal Express Checkout Radio Button from Magento One Page Checkout

As an e-commerce developer, I often face requests like this one - to remove specific payment methods or buttons from the checkout process without affecting other parts of the storefront. In this case, we want to remove only the PayPal Express Checkout radio button from the Payment Information step of the one page checkout in Magento.

The first instinct might be to modify the XML layout files as suggested in the provided code snippet. However, this approach doesn’t work because it only removes the payment method from the cart index page and not from the specific checkout step we’re targeting.

To achieve this, we need to dive into the template files and modify them directly. Here’s a step-by-step guide:

  1. Open your Magento theme directory: app/design/frontend/<your Theme>/<theme_variant>/template/paypal/express

  2. Locate and open the file named shortcut.phtml. This is where the PayPal Express Checkout button is rendered.

  3. Inside this template, you’ll find a section that renders the radio button for the payment method. It should look something like this:

<dl id="paypal-express-checkout" class="<?php echo $block->getBlockClass(); ?>">
    <dt><input type="radio" name="payment[method]" value="<?php echo $block->getMethodCode(); ?>" id="paypal_express_checkout_<?php echo $block->getMethodCode(); ?>" <?php if ($block->getIsSelected()): ?>checked="checked"<?php endif; ?> class="radio" /></dt>
    <dd><label for="paypal_express_checkout_<?php echo $block->getMethodCode(); ?>"><?php echo $this->escapeHtml($block->getCheckoutBlock()->getTitle()); ?></label></dd>
</dl>
  1. Add the following condition to prevent this code from rendering on the checkout page:
<?php if ($this->getTemplateFilename() != 'checkout/onepage/billing.phtml'): ?>
    <!-- The existing PayPal Express Checkout button here -->
<?php endif; ?>

This condition checks whether the current template being rendered is not the billing.phtml file used for the Payment Information step of one page checkout. If it’s not, then the PayPal Express Checkout radio button will be displayed as usual.

  1. Save the changes and clear your Magento cache if you have any: php bin/magento cache:clean

This should successfully remove the PayPal Express Checkout radio button from only the Payment Information step of one page checkout without affecting other parts of the storefront.

Remember, direct template modification is generally discouraged in favor of layout updates or custom modules. However, for small changes like this, modifying templates can be a quick and effective solution.

If you’re looking to learn more about implementing payment methods securely and efficiently in your Magento store, I recommend checking out our guide on Setting Up PayPal Express Checkout for a comprehensive walkthrough of the process.

Checkout Indexing Themes

Our network