Creating Custom Collection Object in Liquid Without Tags

Solved
Highlighted
Shopify Partner
38 0 1

Hi Guys

I am wondering if it is possible to construct Collection Object in liquid by defining custom products? Say i want to display only 3 products names product-1, product-2,product-3 in the collection page. But without the usage of product tags. 

 

Regards

Muthu

0 Likes
Highlighted

Success.

Excursionist
629 110 323
You can fetch your desired product in collection by following this.
1. Add tag 'featured' in the your desired products.
2. In collection page, in the loop for fetching products from collection put below condition.

{% if product.tags contains 'featured' %}
{{ product.title}}
{% endif %}

- i hope you understood.
- give like and mark my answer as accepted solution.
2 Likes
Highlighted
Shopify Partner
38 0 1

Hi candiSoft,

Thanks for your response. But we need this without the use of tags. Now, i have updated the original post.

 

Regards

Muthu

0 Likes
Highlighted
Excursionist
629 110 323
No it is not possible and it is inconvenient.
1 Like
Highlighted
Shopify Partner
38 0 1

Hi candiSoft,

Thank you for clarifying. Yes, It is indeed impossible at the moment. I think It is locked by shopify from server side.


Regards

Muthu

0 Likes
Highlighted
Excursionist
629 110 323
Yes, because backend of shopify is dependent on admin panel of our store.
-We can not create object using code in file.
- but we can create collection object using creating collection in admin panel.

Thank You
2 Likes