Forums / Templates, Stylesheets, Page Layout / Make specific categories not appear on main page?

Make specific categories not appear on main page?

Started by coreyalderin on 9 Dec 2012, 8:24 PM · Views: 1,027

Results 1 to 4 of 4
9 Dec 2012, 8:24 PM
#1
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Make specific categories not appear on main page?

Is there a way to make it so that specific categories do no appear on my homepage? I currently have 1 product and I want to add a new one. But I do not want the new product to appear on the homepage.

Thanks
Corey
http://www.toolsforchrist.com

9 Dec 2012, 8:35 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Make specific categories not appear on main page?

You could set the field:
products_date_added

in the table:
products

to be older than the dates you have set to be considered New Products in the Configuration ... Maxium Values for:

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

This could be done either via phpMyAdmin or via your Zen Cart Admin in the Tools ... Install SQL Patches ... with the SQL statement such as:

UPDATE products SET products_date_added = '2012-10-01 00:00:00' WHERE master_categories_id = XX;

where XX is the master_categories_id of the Products that you do not want to show and the date for the products_date_added is in the format of:
YYYY-MM-DD HH:MM:SS

that would be older than your setting on what is a New Product ...

Or, if you do want the real products_date_added to be maintained on each Product but block these Products from displaying, you could customize the code for the SQL statements to ignore Products from that categories_id based on the master_categories_id ...

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!

9 Dec 2012, 8:58 PM
#3
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Re: Make specific categories not appear on main page?

Maybe I can accomplish this differently if I tell you what I am doing. I am trying to have a place to buy gift certificates. I would like to just have an EZ page created that links directly to the page that you can buy them. Rather than having a category displayed. Is there something that can be done for this?

Thanks for the response.

10 Dec 2012, 6:27 PM
#4
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Re: Make specific categories not appear on main page?

I figured something out. I was able to do this in the admin setting by turning off the category but still having the products turned on. I didnt know this could be done. So now this category does not have a page, but I can still link to the product page.