Skip Navigation

[Resolved] WooCommerce Removal

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 1 year ago.

Assisted by: Nigel.

Author
Posts
#2665083

I am trying to:
Remove all traces of Toolset WooCommerce.

Link to a page where the issue can be seen:
In the debug information

__FIELDS_GROUP_toolset-woocommerce-fields":{"permissions":{"modify_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["administrator"]},"view_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["administrator"]}},"mode":"permissions"}}}}},"types":

and on dropdown menus that list fields.

I expected to see:
No WooCommerce choices/fields.

Instead, I got:
Plenty of them left. I've done a search on the posts database and deleted any woocommerce references via sql, as per another support ticket's suggestion. Still seeing these things.

#2665329

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I understand you are trying to remove traces of Toolset WooCommerce from your site, but could you please be more specific about where you are still seeing such traces that you need help with, it is not clear from your question.

#2665435

I can't seem to replicate the dropdown fields issue, so perhaps there was an update on my hosting's side. However, I can still see the registrations in the debug information.

"__FIELDS_GROUP_toolset-woocommerce-fields":{"permissions":{"modify_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["administrator"]},"view_fields_in_edit_page_toolset-woocommerce-fields":{"roles":["adm

This would imply to me that the plugin wasn't completely removed.

#2665545

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

On my own debug info the only references to WooCommerce I see are from the data about active plugins, referencing WooCommerce itself and the Toolset WooCommerce Blocks plugin.

In your debug info it looks like it refers to Access settings for the field group created when Toolset WooCommerce Blocks was active.

So on my test site I saved Access settings for that field group, and now I see the same in the debug info.

I'm looking into how to remove those Access settings from the database, so that they won't appear in the debug info.

I'll get back to you when I've made progress on that.

#2665617

Thanks for the update Nigel. FYI, neither WooCommerce nor the Toolset WooCommerce Blocks are installed any longer.

#2665757

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I crafted a small snippet of PHP code to remove the traces from the wp_options and wp_usermeta tables that I found on my own site.

Before running it on your own site I recommend you take a backup.

Then add the following code to a snippet at Toolset > Settings > Custom Code.

This should be an On Demand snippet, which you will the run one time only.

/**
 * delete user meta with key wpcf_access_section_status
 */ 
$user_ids = get_users( ['fields' => 'ID'] );
foreach ($user_ids as $user_id) {
    delete_user_meta( $user_id, 'wpcf_access_section_status' );
}

/**
 * remove reference to 
 * __FIELDS_GROUP_toolset-woocommerce-fields &&
 * __FIELDS_GROUP_extra-wc-fields 
 * from Access settings
 */
$access_settings = get_option( 'toolset-access-options' );
unset($access_settings->third_party['__FIELDS']['__FIELDS_GROUP_toolset-woocommerce-fields']);
unset($access_settings->third_party['__FIELDS']['__FIELDS_GROUP_extra-wc-fields']);
update_option( 'toolset-access-options', $access_settings );

That should remove the last vestiges of Toolset WooCommerce Blocks from your site.