Skip Navigation

[Closed] Multiple Woocommerce groups

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+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 2 months ago.

Assisted by: Nigel.

Author
Posts
#2562601

Hi
I just discovered that the default Woocommerce groups started multiplying it self - why is that? How can I fix that? Screenshot: hidden link

#2563023

Nigel
Supporter

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

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

Hi there

The problem has arisen a few times, typically in custom code that is "doing it wrong", i.e. modifying all WooCommerce-related queries on certain back end pages instead of targeting their own queries, so that our query which helps determine whether our custom WC field group has been created yet or not is broken.

To be able to stop that it is necessary to identify what is doing that, which means a trial and error process using a process of elimination.

You are looking for anything that customizes the product or shop order pages. I'll provide some code you can use to clean up the excess entries, after which you can disable any plugin that might involve customizing those pages, and then re-activate them one by one, visiting the product and order pages, and checking if extra Toolset WooCommerce field groups have been generated.

If you can isolate what's doing this then we can see what can be done to stop it.

You can add the following code to Toolset > Settings > Custom Code. Don't activate the snippet, and instead run once.

$wcfgs = get_posts( 
    array(
        'post_type' => 'wp-types-group',
        'title' => 'Toolset WooCommerce',
        'numberposts' => 25
    )
);

foreach ($wcfgs as $wcfg) {
    wp_delete_post( $wcfg->ID, true );
}

That can eliminate up to 25 field groups at a time. If there are more you will need to "run once" as many times as is required.

Let us know what you find and we can see how to proceed.

The topic ‘[Closed] Multiple Woocommerce groups’ is closed to new replies.