Undefined array key "pickup_profile"

Created on 27 August 2025, about 2 months ago

Drupal: 11.2.2
Commerce: 3.1.0
Commerce shipping pickup api: 1.0.2

Problem/Motivation

When I use a pickup shipping method what do not need to enter customer address i get the following error message:

Undefined array key "pickup_profile" in Drupal\commerce_shipping_pickup_api\Plugin\Commerce\CheckoutPane\PickupCapableShippingInformation->submitPaneForm() (line 409 of modules/contrib/commerce_shipping_pickup_api/src/Plugin/Commerce/CheckoutPane/PickupCapableShippingInformation.php).

Proposed resolution

line: $profile_name = $pane_form['pickup_profile'] ? 'pickup_profile' : 'shipping_profile';
change to: $profile_name = isset($pane_form['pickup_profile']) ? 'pickup_profile' : 'shipping_profile';

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024