Skip Navigation

[Resolved] Dcces in product category does not display correct number of pages in pagination

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#580295

Pat

Hello,

I'm working on an e-commerce site with Toolset and WC and face this issue :

I have placed product categories into the menu
When I access to one of the categories thanks to the menu, then, the page number in thepagination does not take into account the category count, but display the total product count. Here is the url to access :
hidden link

Now, I have placed product categories as a filter inside my Views and if I use it, then the pagination is fine. Here is the url to access :
hidden link

And here is the code I have place inside my Views to display the pagination :

[wpv-layout-start]
[wpv-items-found]<div class="wpv-pagination-nav-links-container">[wpv-pager-nav-links]</div>
<!-- wpv-loop-start -->

Did I miss something? I would like the pagination to reflect the number of products into each category

Regards
Pat

#580492

Dear Pat,

Are we talking about a taxonomy archive page?
If it is, please try another shortcode:
Archive for [wpv-taxonomy-archive info="count"]

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive
This shortcode displays information about the current taxonomy (usable only for taxonomy queries).

#580496

Pat

Hi Luo,

Thanks for your feedback.
The issue is that I need to access taxonomy archive pages thanks to the menu. So, I have placed the different product categories inside the menu (using the standard WordPress drag and drop), and then, when I click on the submenu related to a specific product taxonomy, the pagination still displays all the total pages (and not the toal pages of this product taxonomy)

Can you reproduce this ?
Regards
Pat

#580558

In WordPress archive page, normal view won't be able to work as expected, you will need to setup Views wordpress archive for it:
https://toolset.com/documentation/user-guides/normal-vs-archive-views/

Then display the paginations with Views shortcodes, for example [wpv-pager-archive-nav-links]
Displays a list of pages, enabling visitors to click on a page.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-nav-links

And [wpv-pager-archive-total-pages]
This shortcode displays the total pages number.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-total-pages