Open kevinamorim opened 4 years ago
@kevinamorim Thanks for reporting the issue.
I'm adding the developer feedback label. I have confirmed that the menu_order
field on attribute terms in the Rest API are not reflected elsewhere in WooCommerce (either dashboard or single product view).
@rrennick Thanks! I've made a pull request that fixes this.
@rrennick Thanks! I've made a pull request that fixes this.
@kevinamorim I apologize. I should have checked the issue when I read the notification. Can you provide a link to your PR?
@rrennick No problem, sure. Here you go: https://github.com/woocommerce/woocommerce/pull/28159
@kevinamorim Thanks.
The Closes #{issue-number}
in the PR description automatically connects the PR to the issue. The second feature of the line is that Github will automatically close the issue when the PR is merged. So, if there is an issue related to future PRs, please complete that line in the PR template.
Ran into this issue today. Attributes are synced from the client's ERP that has the correct ordering and manually sorting it in wordpress admin is a huge pain. Is there a workaround?
Prerequisites:
Describe the bug When using the field 'menu_order' for creating product attribute terms using the REST API, the order is not kept, using custom ordering for the product attribute.
Expected behavior The attribute terms for a given attribute should follow the order specified in the 'menu_order' field, if custom ordering is selected for the product attribute.
Actual behavior The attribute terms are presented in a somewhat random order even if 'menu_order' is specified when creating the term via REST API and having the product attribute as 'Custom Ordering'.
Steps to reproduce the bug Steps to reproduce the bug:
Isolating the problem:
This was tested and replicated on a completely fresh install of WP + WC.
WordPress Environment