php - how does opencart calulate total amounts? -


i have 2 price fields in products table in database of opencart site. display of price determined type of user thats logged in.

throughout site have correct prices being displayed based on user, cant figure out how total price calculated.

this confirm.php

        $total_data = array();         $total = 0;         $taxes = $this->cart->gettaxes();          $this->load->model('setting/extension');          $sort_order = array();           $results = $this->model_setting_extension->getextensions('total');          foreach ($results $key => $value) {             $sort_order[$key] = $this->config->get($value['code'] . '_sort_order');         }          array_multisort($sort_order, sort_asc, $results);          foreach ($results $result) {             if ($this->config->get($result['code'] . '_status')) {                 $this->load->model('total/' . $result['code']);                  $this->{'model_total_' . $result['code']}->gettotal($total_data, $total, $taxes);               }         } 

i have edited taxes system/library/cart.php , have tried looking in total folder @ code, dont know getting price from. have tried gettotal in cart.php also, no luck.

thank you


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -