Forums / General Questions / Help Featured Products & New Products centerbox

Help Featured Products & New Products centerbox

Views: 693

Results 1 to 3 of 3
6 Jun 2011, 8:55 PM
#1
shahram avatar

shahram

Zen Follower

Join Date:
Jul 2009
Location:
New York
Posts:
122
Plugin Contributions:
1

Help Featured Products & New Products centerbox

Hi i have question about the center box there is anyway to show product model on the font page Center Box ? i guess i have to add some code in includes/modules/template/featured_products.php and includes/modules/template/new_products.php but i don`t know what code and where i have to add the code i like to show product model under the price> help please :unsure:

6 Jun 2011, 10:14 PM
#2
celtic avatar

celtic

Zen Follower

Join Date:
Feb 2010
Posts:
154
Plugin Contributions:
0

Re: Help Featured Products & New Products centerbox

shahram,

yes, in those files you'll need to add (without the quotes) 'p.products_model' to each of the sql statements (ie. $new_products_query and $featured_products_query)

then, on about line 72, you'll need to add:

. "<br>".$new_products->fields['products_model']

at the end of the line just after $products_price but before the close bracket.

7 Jun 2011, 2:12 AM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Help Featured Products & New Products centerbox

Simple nice :smile: but if you want the wording: Model: in front of the numbers you have to add this:

this is for the includes/ modules/ featured_products.php

$products_price . '<br />' . 'Model: ' . $featured_products->fields['products_model']);
```this is for the includes/ modules/ new_products.php
```php
$products_price . '<br />' . 'Model: ' . $new_products->fields['products_model']);

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.