Page 1 of 1
new field to display in Home page latest products
Posted: Thu May 26, 2011 2:41 am
by testingbykumar
Hello All ,
I want to display a new field in Home page - Latest product below to Product Review. How do I show it
I am using Version 1.4.9.4
Help me in this
HP LP3065
Product 21
Location
Re: new field to display in Home page latest products
Posted: Thu May 26, 2011 4:31 am
by inactiveaccount9912
In the controller
add
Code: Select all
'location' => $result['location'],
after line
And in tpl , wherever you want it to appear
Code: Select all
<?php echo $products[$j]['location']; ?>
Hope this works.
Re: new field to display in Home page latest products
Posted: Thu May 26, 2011 12:02 pm
by testingbykumar
Hello florinsith
It works fine. Thank you. Below will help for others.
PHP File :
/catalog/controller/module/latest.php
TPL File :
catalog/view/theme/default/template/module/latest_home.tpl
Re: new field to display in Home page latest products
Posted: Tue Feb 07, 2012 10:05 am
by adimort
I have been searching the forums and hacking away at the code like a mad man but cant figure out at all how to get the stock_status to appear within the featured_modules, latest_module etc which is displayed on the index page of the site.
when i insert what i think is the correct code all i get is:
Notice: Undefined index: stock in C:\wamp\www\catalog\controller\module\latest.php on line 57
please could anyone help me with this?!