In WC 7.9 (released today) they introduced a new concept for HTML elements on the edit product page to be enabled and disabled based on the product type. eg enable_if_variable. This builds on the existing show_if_variable.
However, WC core would only enable these fields based on the product type. This meant that the enable_if_variable elements, which variable subscription products are supposed to inherit, were being left disabled.
This PR fixes that by making sure we enable these fields after WC enables/disables them.
How to test this PR
Make sure you're running WC 7.9
Create a variable subscription product.
Go to the attributes tab
on trunk you'll notice the "Used for variations" checkbox is disabled.
on this branch it should be enabled and can be checked/unchecked.
Product impact
[x] Added changelog entry (or does not apply)
[ ] Will this PR affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Will this PR affect WooCommerce Payments? yes/no/tbc, add issue ref
[ ] Added deprecated functions, hooks or classes to the spreadsheet
Fixes #476
Description
In WC 7.9 (released today) they introduced a new concept for HTML elements on the edit product page to be enabled and disabled based on the product type. eg
enable_if_variable
. This builds on the existingshow_if_variable
.However, WC core would only enable these fields based on the product type. This meant that the
enable_if_variable
elements, which variable subscription products are supposed to inherit, were being left disabled.This PR fixes that by making sure we enable these fields after WC enables/disables them.
How to test this PR
trunk
you'll notice the "Used for variations" checkbox is disabled.Product impact