woocommerce / woocommerce/wc-api-python
unable to update a product
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 216
- Forks
- 108
- Avg merge
- 6h 34m
- Merged PRs (30d)
- 1
Description
I am trying to update products in my store. But, the put/post methods do not work at all. The requests are executed but there are no changes in the product's properties.
I gave my homepage URL as the url param, and the permalink in the wordpress is set to something like https://my-website.co.il/year/month/day/sample-post/. below is the constructor defined
wcapi = API(
url=STORE,
consumer_key=DEV,
consumer_secret=SECRET,
wp_api=True,
version="wc/v2",
query_string_auth=True
)
and here is how I update a product
wcapi.put("products/4713", data={'price':'0.15'}).json()
and then it returns the product with old price.
Actually, the product is not updated and still it does not give an error.
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 reproducing the wcapi.put("products/4713", data={'price':'0.15'}) call with the shown API configuration and inspect the returned response and product state. Trace the request path through the Python wrapper and WooCommerce API behavior; done means the cause of the unchanged product and missing error is identified and the update behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, wordpress
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100