title: opencart get total price in cart when payment method selected
body: <p>This is my custom payment method code for opencart:</p>
  
  <pre><code>&lt;?php
  class ControllerPaymentportmanat extends Controller {
      protected function index() {
          $this-&gt;data['button_confirm'] = $this-&gt;language-&gt;get('button_confirm_portmanat');
  
          $this-&gt;data['continue'] = $this-&gt;url-&gt;link('checkout/success');
          $this-&gt;data['order_id'] = $this-&gt;session-&gt;data['order_id'];
  
          if (file_exists(DIR_TEMPLATE . $this-&gt;config-&gt;get('config_template') . '/template/payment/portmanat.tpl')) {
              $this-&gt;template = $this-&gt;config-&gt;get('config_template') . '/template/payment/portmanat.tpl';
          } else {
              $this-&gt;template = 'default/template/payment/portmanat.tpl';
          }   
  
          $this-&gt;render();
      }
  
      public function confirm() {
          $this-&gt;load-&gt;model('checkout/order');
  
          $this-&gt;model_checkout_order-&gt;confirm($this-&gt;session-&gt;data['order_id'], $this-&gt;config-&gt;get('portmanat_order_status_id'));
      }
  }
  ?&gt;
  </code></pre>
  
  <p>How can I get current <strong>TOTAL</strong> size on my code? I want to define the <strong>TOTAL</strong> price on my code.</p>