Liquid, JavaScript, themes, sales channels
Hi,
My current homepage is set up like this: https://shophotlava.com/
I'm using this code to populate my collections, however I don't want to show the categories of all products, I want to show the products themselves:
<div id="collection" class="row">
<div class="span12">
<!--<h1><span>{{ 'collections.list_collections.product_collections' | t }}</span></h1>-->
</div> <!-- /.span12 -->
</div> <!-- /.row -->
<div class="row products masonry">
{% for collection in collections %}
{% unless collection.all_products_count == 0 or collection.handle == "frontpage" %}
{% include 'collection-loop' %}
{% endunless %}
{% endfor %}
</div> <!-- /#collection.row -->
I'd like to show all products in the collection like this page, https://shophotlava.com/collections/all but I am not too familiar with Liquid code. Can somebody help me?
Hope you're having a great day!
You don't need to write any code before doing what you want to do. You can add the products to your homepage collection. This is the cleanest solution for you.
If you found this comment useful, hit the 'Like' and 'Accepted solution' buttons.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024