Custom order item title is overwritten when adding to cart.

Created on 21 October 2018, about 6 years ago
Updated 17 May 2024, 7 months ago

Order item title is being set two times when adding the product to cart.
One from OrderItemStorage::createFromPurchasableEntity and one from AddToCartForm::buildEntity.

Now if for example we want to alter OrderItem->title using the create (or maybe more suitable fields_init_values event), the value is being overwriten from the AddToCartForm::buildEntity set.

So I believe that the second set should go away...

🐛 Bug report
Status

Fixed

Version

2.0

Component

Line item

Created by

🇬🇷Greece petros

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024