Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal HowTos
  • Drupal Tutorials
  • Drupal Modules
  • Drupal Themes
  • twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • Modules
  • 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
11

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
11
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

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

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • twitter
  • youtube

Drupal Services

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

Drupal Insights

  • Drupal Tips & Tricks
  • Drupal HowTos
  • Drupal Tutorials
  • Drupal Modules
  • Drupal Themes

Drupal Blog

  • Configuration
  • Content
  • Installation
  • Menus
  • Modules
  • Optimisation
  • Taxonomy
  • Themes
  • Troubleshooting
  • Views

Drupal 4U

  • Services
  • Blog
  • About

Drupal Links

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

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • Modules
  • About
  • Contact
Clear keys input element