Example #1
0
 public function getCarriergroupInfo()
 {
     $order = $this->getOrder();
     if (is_null($this->cgInfo)) {
         $this->cgInfo = $this->carrierGroupHelper->getOrderCarrierGroupInfo($order->getId());
         if (empty($this->cgInfo)) {
             //retrieve using quote shipping address ID from carrier group helper
             //legacy
             $this->cgInfo = $this->shipperDataHelper->decodeShippingDetails($order->getCarriergroupShippingDetails());
         }
     }
     return $this->cgInfo;
 }