Skip Navigation

[Resolved] Views – Woocommerce Category list display only if there is a product

This support ticket is created 6 years, 3 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 7 replies, has 2 voices.

Last updated by tomaszW-2 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1122342
view-problem.png

I am trying to: make full list of Woocommerce Categories

Link to a page where the issue can be seen: hidden link

I expected to see: hidden link

Instead, I got: Empty UL list (but number of li elements is ok).

This problem now is in two places in sidebar ( KATEGORIE PRODUKTÓW ) and below there is another test view.

I want to have list of all Woocommerce categories and display them in every archive page of woocommerce categories taxonomy. Unfortunetly list display elements only when in current category there is at least 1 product - then list is created well. ( hidden link )
But when in some category there is no product than there is no elements of list ( hidden link ) but ul > li structure is created good (good amount of li elements).

Could you help me with that?

#1122696

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

First of all - After checking to debug information you shared with us, I found that you are using outdated Toolset plugins. We always recommend running your site with latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest official released version and try to resolve your issue. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

#1122990

Plugins updated. Problem remains.

#1123421

Minesh
Supporter

Languages: English (English )

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

Well - could you please share access details that will help me to investigate this issue.

*** Please make a FULL BACKUP of your database and website.***
I have set the next reply to private which means only you and I have access to it.

#1124483

Minesh
Supporter

Languages: English (English )

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

Well - I tried to reproduce the issue with latest WordPress version + minimum installation (Toolset plugins + default 2007 theme + WPBakery Page Builder (5.5.2) ) and added nested view to taxonomy archive using layout but it just work fine.

I see the workaround for you is to add loop output content to loop output editor rather using content template. As soon as I place all shortcodes added to the content template within view's loop, its just started to work fine.
=> hidden link

#1133257

Hello, I still have an issue, now I have doubled categories in sidebar after your work.

#1133275

I had to removie this double categories so problem still original probelm still exists.

#1133303

I resolved issue myself - had to remove [wpv-post-body view_template... element.