ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Hiding a Specific Category from Search
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hiding a Specific Category from Search

 Post Reply Post Reply
Author
Message
hollehock View Drop Down
Newbie
Newbie


Joined: 24-January-2009
Location: Chicago, IL
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote hollehock Quote  Post ReplyReply Direct Link To This Post Topic: Hiding a Specific Category from Search
    Posted: 22-December-2009 at 4:23pm

I have a unique issue that worked when the cart was simple back about 4 versions ago.  I am happy with all the revisions but now something that was simple is much harder to do.

I need to HIDE a SPECIFIC Category and ALL of the sub category PRODUCTS from being SEARCHED on.  I have the category hidden from the public (wholesale only) so I can't have the category viewed at all either.
 
So I need:
  1. To NOT see a specific Category in the navigation
  2. To NOT have anything within that specific Category be able to be found with a search
  3. BUT to HAVE all the products in that category visble by links.  So if I had a direct link to that product it would show.
If I simply hide a catgory it also hides the products. 
 
Is this possible with version 4.0?
 
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 22-December-2009 at 6:12pm
This can be accomplished with a small code change. For details, please see the ProductCart documentation at: http://wiki.earlyimpact.com/how_to/links_to_hidden_products
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
hollehock View Drop Down
Newbie
Newbie


Joined: 24-January-2009
Location: Chicago, IL
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote hollehock Quote  Post ReplyReply Direct Link To This Post Posted: 22-December-2009 at 7:34pm
Thank you - that is about what we need to do.  I did as the code/link indicated and now I'm getting a "500 internal error" because the links won't display at all for anything in the hidden category.  It seems like a simple fix ~ however I followed step by step...did I over look something that may not have been in the instructions?
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 22-December-2009 at 7:40pm
A - check your advanced browser settings and uncheck "show friendly http error messages"
B - commented out the first "on error resume next" in /includes/opendb.asp
 
Do the above and you may have better information as to what the real error is.
Back to Top
stsomeware View Drop Down
Newbie
Newbie
Avatar

Joined: 15-April-2009
Location: Orlando, Florid
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote stsomeware Quote  Post ReplyReply Direct Link To This Post Posted: 22-December-2009 at 10:10pm
When we add the code referenced in the link: http://wiki.earlyimpact.com/how_to/links_to_hidden_products
 
but now get an error on all products:
Microsoft VBScript compilation error '800a03f6'

Expected 'End'

D:\WEB\THELIFEGUARDSTORE.COM\PRODUCTCART\PC\../../productcart/pc/inc_footer.asp, line 48

Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 22-December-2009 at 10:26pm
Well, somewhere in the page you have a mis-matched if/end if pair.  Without seeing the code, it's not possible to determine exactly where, but that's what you need to be looking for.
 
Hopefully you have the prior version of the page as a backup.  I'd suggest you use something like www.compareandmerge.com (other such tools are also available) to compare the current and altered versions of the page - then try to identify where an "end if" was lost.
 
BTW, if you are new to PC, you will find that it is helpful to your client's SEO potential by renaming the "productcart" folder to some word (or words) that would be the most important keyword in the store.  
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 23-December-2009 at 3:20am
We updated the code in the WIKI. There was an "end if" missing at the end of the last block of code. http://wiki.earlyimpact.com/how_to/links_to_hidden_products#productcart_v4
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
hollehock View Drop Down
Newbie
Newbie


Joined: 24-January-2009
Location: Chicago, IL
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote hollehock Quote  Post ReplyReply Direct Link To This Post Posted: 23-December-2009 at 10:43am
Greetings.
We got everything to work, preview...etc.  Thank you!
Last issue....I have this tested in 3 browsers on the Macintosh and the preview works fine. I have it tested in 5 browsers on my PC on the desktop and the preveiw works fine.  BUT on my laptop, NOTHING previews.  I know it's now computer related but at the office who the site is being built for has the same issues.  One computer can see it in IE and one computer can't.  all are on IE8...history cleaned out...etc.
Thoughts?
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 23-December-2009 at 11:02am
I've looked at http://www.thelifeguardstore.com/productcart/pc/home.asp in IE8, FF3 and Safari (on XP).  I can view the site just fine.  Perhaps if you were to get a screen capture that would help us understand what you are looking at.  Just to be clear, you are saying that nothing whatsoever appears?  Is this Win7 by any chance?
Back to Top
hollehock View Drop Down
Newbie
Newbie


Joined: 24-January-2009
Location: Chicago, IL
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote hollehock Quote  Post ReplyReply Direct Link To This Post Posted: 23-December-2009 at 11:28am

Disregard previous posting...we have it all figured out!  Thank you all so much!  Merry Christmas!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.