title: OpenCart show weight in product block
body: <p>I am currently working on an ecommerce website using opencart, trying to show the weight of each product, in product details template it works, however, when I do the same thing to the product block, it shows undefined variable. This is the site <a href="http://kcitymart.com" rel="nofollow">KCityMart</a></p>
  
  <p>So what I did to show the weight in product details page is this</p>
  
  <p>in file <strong>catalog/controller/product/product.php</strong> I added this</p>
  
  <pre><code>$data['weight'] = $this-&gt;weight-&gt;format($product_info['weight'],$product_info['weight_class_id']);
  </code></pre>
  
  <p>and in <strong>/catalog/view/theme/theme/template/product/product.tpl</strong> I added this</p>
  
  <pre><code>        &lt;ul class="volume"&gt;
            &lt;?php if ($weight &gt; 0) { ?&gt;
            &lt;li&gt;&lt;?php echo $weight; ?&gt;&lt;/li&gt;
            &lt;?php } ?&gt;
          &lt;/ul&gt;
  </code></pre>
  
  <p>and it works. But, when I tried to add this to <strong>/catalog/view/theme/theme/template/common/product/default.tpl</strong> it shows "undefined variable" error. </p>
  
  <p>What could be the problem? Which part did I miss?</p>
  
  <p>Any input from you all will be very much appreciated. Thanks!</p>