update quantity

Created on 24 February 2020, almost 5 years ago
Updated 11 September 2023, about 1 year ago

Hi

Is it possible to use the same quantity as the parent product with the 8 version? I saw an issue where this is solved but this is for the D7 version. When I add 4 products and select the add-on, there are 4 products and only 1 add-on added to my cart.

thx

Kris

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium blueblot

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.

  • 🇩🇪Germany andih

    The cartManager's 'createOrderItem'-function was originally called with no quantity value assigned. Which means the
    default-value of 1 got applied. (\Drupal\commerce\modules\cart\src\CartManagerInterface)
    The patch changes the call of the 'createOrderItem'-function so that the quantity-value of the 'main-variation' is used.

  • 🇩🇪Germany andih

    Sorry. Now its right.

Production build 0.71.5 2024