Hi,
I hope you are doing well today.
Please try the following snippet. After version 1.4.0, our codebase was updated. So, the snippet from the support forum is not working with the latest version. Here is the updated snippet for the Divi Theme:
// Variation Table support for Divi Theme (PVT Version 1.4.0+)
function pvt_divi_builder_support(){
if( class_exists( 'PVTFW_TABLE' ) && class_exists( 'PVTFW_PRINT_TABLE' ) ){
$pvtfw_table = PVTFW_TABLE::instance();
$pvtfw_print_table = PVTFW_PRINT_TABLE::instance();
$table = $pvtfw_print_table::allocation();
remove_action('template_redirect', array( $pvtfw_table, 'remove_add_to_cart'), 29 );
remove_action($table['place'], array($pvtfw_print_table, 'print_table'), $table['priority']);
}
}
add_action('init', 'pvt_divi_builder_support');
I recommend using the Code Snippets plugin rather than the functions.php to avoid the loss of modification after the theme update.
Hope to hear from you soon.
Best Regards
-
This reply was modified 1 year, 8 months ago by
WPXtension. Reason: Modified the snippet to avoid error (if the plugin is deactivated)
Thank you so much!!
It works! I’m so happy, thank you so much again!!
Have a nice day!
Hi,
Glad to know it helped.
If you found my support helpful, can you please share your valuable feedback here- https://ww.wp.xz.cn/support/plugin/product-variant-table-for-woocommerce/reviews/
Your valuable feedback keeps us inspired.
Best Regards