[Bug][Nop 3.7] Require other products added to the cart

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
When you have two products that share an item in the "Require other products added to cart" field. Only one unit of that shared item is added to the checkout.

Whereas, it should have the quantity count increased each time that product ID is added to the cart.
8 years ago
Could you please provide a complete list of steps to reproduce the issue?
8 years ago
a.m. wrote:
Could you please provide a complete list of steps to reproduce the issue?


Create three test products.

"Require other products added to the cart:" checked.

"Required product IDs:" enter/search for the product.

"Automatically add these products to the cart:" checked.

Now when you go to purchase the two 'primary products', it should (as of a clean Nop 3.7) add the two 'primary products' will be added BUT only one unit of the 'included product' will be added to the shopping cart.


((I tried to set this up on the Nopcommerce demo store, but it appears the admin and public side are not shared. -- The $100 physical gift card didn't add Photoshop CS4 to the cart.))

I can also confirm this issue presents itself if you buy multiple quantities. So, say I was going to buy two of those $100 physical gifts because each one comes with Photoshop CS4; I would only get one CS4 and two $100 gift cards.

(((Though, realistically it'd be the other way around. For each copy of Photoshop you buy you'll get a gift card. Well, in the current state you'd only get one gift card.)))

Now you could use the Product Attributes, but what if you're just doing a temp promo. -- Honestly, I can't think of a reason to even have that option if 'Bundles' are suppose to be handled with the Product Attributes. But, since it's there it should handle quantities appropriately.
8 years ago
I see now. But it's not the bug. It's by design. Required product is in the cart. It should not synchronize quantity.

You'll have to customize the solution to support it. In the meantime I've created a work item (make it configurable)
8 years ago
Hi. We are using version 3.7.

Scenario: The user has added a product with "Require other products added to the cart" . The required product (qty 1) is correctly added to the shopping cart regardless of the quantity of the main product.

Bug # 1:
The cart contents page displays the "Remove" check box for the required item which if the user checks will remove the required product from the cart. The page then reports (in red) that a required item has to be added. The required item should not be allowed to be removed from the cart contents by the customer if there is at least qty 1 of the main product in the cart. This should be the correct and intuitive behavior.

Bug # 2:
If the customer changes his mind and removes the main product from the cart the required product is still displayed in cart contents. Correct behavior is the required product be also removed from the cart when the customer has removed the main product (0 qty) from the cart.
8 years ago
Thanks. Please find this work items here and here
7 years ago
pg7225 wrote:
Bug # 1:
The cart contents page displays the "Remove" check box for the required item which if the user checks will remove the required product from the cart. The page then reports (in red) that a required item has to be added. The required item should not be allowed to be removed from the cart contents by the customer if there is at least qty 1 of the main product in the cart. This should be the correct and intuitive behavior.

Fixed. Please see this commit. Thanks!
6 years ago
I am using the giftcard functionality if i have added multiple quantity while purchasing the gift cards then how it will work and manage.
6 years ago
I am using 3.9 and I actually have a need for required product to synchronize quantity with the primary product. How can I do that ?

I do not agree that the orginal post was a bug but should have been addressed as a new funtion of the feature.

Thanks in advance for your help with this matter.
6 years ago
a.m. wrote:
I see now. But it's not the bug. It's by design. Required product is in the cart. It should not synchronize quantity.

You'll have to customize the solution to support it. In the meantime I've created a work item (make it configurable)


Is there a workaround for this? We are in this boat too because we have core charges for auto parts added as a required product.

Unfortunately, parts such as fuel injectors are sold singally but if they buy more than one at a time then there is still only one core charge.

Any help would be appreciated!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.