Product not associated when creating variation with IEF

Created on 1 January 2024, 11 months ago
Updated 5 January 2024, 11 months ago

I want to create my product variations when creating an order.
So I activated the IEF widget on the “Purchased Entity” field of my “Order Item Type” form.
When creating my order item, I select my product from the drop-down list, then "Create new variation".
Everything is going well but when I go back to look at my product, the variation is absent.
I created the same view of the products but for the variations and if I want to access it the site crashes with the PHP error message: "Symfony\Component\Routing\Exception\RouteNotFoundException: in Drupal\commerce_product\Entity\ProductVariation- >toUrl() (line 118 of /web/modules/contrib/commerce/modules/product/src/Entity/ProductVariation.php)".
If I look at the database, I find my variation but with column "product-id" with the value "NULL".
To repair access to the view, I need to delete this row in the database.
Thanks for your support.

🐛 Bug report
Status

Active

Version

2.37

Component

Order

Created by

🇫🇷France Smith76

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

Comments & Activities

  • Issue created by @Smith76
  • 🇫🇷France Smith76

    Hi,
    No one can help me.
    Is it me who is configuring incorrectly ?

  • 🇮🇱Israel jsacksick

    Hi, that is because I don't think anyone is actually using IEF this way. Creating products on the fly for orders is not a usecase I previously heard of... And that is maybe an IEF bug.

  • 🇫🇷France Smith76

    I understand that the use case is particular.
    My idea is to create a site with commerce to allow a repair shop to place orders and invoicing.
    This is why I want to be able to create articles on the fly.

Production build 0.71.5 2024