Hi @agustinnovolabs,
Sorry for such a late reply. I didn’t get a notification about this for some reason :/
I was going to offer you to enable our “REST API > Search by EAN” option and use our ean param:
https://example.com/wp-json/wc/v3/products?ean=7980441417892
However, after testing, I realized it’s not working with variations. I will have to look into it – I will get back to you as soon as possible.
One more thing – if you enable our “Search > This will enable searching by EAN on frontend” option, then you can search in REST API by EAN with the search param:
https://example.com/wp-json/wc/v3/products?search=7980441417892
This works a little better for variations – it won’t return the variation itself, however, it will return the parent (i.e., main variable) product instead.
Hi @agustinnovolabs,
It’s fixed in the plugin v4.3.0. As before, you need to enable our “REST API > Search by EAN” option and use the ean param – variations are now added to the results, e.g.:
https://example.com/wp-json/wc/v3/products?ean=7980441417892
Please give it a try and let me know what you think.
I’m going to mark this thread as “resolved” for now, hope that’s ok. Please let me know if there are still any questions/issues.