Add 'related products' section to cart page (dawn theme)

Hi,

I’m using the Shopify Dawn theme. I want to add the ‘related products’ section to the cart page. That is not possible in the customizer.

So I went into the code, copied the ‘related-products.liquid’ section, and added a preset (to the copied section. I never play around with original sections):

"presets": [
    {
      "name": "cart related products"
    }
  ]

This enabled me to add the related products section to the cart page in the customizer.

However, no related products are showing! It seems that the section is not really connected to the cart page.

What code do I have to add/change in order to connect the section to the information from the cart page so that the section should be functional?

Thank you!

1 Like