Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customizing What's New center box

Customizing What's New center box

Views: 527

Results 1 to 4 of 4
1 Aug 2011, 12:13 AM
#1
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Customizing What's New center box

I read in an "older" thread how to exclude 0 quantity products from the What's New For month center box

Opening /includes/modules/custom/new_products.php, in section

$new_products_query

It was stated to add this code

and p.products_quantity > 0

placed below

pd.language_id = '" . (int)$_SESSION['languages_id'] . "'

I'm trying to do the same thing in a 1.3.9d cart but it is not working.

Should the added code be written a little differently for this version cart?

1 Aug 2011, 12:40 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customizing What's New center box

Make sure to add it to both of the select statements in that file ...

1 Aug 2011, 1:03 AM
#3
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: Customizing What's New center box

Thank you! That's what was missing. It's now working.

1 Aug 2011, 1:41 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customizing What's New center box

Thanks for the update that you have this working now ... :smile:

NOTE: the current version of Zen Cart is v1.3.9h and you should really upgrade to that, especially since it's a quick simple upgrade from your v1.3.9d ...