title: OpenCart - Display price after Discount
body: <p>I have been playing around with the Default Template and trying to change some of it's features. On my product page (catalog/view/theme/mytheme/template/product/product.tpl), I want to display the price after the discount has been applied, depending on my customer group.</p>
  
  <p>I know I am not using the best solution to query my user group since I have hard coded information, but here is how looks :</p>
  
  <pre><code>&lt;?php
      $customer_group_id = $this-&gt;customer-&gt;getCustomerGroupId();
  
      if (is_null($customer_group_id))
      {
          // not logged in
          // show full price
          echo $price;
      }
      else
      {
          if ($customer_group_id == "1")
          {
              // customer group used with full price
              echo $price;
          }
          else
          {
              // customer group with discount
              # ?????????????????????????????
          }
      }
  ?&gt;
  </code></pre>
  
  <p>I would like to know how to display the price with the discount allowed to the user. In my products, under the "Discount" tab, I have entered a discount for my desired customer group with the following details :</p>
  
  <pre><code>Quantity : 0
  Priority : 0
  Price : 5.00
  Date Start : 2000-01-01
  Date End : 2050-12-31
  </code></pre>
  
  <p>Under the "Data" tab, my price is set at "7.00".</p>
  
  <p>I have tried several bits of code but none that shows the discount code. However, I do have the full price showing if my user is not logged in or logged in as a user in the other user group.</p>
  
  <p>Any suggestions ?</p>