Forums / Templates, Stylesheets, Page Layout / cutting certain categories from the "featured" and "new" products boxes

cutting certain categories from the "featured" and "new" products boxes

Locked

Started by get_bucked on 17 Nov 2008, 10:46 PM · Views: 2,366

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
17 Nov 2008, 10:46 PM
#1
get_bucked avatar

get_bucked

New Zenner

Join Date:
Oct 2008
Location:
Sydney, Oz-land
Posts:
45
Plugin Contributions:
0

cutting certain categories from the "featured" and "new" products boxes

Hi all,
Just wondering how I would stop one of my categories' products from showing up in the "new products" and "featured products" boxes please?
Many thanks, Mark

21 Nov 2008, 5:31 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: cutting certain categories from the "featured" and "new" products boxes

If you don't want them to be Featured Products either remove them from the Featured Products list or set the status to disabled ... the red dot ...

If you don't want them to be New Products you can change their Date Added to older than your current setting for what is a New Product ...

Would those work for you?

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!

24 Nov 2008, 3:10 AM
#3
get_bucked avatar

get_bucked

New Zenner

Join Date:
Oct 2008
Location:
Sydney, Oz-land
Posts:
45
Plugin Contributions:
0

Re: cutting certain categories from the "featured" and "new" products boxes

Ajeh:

If you don't want them to be Featured Products either remove them from the Featured Products list or set the status to disabled ... the red dot ...

If you don't want them to be New Products you can change their Date Added to older than your current setting for what is a New Product ...

Would those work for you?

as a matter of fact they would. Thanks.

1 Dec 2008, 5:58 AM
#4
freya avatar

freya

Zen Follower

Join Date:
Mar 2006
Posts:
122
Plugin Contributions:
0

Re: cutting certain categories from the "featured" and "new" products boxes

How do you remove them from the featured products list? There is a delete button in this list, but deleting makes me nervous. (grin)

Thanks,

Marci

Marci Baun, Publisher
http://www.wildchildpublishing.com/ -- Break free...read wild!
http://www.freyasbower.com/ -- Weaving passion into words...

1 Dec 2008, 2:57 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: cutting certain categories from the "featured" and "new" products boxes

Featured Products are stored in the featured table so deleting them from the Featured Products in the Admin is just going to remove them from the featured table so they will not be referenced ...

As always, be safe and make a backup of your database on a regular basis ...

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!

4 Jan 2009, 12:17 PM
#6
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: cutting certain categories from the "featured" and "new" products boxes

My circumstances are such that altering the date via the admin doesn't suffice. I have my New Product Listing - Limited to ... set to 0 so that all products remain as new. However, I would like to block one, single category from appearing as new. Is this possible?

Thanks

4 Jan 2009, 3:08 PM
#7
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: cutting certain categories from the "featured" and "new" products boxes

MeltDown:

My circumstances are such that altering the date via the admin doesn't suffice. I have my New Product Listing - Limited to ... set to 0 so that all products remain as new. However, I would like to block one, single category from appearing as new. Is this possible?

Thanks
This thread gave the info I needed to address this issue.

6 Jan 2009, 7:24 AM
#8
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: cutting certain categories from the "featured" and "new" products boxes

Blocking sold items from being displayed in New Products by inserting and p.products_quantity > 0 did solve that issue. However, I still need to block one, single category from appearing as new. Is this possible?

6 Jan 2009, 7:58 AM
#9
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: cutting certain categories from the "featured" and "new" products boxes

OK, I believe that I worked this out, as well. To resolve my issue, I edited includes/modules/pages/products_new/header_php.php (There is no override file - Please save a backup). Find this snippet of code:

WHERE p.products_status = 1

and add the following underneath (26 being the number of the category being blocked):

and p.master_categories_id != 26

and includes/modules/your_template/new_products.php. Find this snippet of code:

where p.products_id = pd.products_id

and add the following underneath (26 being the number of the category being blocked):

and p.master_categories_id != 26

I've found that you can also block the subcatagories by following the same procedure. Here I've also blocked sub cat 27:

and p.master_categories_id != 26
and p.master_categories_id != 27