Skip Navigation

[Gelöst] WooCommerce Blocks interferes with Divi Cart Totals and Details modules.

This support ticket is created vor 1 Jahr, 6 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Stephen Vaughan vor 1 Jahr, 6 Monaten.

Assistiert von: Minesh.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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:
- versteckter 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

Sprachen: Englisch (English )

Zeitzone: 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.