Как я понимаю этот код расчитывает суму доставки:
Код:
/* Build prices list */
                        $priceList = array();
                        foreach ($_POST as $key => $value)
                            if (strstr($key, 'fees_'))
                            {
                                $tmpArray = explode('_', $key);

                                $price = number_format(abs(str_replace(',', '.', $value)), 6, '.', '');
                                $current = 0;
                                foreach ($currentList as $item)
                                    if ($item['id_zone'] == $tmpArray[1] && $item['id_'.$rangeTable] == $tmpArray[2])
                                        $current = $item;
                                if ($current && $price == $current['price'])
                                    continue;

                                $priceList[] = array(
                                    'id_range_price' => ($shipping_method == Carrier::SHIPPING_METHOD_PRICE) ? (int)$tmpArray[2] : null,
                                    'id_range_weight' => ($shipping_method == Carrier::SHIPPING_METHOD_WEIGHT) ? (int)$tmpArray[2] : null,
                                    'id_carrier' => (int)$carrier->id,
                                    'id_zone' => (int)$tmpArray[1],
                                    'price' => $price,
                                );
                            }
                        /* Update delivery prices */
                        $carrier->addDeliveryPrice($priceList);
                        Tools::redirectAdmin(self::$currentIndex.'&conf=6&id_carrier='.$carrier->id.'&token='.$this->token);
                    }
                    else
                        $this->errors[] = Tools::displayError('An error occurred while attempting to update fees (cannot load carrier object).');
                }

Мне нужно добавить к способу доставки с определенным ID суму, каоторая равна 3%там от сумы заказа+сума доставки расчитаная системой из настроек магазина.
Подскажет ктото как сделать?