woocommerce / woocommerce/wc-api-php
After upgrade I can't filter on sku anymore
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 546
- Forks
- 158
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 2
Description
After upgrading WC (to 5.2.2) today, I can't filter on sky anymore.
My PHP:
$woocommerce->get('products', array('sku' => '123456'));
I get a empty array back.
Before upgrading all my informations where stored in the array itself?!
The product itself is available and can be viewed via:
$woocommerce->get('products/125');
But I need to get products via sku.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the shown products request against WooCommerce 5.2.2 and comparing it with the products/125 request. Trace how the PHP client sends the sku filter and inspect the returned product data; done when filtering by SKU returns the matching product or the incompatibility is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100