Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation to enable Save attributes and Save variations buttons (#…
…37046) * Add validation for attributes and variations * Enable save button when data is valid # Conflicts: # plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php * Add changelog * Remove if * Remove validation while saving # Conflicts: # plugins/woocommerce/client/legacy/js/admin/meta-boxes-product-variation.js * Rename method `is_attribute_or_variation_empty` * Add button title when disabled # Conflicts: # plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php * Fix typo * Fix e2e tests * Convert functions into global fn * Use maybe_disable_save_button * Fix validation * Refactor `is_attribute_or_variation_empty` --------- Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
- Loading branch information
Showing
8 changed files
with
155 additions
and
64 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
plugins/woocommerce/changelog/fix-37021_add_validation_when_saving_attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: fix | ||
|
||
Add validation when saving attributes and variations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters