I have been trying to display custom data in Opencart Home page page and I'm unable to locate the controller from where the data is sent to the .tpl file. And I am using pavo flshshop theme 2.0.3. I have added the data in catalog/controller/product/product.php
( which I am not sure right controller or not ) file. When I call that variable in the .tpl file its says "undefined variable". Someone please help me with from where the data is coming.
This is my .tpl path:
C:\xampp\htdocs\grceducators\catalog\view\theme\pav_flashshop\template\common\product\default.tpl
Here is the default.tpl code:
<div class="product-meta clearfix">
<h6 class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h6>
<h6 class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['custom_desc']; ?></a></h6>
<?php if( isset($product['description']) ){ ?>
<p class="description"><?php echo utf8_substr( strip_tags($product['description']),0,200);?>...</p>
<?php } ?>
<div class="bottom clearfix">
<?php if ($product['price']) { ?>
<div class="price">
<?php if (!$product['special']) { ?>
<span class="price-new"><?php echo $product['price']; ?></span>
<?php } else { ?>
<span class="price-new"><?php echo $product['special']; ?></span><span class="price-old"><?php echo $product['price']; ?></span>
<?php } ?>
</div>
<?php } ?>
<?php if ($product['description']) { ?>
<div class="price">
<span class="price-new"><?php echo $product['custom_desc']; ?></span>
</div>
<?php } ?>
</div>
</div>
Any help will be appreciated.