Fix assigment order issues
This commit is contained in:
@@ -228,6 +228,12 @@ class Wiaas_Order_Fields {
|
||||
|
||||
$bundle_item->update_meta_data('_wiaas_installation', $selected_installation->get_id());
|
||||
$bundle_item->save_meta_data();
|
||||
|
||||
/**
|
||||
* Apply actions related to order item installation
|
||||
* (ex. make order visible to corresponding installation company)
|
||||
*/
|
||||
do_action('wiaas_order_item_installation_assigned', $order, $bundle_item, $selected_installation);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -448,6 +454,12 @@ class Wiaas_Order_Fields {
|
||||
|
||||
$entry[(string) $field->id] = 'wiaas_installation_' . $order->get_id() . '|' . $installation_item->get_id();
|
||||
|
||||
/**
|
||||
* Apply actions related to order item installation
|
||||
* (ex. make order visible to corresponding installation company)
|
||||
*/
|
||||
do_action('wiaas_order_item_installation_assigned', $order, $bundle_item, $installation_item);
|
||||
|
||||
} else if (count($installation_items) > 1) {
|
||||
|
||||
// force admin to select installation
|
||||
|
||||
Reference in New Issue
Block a user