function uc_quote_uc_order_load in Ubercart 8.4
Implements hook_uc_order_load().
File
- shipping/
uc_quote/ uc_quote.module, line 228 - The controller module for fulfillment modules that process physical goods.
Code
function uc_quote_uc_order_load($orders) {
$connection = \Drupal::database();
foreach ($orders as $order) {
$quote = $connection
->query("SELECT method, accessorials, rate FROM {uc_order_quotes} WHERE order_id = :id", [
':id' => $order
->id(),
])
->fetchAssoc();
$order->quote = $quote;
$order->quote['accessorials'] = strval($quote['accessorials']);
}
}