Allow altering the order items when creating the basket

Created on 27 August 2024, 8 months ago

Problem/Motivation

It is necessary in some cases to alter the basket before sending to the communicator.
With issue issue #3386815 an alter hook was added, but this is only called after the complete basket has been built with the commerce order as context, making it difficult (without redundant code) to match data on an order item or adjustment to the correct item in the basket.

Proposed resolution

Add an additional hook or hooks to allow altering the asket order item with the commerce order item and adjustment as context.

Remaining tasks

An MR to follow.

User interface changes

None.

API changes

Above mentioned hook(s) added.

Data model changes

None.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland tcrawford

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024