Print Page | Close Window

Hiding a Specific Category from Search

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=3304
Printed Date: 21-July-2025 at 4:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hiding a Specific Category from Search
Posted By: hollehock
Subject: Hiding a Specific Category from Search
Date 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?
 



Replies:
Posted By: ProductCart
Date 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 - http://wiki.earlyimpact.com/how_to/links_to_hidden_products

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: hollehock
Date 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?


Posted By: Greg Dinger
Date 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.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: stsomeware
Date 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_productsB - 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



Posted By: Greg Dinger
Date 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 http://www.compareandmerge.com - 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.  


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: ProductCart
Date 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 - http://wiki.earlyimpact.com/how_to/links_to_hidden_products#productcart_v4

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: hollehock
Date 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?


Posted By: Greg Dinger
Date Posted: 23-December-2009 at 11:02am
I've looked at http://www.thelifeguardstore.com/productcart/pc/home.asp - 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?

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: hollehock
Date Posted: 23-December-2009 at 11:28am

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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net