Closed toupper closed 1 week ago
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
App Name | WooCommerce iOS | |
Build Number | pr12758-55663c4 | |
Version | 18.6 | |
Bundle ID | com.automattic.alpha.woocommerce | |
Commit | 55663c4ee9144955187b86816b804c75919bb9a7 | |
App Center Build | WooCommerce - Prototype Builds #9116 |
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.
Closes: #12718
Description
With this PR we implement the edit support for Min/Max Quantities in the product and variations detail forms.
Testing instructions
Store without the Min/Max Quantities plugin installed. We don't show the Min/Max Quantities row in product and product variation details:
Store with the Min/Max Quantities plugin installed, but no values set in product. We show the Quantity Rules row with no rules:
Store with the Min/Max Quantities plugin installed, and values set in product. We show the Quantity Rules row with rules:
Quantity Rules screen shows values and placeholder when there is none:
Edit Quantity Rules:
https://github.com/woocommerce/woocommerce-ios/assets/1864060/4330b456-8442-4c72-858b-f68b29859835
Product Variations:
We show the Quantity Rules row in product variations detail views if:
These two latter values can be set in
wp-admin
(Not in the app in this milestone)https://github.com/woocommerce/woocommerce-ios/assets/1864060/400866c5-ae10-4f6c-ace8-2ba1d486bf73
Errors:
We show the errors messages returned from the requests. These are
As these errors are dynamic, we can test if we show the right message by debugging the code or inspecting the response with Proxyman. You can test the behavior with inconsistent input:
Example: Entering a min value bigger than the maximum:
https://github.com/woocommerce/woocommerce-ios/assets/1864060/1409b74f-d083-474c-a13c-c060db213ba3
Screenshots
See above
RELEASE-NOTES.txt
if necessary.