Only Show first few products from a featured collection on my homepage

DawnSchmidt
New Member
2 0 0

I added a Best Selling collection to my Shopify store, and since i have a lot of products the collection spans very far down the page. 

I am wondering how i can minimize the collection to only show the first three products in the collection with a button by it that says "view all" to bring the customer to a page where they can view the whole Best Selling collection

 

0 Likes
Guleria
Shopify Partner
1360 278 384

Hello @DawnSchmidt ,

Use a limit attribute inb existing loop
e.g. 

{% for item in array limit:2 %}
  {{ item }}
{% endfor %}

And just after the loop ( endfor ) create a button with and link it to specefic collection page.

btw you can do same with section schema and make it dynamic.

Thanks 

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes
DawnSchmidt
New Member
2 0 0

Where would i paste this snippet of code at?

Also could you inform me on how to create the button with a link to the collection?

Much appreciated.

www.postcardpantry.com

 

0 Likes
Guleria
Shopify Partner
1360 278 384

The code I posted was not a complete code it was just an example which you have to use a/to your requirement.
And to create a button you can use anchor tag where href will target to collection page.

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes