If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / I don't want to display free products in new products

I don't want to display free products in new products

Started by nicenecouncilcom on 13 Dec 2011, 7:26 PM · Views: 687

Results 1 to 7 of 7
13 Dec 2011, 7:26 PM
#1
nicenecouncilcom avatar

nicenecouncilcom

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Post #1 by nicenecouncilcom

I am adding a lot of free ebooks to our site. However, they constantly show up in the new products section. Is there a way to keep them out of the new products section?

13 Dec 2011, 7:47 PM
#2
nicenecouncilcom avatar

nicenecouncilcom

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Post #2 by nicenecouncilcom

Can I just turn of this particular category to show in new products?

13 Dec 2011, 7:51 PM
#3
ajeh avatar

ajeh

Oba-san

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

Post #3 by ajeh

Do you mark your Free Products as Product is Free? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Dec 2011, 8:03 PM
#4
nicenecouncilcom avatar

nicenecouncilcom

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Post #4 by nicenecouncilcom

yes I do

13 Dec 2011, 11:26 PM
#5
ajeh avatar

ajeh

Oba-san

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

Post #5 by ajeh

You can customize the SQL statements ... using your templates and overrides and add to them:

and p.product_is_free = 0

Example: for the New Products center box, copy the file:
/includes/modules/new_products.php

to your templates and overrides directory:
/includes/modules/your_template_dir/new_products.php

And change the SQL statements to:

  $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
                                p.products_date_added, p.products_price, p.products_type, p.master_categories_id
                           from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                           where p.products_id = pd.products_id
                           and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                           and p.product_is_free = 0
                           and   p.products_status = 1 " . $display_limit;

NOTE: many of the files have multiple SQL statements so add it to them all ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Jun 2012, 11:45 AM
#6
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Post #6 by jmsnyder23

I have the opposite problem ~ I DO want the free products to show on the new products page. Problem is, they don't. They appear in the center box, but not on the separate page. I've searched the code but don't see why this might be.

Any ideas?

1 Jun 2012, 1:00 PM
#7
ajeh avatar

ajeh

Oba-san

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

Post #7 by ajeh

What is the New Products setting for the Configuration ... Maximum Value ...

New Product Listing - Limited to ...
Limit the New Product Listing to
0= All Products
1= Current Month
7= 7 Days
14= 14 Days
30= 30 Days
60= 60 Days
90= 90 Days
120= 120 Days

How new are the Free Products that are not showing?

Have you an URL to one of these Products that is not showing in the New Products list?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!