hideCategories

Views: 105,228

Results 81 to 100 of 488
21 Sep 2007, 7:49 PM
#81
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

hideCategories

Right on! That's the way it should work. ZenCart gave me the platform to make a contrib, which I give to [whoever] to improve upon and make it work better!

Contribs are difficult to maintain unless they are very simple. They are usually made to satisfy a very specific need, as was the case here. I "generalized" it a bit so that I could release it as a contrib, but to fit your specific needs... you get the idea.

So I'm glad you understand I don't have the time to maintain it, but appreciate the contribution anyway! Thank you.

  • Steven
22 Sep 2007, 4:46 AM
#82
redheads avatar

redheads

Zen Follower

Join Date:
May 2006
Posts:
119
Plugin Contributions:
0

Re: hideCategories

Has anyone else tried using this mod with the zen-cart and gallery2 interface?? :lookaroun

I have installed a newest version zen-cart, a newest version Gallery2, and interfaced them. That is nice, I like it so far for the most part.

The only mod I have installed on the zen-cart is this one, hoping that the photographer can hide the private events from the main page, but share a URL so people can view their wedding pics, etc... it seemed like a good plan - LOL :frusty: I have the mod on another cart so am familiar with it (it works PERFECTLY there, BTW) and am sure it has been installed/configured correctly.

I suppose the interface between the cart and gallery somehow makes the 'hide' ineffective, though it appears to work in the category edit - icons update, etc... :unsure:
Can it be that the categories are actually virtual folders and they will not respond to this mod?

If anyone HAS been able to get this to work please let me know so I can continue troubleshooting. For now, I have to assume it is a limitation of the merge.

26 Sep 2007, 5:32 AM
#83
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: hideCategories

CyberWoolf:

This mod is awesome!! I love it.. I even figured out how to password protect the categories using htaccess and sefu with access to different users woo

I was wondering though... when I search via the sidebox search the products in the category still show up. It doesnt with advanced search but with the sidebox.. how do I have it not show up in the sidebox search?

Hey CyberWoolf can you post your solution.

Thanks
Supersnow

20 Oct 2007, 7:17 PM
#84
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: hideCategories

I'm quite in a hurry so I didn't have time to flip through the whole topic so hope anyone hasn't asked this yet.

Could it be possible to set all 0 qty products automaticly to hidden? Since we use social bookmarking mod it would be useful to have those products around even though they'd be sold out but still hidden from the menu..

20 Oct 2007, 10:10 PM
#85
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: hideCategories

Yes, that's possible. But, of course, just about anything is :)

It would clearly have to be modded and it wouldn't be that simple of a mod but I'm sure you can do it.

8 Nov 2007, 4:14 PM
#86
hifipj avatar

hifipj

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: hideCategories

Hi,

I just installed this mod on my ZC, which uses the Cherry Zen template. It works to hide the item (I made a Hidden Category, with 1 product in it) from searches and the "new items" listing, but in my Sidebox, the Hidden category is showing with 1 product in it. I tried all variations on the hidecategories setup to no avail, nothing I do seems to take this hidden category out of the sidebox even when I choose the totally hidden option.

If anyone can tell me what I must change to fix this, I'd be very very grateful!!!

Thanks,
Patrick

8 Nov 2007, 4:46 PM
#87
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: hideCategories

Sadly, I think all I can really say is to read the included readme file for instructions. You have to change something in your template probably.

  • Steven
9 Nov 2007, 6:53 AM
#88
hifipj avatar

hifipj

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: hideCategories

Hi Steven,

Strangely, I was able to get it to work the proper way (item shows with direct link, but not in the sideboxes, searches, or in new items). But the workaround was strange. I had to first make the category hidden using HideCategories. Then turn the category off completely (giving a red icon). Then go into the category and manually turn on the 2 products in there (green icon). After that, and reloading the page, the category stopped showing up in the CherryZen sidebox and the items don't come up in searches or new products, but they still work for a direct link.

Best,
Patrick

ps--thanks for your contribution, helped me a lot.

15 Nov 2007, 6:00 AM
#89
zivkong avatar

zivkong

New Zenner

Join Date:
Oct 2007
Posts:
12
Plugin Contributions:
0

Re: hideCategories

i just want to ask whether izzit possible to use hidecategories with yahootreemenu?

15 Nov 2007, 6:29 AM
#90
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: hideCategories

I have no idea what that is. So I'm gonna say "no"

26 Nov 2007, 7:24 PM
#91
eddierosenthal avatar

eddierosenthal

New Zenner

Join Date:
May 2007
Posts:
19
Plugin Contributions:
0

Re: hideCategories

