Pickup address doesn't show extra options

Created on 7 September 2022, about 2 years ago
Updated 22 September 2023, about 1 year ago

My checkout process works with normal functionality (customer can add items to cart, fill in an address and pay).
Then I wanted to add a pickup point. So I've followed the instructions on the Youtube tutorial (19:10). But at 19:10 when adding a shipping method, he gets the option at Customer > Pickup addres to enter extra Set up info.
I don't have the Set up info for the Customer > pickup address.

Weird thing is:
- When enabling Customer > pickup address, I do not get it.
- When enabling Customer > pickup hours, I do get it.
- When enabling it the other way around, Customer > pickup hours and then Customer > pickup address, the hours get the Set up options, but the address doesn't.
- When enabling Customer > pickup address, then enabling Customer > pickup hours, neither of the two options get the Set up options. (Unless this is the first action/restriction I do, then the hours do get Set up.., to not make it comoplicated at all.)

Of course, when saving it says there is an error, seeing that I need to enter extra data in to the set up fields.
Drupal\Core\Database\InvalidQueryException: Query condition 'profile__pickup_stores.pickup_stores_target_id IN ()' cannot be empty. in Drupal\Core\Database\Query\Condition->condition() (line 117 of .../www/core/lib/Drupal/Core/Database/Query/Condition.php).

The error log also states:
Warning: array_keys() expects parameter 1 to be array, null given in Drupal\commerce_pickup\Plugin\Commerce\Condition\PickupAddress->buildConfigurationForm() (line 77 of .../www/modules/contrib/commerce_pickup/src/Plugin/Commerce/Condition/PickupAddress.php)

If this is not an issue and I've configured something wrongly, sorry to be reporting it as a bug then, but some help would be very appreciated! Thanks in advance.
If additional information is needed, please ask.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium Neli

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024