Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
james13

Bulk remove not updating products

We’re having an issue on a client site where Bulk Remove is no longer updating products (as of about a month ago). Add and Replace are working correctly and we are using Replace and not selecting anything as a workaround. However, this is only an option for fields with a single value, otherwise all values are replaced.

It’s a Woocommerce site and we also have the ACF, Woo, Yoast and Gravity Forms addons active and up-to-date. Reactivating and reinstalling has had no effect.

The specific field the client needs to bulk edit is a custom category, however the remove issue applies to default categories too.

2 years, 6 months ago
Stefan van den Dungen Gronovius
Developer

Thanks for your feedback. We were able to reproduce the issue.
We will fix this for the upcoming release.

2 years, 6 months ago
Tobias Schutter
Developer

Hi James, I was able to reproduce the issue. We will fix this in our upcoming maintenance release. In the meanwhile, if you are comfortable with changing a bit of code, you can do it yourself. Change the following line:

In the file `classes\Editing\Service\Post\Taxonomy.php` you can replace:

$term_ids = array_filter( (array) $params['value'] );

with

$term_ids = array_map( 'absint', array_unique( array_filter( (array) $params['value'] ) ) );

That would fix it for now.

2 years, 6 months ago
james13

Thanks Tobias and Stefan, confirmed that code has fixed the issue for now.

2 years, 6 months ago
admin98

Not solved still have the issue with the updated plugin v 5.6.2
Taxonomy.php has that line of code.

2 years, 6 months ago
Stefan van den Dungen Gronovius
Developer

Are you looking at the same file that Tobias mentioned?
I just downloaded the latest version and the Taxonomy file should have this line of code.

$term_ids = array_map( 'absint', array_unique( array_filter( (array) $params['value'] ) ) );

2 years, 5 months ago

You must be logged in to reply to this topic.