0

I created a group product which has two simple products.

I did not upload an image to the simple product, only to the grouped product.

enter image description here

If I add a simple product into the card, then no images loads:

cart

How can I make it load the image of the group product, if it does not have an image itself?

1

Go to Admin->Store->Configuration->Sales->Checkout->Shopping Cart

And set the Parent Product Thumbnail as Grouped Product Image

Check the below screenshot

enter image description here

Clear the cache and check.

| improve this answer | |
-1

Magento2 doen't support it by default, you have to do customization for this ,

You can create 1 custom column in quote_item table where you can save group product id for the item so when you add product from group product detail page so you have to insert its group id as well. then on item list page you can check if it has group product id then you can fetch group product image and display it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.