Closed bhsmither closed 6 months ago
Thanks. I didn't follow your logic of having the hook after the assign method but my take on this seems to work ok.
This can allow for new order statuses but it's quite far reaching. For now this is useful for extra tasks other then print & delete.
Currently, the admin template orders.index.php has hard-coded tasks in a drop-down selector below the list of orders: nothing, print, delete.
Suggest this become coded as a {foreach}:
The array to be built in the source code (near line 779):
Note the new hook! This hook could be placed just after:
or just before assigning the statuses and tasks to Smarty.
So as to provide a means for plugins to push onto the list of Order Status options, as well as to push onto the list of Task options.
An additional task might involve selecting specific orders for an export to a CSV file.