Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest API missing is_enabled for product variations. #17249

Closed
warwolf opened this issue Oct 17, 2017 · 2 comments
Closed

Rest API missing is_enabled for product variations. #17249

warwolf opened this issue Oct 17, 2017 · 2 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@warwolf
Copy link

warwolf commented Oct 17, 2017

The rest API for product variations is missing the "Enabled" property, currently you have to delete and add product variations instead if you want to temporarly remove a variation thru rest API.

Also when you get a variation that has no own SKU the parents SKU is recived instead.
However if you try to save the the exact data you did recive you will fail as you will get a duplicate SKU error.
Perhaps it would be good to be able to save the variation using the parents SKU.

@mikejolley
Copy link
Member

Moved to woocommerce/wc-api-dev#64 for feedback. Feel free to contribute there also.

@claudiosanches
Copy link
Contributor

@warwolf you can do it using the visible param to enable or disable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

3 participants