Skip Navigation

[Resolved] View All link in Taxonomy Archives – Product Categories

This support ticket is created 5 years, 11 months 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 12 replies, has 2 voices.

Last updated by annC 5 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1244851

Please could you advise of the best way to implement a View All Link.

The previous developers were using JavaScript to set a hidden field to none <input id="evo-limit" type="hidden" name="limit" value="0"> and rerun the filter, this is not working.

I've recently updated all the Toolset Plugins - Views to 2.8.0.1 and Woocommerce Views to 2.79

hidden link

#1244932

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - Can you please share screenshot where I can see the "View ALL" link and where exactly its applied?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1245078

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - unfortunately, wp-admin access details not working at this end.

Can you please send me working wp-admin access details.

I have set the next reply to private which means only you and I have access to it.

#1245096

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks, access details are not working.

Do you mean that if I click on "View ALL" it should display all products belongs to category and sub-category?

#1245108

Yes that is correct Minesh.

#1245151

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I do not see any reference with the field you shared <input id="evo-limit" type="hidden" name="limit" value="0">

This looks also the "view ALL" link it not part of Toolset: View all

I mean its custom coded by your Dev and such custom edits are not supported as per our support policy. I would recommend you to contact your Dev and ask him to fix this issue as this is implemented using custom programming.

#1245239

I’m not sure if this has ever worked? Have you an example of how this functionality of showing all products is possible without using custom code.

#1245864

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - to implement "View All" feature I've added the following taxonomy view filter by term ID that should be passed as view's shortcode attribute:
=> hidden link

And then within your archive, I've added the view as given under:

 [wpv-view name="view-tax-archive-link" terms="[wpv-taxonomy-archive info='parent']"]

If you will visit, you will see the "View All" link and when you click on it it will redirect you to the associated parent term:
=> hidden link

Can you please confirm it works for you.

#1246403

Thanks for implementing that Minesh, that is a step in the right direction but the behaviour we require is:

1. Click view all button.
2. All the products of the current of category are displayed, without paging.

I was trying do this achieve by either removing the paging when you click view all or increasing the limit to a arbitrary large value so paging wouldn't be shown.

#1246410

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - for that you should set your archive without pagination.

However to display all the posts without pagination is not a good idea it will affect the performance, let's say you have 500 posts to load on a single page without pagination. Its too much.

#1246428

How could we do this dynamically, so the archive loads with pagination first and then will only turn pagination off or set a higher limit when the view all link is clicked?

#1246462

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

That's another issue. Please mark resolve this ticket. As per our support policy, we entertain only one question per ticket that will help us to write correct problem resolution summery for which ticket originally created.

I've already answered your query with the ticket I split here:
=> https://toolset.com/forums/topic/split-view-all-link-in-taxonomy-archives-product-categories-change-posts-per-page/#post-1246461

#1246476

My issue is resolved now. Thank you!