if (!isset($this->session->data[ 'shipping_methods' ]) || !$this->config->get('config_shipping_session')) {
$quote_data = array();
$results = $this->model_checkout_extension->getExtensions('shipping');
foreach ($results as $result) {
$this->loadModel('extension/' . $result[ 'key' ]);
$quote = $this->{'model_extension_' . $result[ 'key' ]}->getQuote($shipping_address);
if ($quote) {
$quote_data[ $result[ 'key' ] ] = array(
'title' => $quote[ 'title' ],
'quote' => $quote[ 'quote' ],
'sort_order' => $quote[ 'sort_order' ],
'error' => $quote[ 'error' ]
);
}
}
$sort_order = array();
foreach ($quote_data as $key => $value) {
$sort_order[ $key ] = $value[ 'sort_order' ];
}
array_multisort($sort_order, SORT_ASC, $quote_data);
$this->session->data[ 'shipping_methods' ] = $quote_data;
}
this function from API print List of shipping methods when condition is true
can someone plz explain the line below?
!$this->config->get('config_shipping_session'))