Skip Navigation

[Resolved] conditional outputs break wordpress archive

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here was that the customer was using the views conditional shortcode on his custom woocommerce shop page, however the page was returning blank.

Solution:

The issue was not a specific conclusion to what this issue was as the client was building on a test server and when moved to live the issue was not there. I would suspect that some server configuration was the cause of this . I would suggest checking the php logs for the server.

This support ticket is created 6 years, 9 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by troyC 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#610689

Hiii...

I would like to display conditional outputs within a wordpress Archive but when I do this most of the page goes blank.

hidden link

When adding this code to the fiilter editor the page goes blank:

[wpv-conditional if="( $(wpcf-vent-diamter) eq '100mm' )"]
100mm Filters selected
[/wpv-conditional]

The page works fine without the code ....

#610831

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Troy,

Thank you for contacting our support forum.

Would you mind providing me with admin access to the site so that I can have a look at this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#610839
#610969

Hey Shane,

Have you been able to login and look at it yet? I'm noticing that its not working as I expect it to on multiple websites. I
I want to add a [wpv-conditional if.....] script to the filter editor. This should be possible right? If I do so the archive view goes mostly blank....

Help would be nice. Thank you.

#611105

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Troy,

I'm trying to have a look at this for you but the site is running extremely slow.

Also it seems that the custom archive that you created is not being reflected on the frontend.

Did you disable the woocommerce views plugin ?

Could you try set it back exactly as it was so I can have a look at it .

Thanks,
Shane

#611112

Hey Shane. Thnx.

1) Yes correct the website is slow. I still have to improve this.

2) Yes exaclty. This is the problem!

Backend: hidden link

Frontend: hidden link

When i add conditonal output the page goes blank! This is part of the problem ....

3) woocommerce views is activated

#611151

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Troy,

The blank screen issue could be caused by the plugins being outdated.

Could you try updating the toolset plugins to their latest versions and let me know if the issue still remains ?

Thanks,
Shane

#611520

Thank you Shane.

I updated the plugins and I see a different. Now i have other problems after update.

When WooCommerce Views plugin default product archive template IS SELECTED

I SEE WooCommerce Plugin Default Archive Templates. + WooCommerce Views plugin default product archive at the
SAME TIME.

BOTH are showing hidden link

I apologize for the slow website!! It seems like it got even slower after the plugin update.

#611984

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Troy,

I think this might be a theme compatibility issue.

Would you mind providing me with just a copy of the theme so that I can test it out to see if its a theme issue.

The private fields will be enabled once more.

#612177
#612817

Can this topic be opened again ?