Skip Navigation

[Resolved] WooCommerce Blocks interferes with Divi Cart Totals and Details modules.

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 4 replies, has 2 voices.

Last updated by Stephen Vaughan 1 year, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2610525

I discovered this issue while setting up a layout with the two Divi modules. With the Totals module the text in the table wouldn't display correctly. With the Woo Cart Details module removing items was not updated in this module. I tried to disable WooCommerce Blocks as much as possible with Asset CleanUP nut its seems that WooCommerce Blocks needs to be deactivated completely for things to work correctly again.

Do you have a solution to deactivate the plugin on specific pages?

#2610571

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

We do not have any feature to offer to disable the specific plugin on specific page/post/request.

I suggest you should try any of the plugin listed with the following article or try code snippet that may help you:
- hidden link

#2610581
Screenshot 2023-05-26 at 6.06.19 p.m..jpg

Thanks Minesh,

I did in fact think of using one of the plugins out there and one of them works. I would though like to use the code that was in the linked document to cut down on the number of plugins installed.

add_filter( ‘option_active_plugins’, ‘disable_specific_plugin’ );
function disable_specific_plugin($plugins){
if( $_SERVER[‘REQUEST_URI’] == ‘/shop/’ ) {
$key = array_search( ‘name_of_plugin_folder/plugin_core.php’ , $plugins );
if ( false !== $key ) unset( $plugins[$key] );
}
return $plugins;
}

All I need to determine is the correct path for WooCommerce Blocks. I see many files listed via FTP

#2610981

Minesh
Supporter

Languages: English (English )

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

The path you should use is: woocommerce-views/views-woocommerce.php

#2611005

My issue is resolved now. Thank you!

Thanks Minesh. I twigged that the path was the plugin name… after looking closely. I had some errors with the script so reverted to one of the plugins for the moment. I will come back finding a function for this when I get a chance.