The export settings allow you to specify the order status that indicates that an order is ready for export. We should validate that a Conditional Actions exists that will set the order status to the value specified in this field, otherwise orders will never be exported! If no conditional action exists that will set the order status to the value specified in this field, we should display an error.
Cheers,
Antoine
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uc_edi-942844_1.patch | 12.99 KB | jantoine |
| #1 | uc_edi-942844.patch | 6.71 KB | jantoine |
Comments
Comment #1
jantoine commentedPatch attached that implements the following:
- Implements hook_help with an "Export Configuration" section specifying the minimum configuration needed for order exports to work.
- Updated all Ubercart EDI titles of administration pages since these are added to the help page by default.
- Adds a check in the settings form validation function to determine if a predicate exists with the "Update the order status" action with the "Order status" field being equal to the value specified in the "Ready for export order status" field on the Ubercart EDI settings page. If this fails, an error is thrown directing the user to the new help page, no form settings are saved.
Testers needed!
Cheers,
Antoine
Comment #2
jantoine commentedThe attached patch has been committed to head and implements the same features described in comment #1 but merges with other changes committed to head.
Cheers,
Antoine