Add ability to apply custom logic for order item cloning and availability checking.

Created on 14 April 2023, over 1 year ago

Problem/Motivation

We are using the stock module, and we want to be able to restrict adding of some products to the cart. We can just override the controller and copy-paste everything, but I don't like it.

Another thing is that we are using commerce_vado module. It adds a lot of complexity. It extensively uses data field in order_items. Hence we need to somehow clean up the order item cloning. It could be done in ORDER_CLONED, but as for me, it should be triggered only once and not in the loop.

Proposed resolution

Add two more events to be able to react on order item cloning and order item availability check.

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine dinazaur

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

Comments & Activities

Production build 0.71.5 2024