Error: Cannot Save with "order contain..."

Created on 3 April 2024, 8 months ago
Updated 12 June 2024, 5 months ago

Problem/Motivation

Business flow: when an order is paid, if the order contains a product of 1 (pid=1) or a certain product type, assign a specific role to the buyer. ECA commerce seems unable to capture field data in condition.

Steps to reproduce

The ECA mode:
1. trigger:ORDER: PAID
2. condition: COMMERCE: ORDER CONTAINS PRODUCT TYPES;
Product Type field: members (the machine name of the product type)
entity: commerce_order
3. action after the condition has nothing yet.
4. When saving the code so far, the errors:

Commerce: Order contains product types" (Flow_11h2l4e): Product types field is required.

I then switched the action to: COMMERCE: ORDER CONTAINS SPECIFIC PRODUCTS
1. products field: 1(the product number of the specific one)
2. Entity: commerce_order
3. save, Errors:

"Commerce: Order contains specific products" (Flow_11h2l4e): There are no products matching "1"

Not sure whether the ECA commerce order contain function cannot capture the data in field, or I simply put wrong data?

I tried starting new test ECA and entity with "commerce_order_item", no work.

Please advice. Thank you very much!

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

2.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