Problem/Motivation

I need to hide the shipping information checkout pane on my project when purchasing non physical products.
When doing that in a form_alter hook, you also need to wipe the profile that has been previously stored in the form state array by the checkout pane callback.
Currently, this will lead to an error because the checkout pane validate/submit callbacks will try to save the profile, without checking if it's still there.

Proposed resolution

Skip validation/submit when the profile can't be found in the $form_state array.

Remaining tasks

TBD.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Status: Active » Fixed
StatusFileSize
new1.21 KB

  • jsacksick committed ce1652d on 7.x-3.x
    Issue #2793523: Skip validation/submit when unnecessary.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.