Hi,
I was wondering if there is a way to create a product recommendation section on a collection page or was this only possible on the default product page?
Cheers,
Lee.
Hi,
I was wondering if there is a way to create a product recommendation section on a collection page or was this only possible on the default product page?
Cheers,
Lee.
The details will vary by theme,
If the theme does have a recommended product section at all such as on the home page or on product pages:
Check your theme settings for the collection template there may already be a section for this.
Otherwise for OS2.0 themes you may need to add enable the section to be available to other templates enabled_on and disabled_on option.
https://shopify.dev/docs/themes/architecture/sections/section-schema#content
Or make sure the relevant template allows the section in the “sections” object list
https://shopify.dev/docs/themes/architecture/templates/json-templates#schema
For vintage themes you’d have to statically include the section.
If you need this customization you can contact me directly for services.
Please provide context: store url, theme name, post url(s) and any further detail. Contact Info in signature.
Good Hunting.
Hello @leehaverford ,
Yes, this is possible to create a product recommendation section in a collection page. You can do it by edit code:
{% for product in collections[collection.handle].products %}
{% if product.tags contains 'recommended' %}
#### {{ product.title }}
{{ product.price | money }}
{% endif %}
{% endfor %}
Note that this code assumes that your recommended products have the “recommended” tag. If you use a different tag or method to identify recommended products, you’ll need to update the code accordingly.
Hope this can help you out. Let us know if you need any further support.
Ali Reviews team.