could you elaborate on how you installed it?
i must have installed this contrib incorrectly somehow :huh:
i hand copied all the files listed to the correct dirs and sub dirs,
i can see the new table has three rows ( where i have first created a category then edited it and chosen to give it only direct links.
however, the categories still show up ( along with the other categories)
so i wonder which php file is either missing or not copied right.
i have double checked everything...

27 Nov 2007, 12:00 AM
#92
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: hideCategories

poosk:

I'm quite in a hurry so I didn't have time to flip through the whole topic so hope anyone hasn't asked this yet.

Could it be possible to set all 0 qty products automaticly to hidden? Since we use social bookmarking mod it would be useful to have those products around even though they'd be sold out but still hidden from the menu..

Still thinking about this.. would it be hard to hide PRODUCTS from listings instead of the whole categories?

27 Nov 2007, 1:39 AM
#93
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: hideCategories

Poosk... Probably no harder, no... but a completely different mod as it affects totally different files. Its a good idea, but it won't be part of this contrib.

Eddie... can't really elaborate any more than what's in the readme. Follow it step-by-step. If there's a particular step that you're stuck on let us know but be specific.

  • Steven
28 Nov 2007, 3:25 AM
#94
trebor79 avatar

trebor79

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: hideCategories

After installing the mod, I noticed that there were a few places where my hidden categories were still showing (Site Map, Customers who bought this product also purchased...).

I haven't seen any posts for solutions to hiding in Site Map & Customers who bought... sections, so I thought I'd post my ideas. I use Zen-Cart 1.3.7 too, BTW.

Here's how I stopped the categories from showing in Site Map & individual products from w/in a hidden category from being shown in Customers who bought...

Customers who bought...
go to: /includes/classes/db/mysql/define_queries.php
and find the section that starts w/ DEFINE('SQL_ALSO_PURCHASED' and make it look like this:

DEFINE('SQL_ALSO_PURCHASED', "select p.products_id, p.products_image
                     from " . TABLE_ORDERS_PRODUCTS . " opa, " . TABLE_ORDERS_PRODUCTS . " opb, "
                            . TABLE_ORDERS . " o, " . TABLE_PRODUCTS . " p LEFT JOIN "
			    . TABLE_HIDE_CATEGORIES . " h ON (p.master_categories_id = h.categories_id)
		     where (h.visibility_status < 2 OR h.visibility_status IS NULL)
                     and opa.products_id = '%s'
                     and opa.orders_id = opb.orders_id
                     and opb.products_id != '%s'
                     and opb.products_id = p.products_id
                     and opb.orders_id = o.orders_id
                     and p.products_status = 1
                     group by p.products_id
                     order by o.date_purchased desc
                     limit " . MAX_DISPLAY_ALSO_PURCHASED);

Now for the Site Map
go to: /includes/classes/site_map.php
On or around line 37 (depending if you've edited this file before) & make sure it looks like this:

$categories_query = "select c.categories_id, cd.categories_name, c.parent_id
	from " . TABLE_CATEGORIES . " c LEFT JOIN "
	. TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), "
	. TABLE_CATEGORIES_DESCRIPTION . " cd
	where (h.visibility_status < 2 OR h.visibility_status IS NULL)
	and c.categories_id = cd.categories_id
	and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
	and c.categories_status != '0'
	order by c.parent_id, c.sort_order, cd.categories_name";

These changes should work. Mileage may vary. Make a copy of these files & backup before editing them in case something looks screwy afterwords.

I hope this is useful to someone out there.

Shawn
Es Developed - Website & Graphic Design
www.esdev.net

28 Nov 2007, 3:54 AM
#95
trebor79 avatar

trebor79

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: hideCategories

I also forgot something. After I made the changes I posted above, I still had an issue.

If you have more than one product in a hidden category, visitors who are able to view one of your 'hidden' products will be able to use the previous/next buttons at the top of the product page to browse to your other hidden products w/in that same category. Depending on your situation, this may be undesirable.

Of course, you could edit the listing template, but this might be destructive if you wanted to show the buttons later on down the road. This is a non-destructive alternative using the CSS stylesheet.

Hide the Previous Next Buttons
A simple CSS rule will fix it. This is useful if you have multiple products in a hidden category that you don't want customers to be able to browse to easily.

NOTE: This will also hide those buttons in every category throughout your site (hidden or not), so use wisely. You might be able to narrow it down to only affect certain pages, but not very easily, I don't think.

Go to: stylesheet.css in includes/templates/css/ and add a rule to your css:

.navNextPrevWrapper { display: none; }

The rule will hide the whole section from prying eyes, but still allow you to make it visible later if you so desire.

Hope this isn't too off-topic.

Shawn
Es Developed - Website & Graphic Design
www.esdev.net

28 Nov 2007, 2:52 PM
#96
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,449
Plugin Contributions:
3

Re: hideCategories

Just a thought... I'm not programmer but maybe this will help.

Instead of using the "Product General" you can use any of the other product types to create your hidden category. This way you could take out those previous, listing, next buttons without compromising the regular products.

Oh! and Trevor... I haven't used your hacks but I will try them, looks like great options.

IDEASLady
IDEAS Creative Studio

Your image... our business!

28 Nov 2007, 7:46 PM
#97
trebor79 avatar

trebor79

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: hideCategories

ideasgirl:

Instead of using the "Product General" you can use any of the other product types to create your hidden category. This way you could take out those previous, listing, next buttons without compromising the regular products.

I didn't realize there was an option for that. Hmm... I'm still learning :lookaroun

My css hack works for me on the project I finished. I'll keep this in mind though for next time; thanks.

If you care, it's www.earpops.com

Shawn
Es Developed - Website & Graphic Design
www.esdev.net

26 Dec 2007, 12:36 AM
#98
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: hideCategories

Is their an example of this mod on a test or live site, if so can someone put up a link to it?

Rich People scream, Wealthy people whisper

https://www.cooltechcentral.com

26 Dec 2007, 1:07 AM
#99
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: hideCategories

You mean like the link in the post above yours? :)

Seriously, you are only going to be able to see the effect of the mod by having admin access to a site, or the site owner giving you a link to a hidden category on their site.

26 Dec 2007, 9:59 PM
#100
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: hideCategories

Exactly. Although... you can sort of see it.

Go to this site: https://www.smartieparts.com

Search for "oem floor mats" and a couple things should come up. You won't find either of those items by way of the menu or categories. That is an example of a search-only category. I don't think that sites use any fully hidden ones that don't show up with search either.

  • Steven