Forums / General Questions / Remove "Documents" Cateogories from all products

Remove "Documents" Cateogories from all products

Locked

Views: 1,679

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
22 Nov 2007, 10:50 PM
#1
dman76 avatar

dman76

Zen Follower

Join Date:
Jun 2007
Posts:
107
Plugin Contributions:
0

Remove "Documents" Cateogories from all products

I just figured out how to remove documents general products from the search. I would also like to remove them from showing when you click on All Products or New Products. I am thinking it may have something to do with editing
/includes/modules/pages/products_all/header_php.php but couldn't figure out what line to add to exclude a category.

While we are on this subject, I would also like to be able to remove those catgeories from the top header if I have my categories listed up there.

Thank you.

23 Nov 2007, 3:04 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Remove "Documents" Cateogories from all products

To remove various Product Types from select statements you can use the field products_type that is in the products table ...

This matches to the settings in the table: product_types

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 2007, 8:37 AM
#3
dman76 avatar

dman76

Zen Follower

Join Date:
Jun 2007
Posts:
107
Plugin Contributions:
0

Re: Remove "Documents" Cateogories from all products

Im not quite sure what you mean here. Do you mean add that line to the file I mentioned? Or is it a different file?

24 Nov 2007, 9:57 AM
#4
dman76 avatar

dman76

Zen Follower

Join Date:
Jun 2007
Posts:
107
Plugin Contributions:
0

Re: Remove "Documents" Cateogories from all products

I found one of your old posts and just figured out how to remove it from the all products and new products but adding the line

AND master_categories_id != 23

Does that work the same way to remove it from the categories list that would appear on the top header bar of I enable it? And if so, where is the file located?

25 Nov 2007, 3:33 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Remove "Documents" Cateogories from all products

Using something similar such as:

and products_type != 3

is more or less the same idea here ... :smile:

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!

25 Nov 2007, 4:09 AM
#6
dman76 avatar

dman76

Zen Follower

Join Date:
Jun 2007
Posts:
107
Plugin Contributions:
0

Re: Remove "Documents" Cateogories from all products

Ok, but where is the file located that would show the categories along the top?

25 Nov 2007, 11:57 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Remove "Documents" Cateogories from all products

You have me confused now ... :unsure:

First you said you wanted to remove the Document Products from the Listings ... and now you are asking about category tabs ...

What are you really wanting to do?

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!

26 Nov 2007, 9:06 PM
#8
dman76 avatar

dman76

Zen Follower

Join Date:
Jun 2007
Posts:
107
Plugin Contributions:
0

Re: Remove "Documents" Cateogories from all products

You know how you can have the categories listed across the top in addition to having them in the sidebox? When they are in the sideboxes, the "Products" show up under Categories and the "Documents" show up in a separate Document sidebox. Those are fine because then I have them separate. However, if I select to have the categories show up on the top bar, it lists all categories AND documents. I would like to be able to just have the actual product categories listed up there and not show the document categories.

26 Nov 2007, 9:35 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Remove "Documents" Cateogories from all products

Aha! A clue! :smile:

You would want to customize the module for the categories_tabs.php and include in the SELECT something like LEFT JOIN to the table product_types_to_category to know what categories_id to exclude as that is where it is stored ...

This could then filter out the categories you do not want to display ...

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 Dec 2007, 7:00 PM
#10
dman76 avatar

dman76

Zen Follower

Join Date:
Jun 2007
Posts:
107
Plugin Contributions:
0

Re: Remove "Documents" Cateogories from all products

Ok that makes sense. I think I am finally getting to the point where it makes sense to me WHERE to change things but I am still learning how. Like I know I would have to change something in this file, but I am still not exactly sure what unless it is spelled out for me. I hate to keep asking to have things spelled out for me, so is there a good place to learn basic commands to add or remove things? But in the meantime, if you wouldn't mind telling me how to remove a category from this that woudl be gread! I am not sure what you mean by LEFT JOIN. Thank you again for all your help.