You are here

function uc_quote_cart_returned_rates in Ubercart 8.4

Same name and namespace in other branches
  1. 7.3 shipping/uc_quote/uc_quote.module \uc_quote_cart_returned_rates()

Ajax callback: Shows estimated shipping quotes on the cart page.

1 string reference to 'uc_quote_cart_returned_rates'
uc_cart_pane_quotes in shipping/uc_quote/uc_quote.module
Cart pane callback.

File

shipping/uc_quote/uc_quote.module, line 535
The controller module for fulfillment modules that process physical goods.

Code

function uc_quote_cart_returned_rates($form, $form_state) {
  $response = new AjaxResponse();
  $response
    ->addCommand(new ReplaceCommand('#quote', trim(drupal_render($form['quote']))));
  $status_messages = [
    '#type' => 'status_messages',
  ];
  $response
    ->addCommand(new PrependCommand('#quote', drupal_render($status_messages)));
  return $response;
}