5

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.

2
  • Set visibility of simple products as not visible individually, then simple products will not be included in your search. Aug 10, 2018 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. Aug 10, 2018 at 18:17

2 Answers 2

3

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.

1
  • 1
    Perfect workaround - Just added a new column in my import the same as the associated_skus called child_skus and added the attribute in the backend
    – 07lodgeT
    Nov 8, 2019 at 9:22
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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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