Re: How to filter collection (not products) before paginaton

How to filter collection (not products) before paginaton

begginer1231
Shopify Partner
19 0 1

https://community.shopify.com/c/technical-q-a/filtering-the-pagination/m-p/610500

 

I'm trying to make a pagination, which worked out. But now I want a filter in it that doesn't work very well.

{% paginate tickets by 10 %} {% for ticket in tickets %} {% if ticket.group.name == "Beefinity Support"%}

In this way I try to filter, so the intention is that I only have the tickets with the group name "Beefinity Support".

Now that succeeded, But i leave empty spots on the first page of the pagination. This is because the pagination thinks that the tickets of the other groups are also still there, but I have filtered them out.

Does anyone know how I can tell the pagination that the other groups are gone?
Or is there a way to filter in the pagination itself?

 

Screenshot of the problem:

 

Replies 5 (5)

KetanKumar
Shopify Partner
36929 3642 11996

@begginer1231 

oh sorry for that issue can you please share store url so i will check and let you know 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
begginer1231
Shopify Partner
19 0 1

@KetanKumar 

Hi, 

 

Thank you for your fast response. I will share the link with you soon.

I forgot to add one piece of information.

I am trying to filter collections by metafields.custom.is_vendor and metafields.custom.region (before pagination so that the pagination number will make sense). 

CalebV
Shopify Partner
15 0 4

Any update on this issue?

KetanKumar
Shopify Partner
36929 3642 11996

@CalebV 

oh sorry for that issue can you please share store url so i will check and let you know 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Reliked
Tourist
8 0 4

Hi

 

Did you find a solution?

 

Thanks

Imogen