public function setItemOrderShippingName(&$item, $shipping_model)
    {
        if (isset($item['shipping'])) {
            $data = $shipping_model->get($item['shipping']);
            $item['shipping_name'] = empty($data['title']) ? 'Unknown' : $data['title'];
        }
    }
public function setItemOrderShippingName(&$item, $shipping_model)
    {
        if (isset($item['shipping'])) {
            $data = $shipping_model->get($item['shipping']);
            $item['shipping_name'] = empty($data['title']) ? 'Unknown' : $data['title'];
        }
    }
public function setItemOrderShippingName ( & $ item , $ shipping_model ) { if ( isset ( $ item [ 'shipping' ] ) ) { $ data = $ shipping_model -> get ( $ item [ 'shipping' ] ) ; $ item [ 'shipping_name' ] = empty ( $ data [ 'title' ] ) ? 'Unknown' : $ data [ 'title' ] ; } }
Adds "shipping_name" key
@param array $item
@param \gplcart\core\models\Shipping $shipping_model
Adds shipping_name key