Make order validation more flexibile

Created on 24 September 2024, 2 months ago

Problem/Motivation

Currently we perform order items validation by mapping and FBA stock during order creation.

We need to make it more flexible to allow more interactions depending on multiple cases

Steps to reproduce

Proposed resolution

a.) Move order items loop from \Drupal\commerce_amazon_sp_api\Amazon\FulfillmentOrder::createOrder to new function \Drupal\commerce_amazon_sp_api\Amazon\FulfillmentOrder::validateOrderEligibility

b.) Add event subscriber where someone can perform validation before running default one.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇭🇷Croatia valic Osijek

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

Comments & Activities

Production build 0.71.5 2024