You want to create a section with settings that can be toggled on and off:
- Create the 'related-products.liquid' as a section file.
- In the product template file, add the following section inclusion:
{% section 'related-products' %}
right beneath the{% section 'product-template' %}
line.
You still need to perform 1 more step to make your "related products" section visible. See step 3 down below:
{% section 'related-products' %}
right beneath the{% section 'product-template' %}
line.