Often times when moving a webform between environments, we need to re-assign the product associated with a commerce-webform-order handler.

However, if the product doesn't exist in the target environment, commerce_webform_order chokes and there's no way to use the UI to edit settings, nor any useful error messages in logs.

Instead, commerce_webform_order should not assume that its settings are valid for the current environment, since they're based on content which cannot be included in config dependencies.

CommentFileSizeAuthor
#8 Zight 2025-05-20 at 2.53.42 AM.jpg446.52 KBdishvola
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

aaronbauman created an issue. See original summary.

aaronbauman’s picture

Version: 3.0.1 » 3.x-dev
Status: Active » Needs review

facine made their first commit to this issue’s fork.

  • facine committed 9108c37c on 3.x authored by aaronbauman
    Fixes Issue #3500588 by aaronbauman: Fatal error if referenced product...
facine’s picture

Status: Needs review » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

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

dishvola’s picture

StatusFileSize
new446.52 KB

No no no guys! This change are broken the logic!!!
I can't to set product variation with autocomplete field because I get the textfield all times.
I can't to get webform_select_other options field now.
So in my case (in previous version) I need to choose "Purchasable entity type" as Product variation (commerce_product_variation), then the system should load and show me "Purchasable entity" field with form elements, then I set it as "Reference one…" and should see autocomplete field to set my product type variation, but I can't do it now, it is not works (((

We need to fix it another way...

Settings screen

pcambra’s picture

No no no guys! This change are broken the logic!!!

Please open a new issue calmly for the maintainers to review :)

dishvola’s picture