Post by testingbykumar » Thu May 26, 2011 2:41 am

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


Posts

Joined
Fri Apr 15, 2011 1:25 am

Post by inactiveaccount9912 » Thu May 26, 2011 4:31 am

In the controller
add

Code: Select all

'location'   		=> $result['location'],
after line

Code: Select all

'model'   		=> $result['model'],
And in tpl , wherever you want it to appear

Code: Select all

<?php echo $products[$j]['location']; ?>
Hope this works.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by testingbykumar » Thu May 26, 2011 12:02 pm

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


Posts

Joined
Fri Apr 15, 2011 1:25 am

Post by adimort » Tue Feb 07, 2012 10:05 am

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?!

Newbie

Posts

Joined
Fri Feb 03, 2012 9:30 am
Who is online

Users browsing this forum: No registered users and 5 guests