Skip Navigation

[Resolved] Conditional output + views not working together in WooCommerce Tabs

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

Problem:

Display some View's shortcode in a conditional output in WooCommerce Tab Manager.

Solution:

The client has fixed it by this:
I updated Tabs plugin to premium version. Its working now

Relevant Documentation:

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

This topic contains 5 replies, has 3 voices.

Last updated by troyC 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#696987

I am trying to:

Display a view in a conditional output in WooCommerce Tab Manager

Link to a page where the issue can be seen:

backend:
hidden link

frontend:
hidden link

I expected to see:
The view with correct information

Instead, I got:

#697431

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - could you please check by adding simple shortcode to your tab content and check is this simple shortcode working. Add following code to your current theme's functions.php file.

function foobar_func( $atts ){
	return "foo and bar";
}
add_shortcode( 'foobar', 'foobar_func' );

In your tabs content add shortcode:

[foobar] 
#697464

It is working.

hidden link

#697465

It does not work when i place conditional tags around it ....

#714447

Hello,

Minesh isn't available, I will take care of this ticket.

I assume we are talking about this problem in URL:
hidden link

click tab "Description", I see some Views shortcodes:

FLOW STATE [wpv-post-link]

[wpv-post-body view_template="artikel-specificaties"]

The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this:

1) deactivate other plugins and switch to wordpress default theme, and test again

2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, I need to test and debug it in my localhost, thanks

#714828

I updated Tabs plugin to premium version. Its working now. Thanks