3

I have simple products that are part of a grouped product, however, when you click on the simple product in the search it does not take the user to the associated parent grouped product - it goes to the simple product page. I need this to redirect to the parent grouped product page as this site will only have one 'child' simple product to one 'parent' grouped product.

How can I accomplish this?

An example is at the following URL: https://wilberline.com/jacketed-batch-reactors-single-dual-glass.html

If you search for the SKU number JRS10 it will show the simple product. When you click on that simple product it should redirect to the grouped product.

  • Set visibility of simple products as not visible individually, then simple products will not be included in your search. – Sukumar Gorai Aug 10 '18 at 18:04
  • That will not work because then if someone searches for the sku of that simple product they will not find it. The simple products need to remain searchable, but redirect to the group product. – Will Cousin Aug 10 '18 at 18:17
1

@Will Cousin, Magento does not provide functionality to redirect simple product to configurable product by default. I need to create a module and the event/observer to redirect simple product to configurable. Please check Magento2 Event Observer Redirect Simple Product to Configurable Product

1

Here is a workaround did. I created a text attribute and allowed it to be searchable on the front-end. Then I added the SKU's of the associated simple products to that attribute on the grouped product page. I had to type each SKU in manually and separate them by a comma so it is not as efficient.

The result is a user can search for a simple product SKU and the grouped product that the simple product is associated with will show in the search results.

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.