Skip to main content
  • X Twitter
  • youtube
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • Home
  • Showcases
  • Services
  • Blog
  • About
  • Contact

Breadcrumb

  1. Home
  2. Tutorials
  3. Drupal Commerce: How to disable or unlock Off-site payment redirect? How to eliminate checkout page "Payment"?

Drupal Commerce: How to disable or unlock Off-site payment redirect? How to eliminate checkout page "Payment"?

Tutorials
December 01, 2016
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
41

I am using Drupal Commerce and since we have offline payments after checkout I would like to disable the extra step "Payment" in the checkout process which is reserved for "Off-site payment redirect". You might argue that this is not needed, because this step is eliminated when having no payment methods. That's true, but it is still displayed as a step in modules such as "Commerce Checkout Progress" and as such showing a step to the end-user which dies in fact does not exist.

I did not find a way to disable this directly in the UI at Checkout settings (admin/commerce/config/checkout) because this checkout pane seems to be locked.

So I digged in code and found line 309 to 315 in commerce_payment.module (\modules\contrib\commerce\modules\payment\commerce_payment.module).

$checkout_panes['commerce_payment_redirect'] = array(
'title' => t('Off-site payment redirect'),
'page' => 'payment',
'locked' => TRUE,
'file' => 'includes/commerce_payment.checkout_pane.inc',
'base' => 'commerce_payment_redirect_pane',
);

If I completely remove these lines the payment step is gone. If I set the locked value to "FALSE" I can disable the pane at Checkout settings. Then the step is eliminated from "Commerce Checkout Progress" and as such shown correctly to the end-user.

Drupal Commerce: How to disable or unlock Off-site payment redirect? How to eliminate checkout page "Payment"?
Commerce

Read more articles

Newer
Learnings 4 Drupal Developers: WHIPLASH-How to Survive Our Faster Future
Older
Drupal Commerce: How to add fixed and percentage fees based on the payment method
  • Log in to post comments
Profile picture for user drupal
drupal
41
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Us

Get in touch for questions and our Drupal development, design and optimization services.

Contact Us

We aim to reply the latest within 48h.

Drupal 4U: Built for AI. Powered by Drupal.

We are a group of Drupal designers, developers and webmasters. We are Drupal experts! We provide comprehensive services that go beyond traditional web development, focusing on how AI understands, interprets, and cites your content. With our deep expertise in Drupal's architecture, we build the intelligent core of your digital presence, ensuring your brand remains authoritative and visible in a world where AI is the primary gatekeeper of information. Partner with us and let's future-proof your digital strategy together.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal GEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • Gaivas Themes Drupal 11
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • Home
  • Showcases
  • Services
  • Blog
  • About
  • Contact
Clear keys input element