I'm a newbie to opencart .So ,can anyone may teach me how to display weight and weight unit in the featured box beside the price .I knew need to add somethings like <?php echo $weight ; ?> but it displays nothing. Appreciate for your help .
I solved the problem above.And i'm glad that i can share somethings here to help others.
catalog/controller/module/featured.php
After
Add this
Go to catalog/view/theme/default/template/module/featured.tpl
After line11
Add this
should be ok 
catalog/controller/module/featured.php
After
Code: Select all
$this->data['products'][] = array(
Code: Select all
'weight' => $product_info['weight'],
'weight_class' => $product_info['weight_class'],
After
Code: Select all
<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
Add this
Code: Select all
(<?php echo $product['weight']; ?><?php echo $product['weight_class']; ?> )

Who is online
Users browsing this forum: No registered users and 92 guests