MP state machine condition check

Posts: 59 🧑🏻‍🚀 - Cadet

Hello Spryker Community,

I am working on adding a condition in the Merchant Portal state machine. I created a custom condition, and it is working. However, inside my check method, I am not getting the relevant data in the parameters related to the order. Specifically, I need the order_item_id to retrieve order details and perform the required logic.

Upon debugging, I noticed that the condition is being called through:

$conditionPlugin->check($stateMachineItemTransfer);

The StateMachineItemTransfer being passed does not contain any order-related data that I can use to fetch the necessary details.

Has anyone encountered this issue before or found a way to include additional order-related data in the StateMachineItemTransfer? Any insights or solutions would be greatly appreciated.

Thanks in advance!

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.