Skip Navigation

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

This support ticket is created hace 1 año, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Stephen Vaughan hace 1 año, 5 meses.

Asistido por: Minesh.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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:
- enlace oculto

#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

Idiomas: Inglés (English )

Zona horaria: 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.