Limit product recommendations to a specific collection?

Topic summary

Main issue: Limit the product recommendations shown on a product page to items from the same collection as the viewed product.

Feasibility: Confirmed possible by a responder, but not achievable through settings alone; it requires code changes.

Implementation direction:

  • Option 1: Modify the entire code of the existing product recommendations section to filter by the current product’s collection.
  • Option 2: Create a new custom section that implements collection-based filtering.

Details provided: No specific code examples, steps, or theme references were shared. The requester asked for clarification on what “change the code” entails.

Status: Unresolved/ongoing. The thread recognizes the need for custom development but lacks a concrete implementation guide. Key open questions include how to detect the current product’s collection and apply that filter within the recommendations component.

Summarized with AI on December 21. AI used: gpt-5.

When you view a product, it shows product recommendations at the bottom of the page. I want to use this but I want the recommendations to be limited to other products in the same Collection as the parent product. Is this possible?

Hello @staticatx ,

Yes possible but need to change while the code.

Thanks

What do you mean by this?

Sorry typo mistake
I mean yes possible but need to change the whole code of specific section or create a new custom section.