protected function prepareComponents(array &$order)
    {
        if (!empty($order['cart']['items'])) {
            foreach ($order['cart']['items'] as $sku => $item) {
                $price = isset($item['total']) ? $item['total'] : null;
                $order['data']['components']['cart']['items'][$sku]['price'] = $price;
            }
        }
    }
protected function prepareComponents(array &$order)
    {
        if (!empty($order['cart']['items'])) {
            foreach ($order['cart']['items'] as $sku => $item) {
                $price = isset($item['total']) ? $item['total'] : null;
                $order['data']['components']['cart']['items'][$sku]['price'] = $price;
            }
        }
    }
protected function prepareComponents ( array & $ order ) { if ( ! empty ( $ order [ 'cart' ] [ 'items' ] ) ) { foreach ( $ order [ 'cart' ] [ 'items' ] as $ sku => $ item ) { $ price = isset ( $ item [ 'total' ] ) ? $ item [ 'total' ] : null ; $ order [ 'data' ] [ 'components' ] [ 'cart' ] [ 'items' ] [ $ sku ] [ 'price' ] = $ price ; } } }
Prepares order components
@param array $order
Prepares order components