How to add a 'Frequently Bought Together' section using code?

Topic summary

A user seeks guidance on adding a “Frequently Bought Together” section to their product pages using custom code.

Solution Provided:

  • Insert a specific code snippet in product-template.liquid after the product description ends
  • Create a new section file called frequently-bought-together.liquid
  • Paste provided code that loops through related products and displays them with titles, prices, and view buttons

Current Status:

  • The helper shared code snippets, but the formatting appears corrupted or reversed in the conversation
  • The original poster requested clarification on the exact placement and asked for the code to be reshared
  • Discussion remains open as the implementation details need to be confirmed for successful execution
Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

yes this is possible.