Print Page | Close Window

Menu Collapse

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=1476
Printed Date: 29-April-2024 at 10:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu Collapse
Posted By: steelheadbum
Subject: Menu Collapse
Date Posted: 22-March-2008 at 10:55pm
Does anyone know how to delete the +/- (collapse) function on the menu. Also so it doesn't over write itself every time you re-create your navigation using the Control Panel? 



Replies:
Posted By: Greg Dinger
Date Posted: 22-March-2008 at 11:09pm
The included file "inc_RetailCatMenu.inc" that contains the javascript and those image references is generated by "genCatNavigation.asp".  Search the forum for "genCatNavigation" and there are a number of earlier posts.

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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: Hamish
Date Posted: 24-March-2008 at 7:10pm
Have you looked at using the dynamic menus? - No more updating and no "+/-".
They are available from the developers corner on the Ealy Impact website.

Hamish 


Posted By: steelheadbum
Date Posted: 25-March-2008 at 1:14am
Is there a Dynamic menu for MsAccess for v3.11? SINGLE level only. Or can someone tell me how to modify the code for v2.76 Dynamic Navigation.  http://www.earlyimpact.com/productcart/support/developers.asp - http://www.earlyimpact.com/productcart/support/developers.as p


Posted By: Hamish
Date Posted: 26-March-2008 at 5:14am
Hi,
   I very strongly suspect the V2.76 version will work just as well for V3.11.
Is the "Show top level categories" version what you need - or do you wish to show the first level of sub-categories?


Posted By: steelheadbum
Date Posted: 26-March-2008 at 3:04pm
TOP level only


Posted By: steelheadbum
Date Posted: 26-March-2008 at 3:15pm
Also this code is for mySQL.


Posted By: Greg Dinger
Date Posted: 26-March-2008 at 3:23pm

<<<Also this code is for mySQL. >>>

Could you clarify that one?  Are you running ProductCart on mySQL? 



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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: steelheadbum
Date Posted: 26-March-2008 at 3:36pm

Code Snippets / Dynamic Navigation (ProductCart v2.76): http://www.earlyimpact.com/productcart/support/developers.asp#scripts - http://www.earlyimpact.com/productcart/support/developers.as p#scripts

For: Show top level categories - http://www.earlyimpact.com/productcart/support/code_samples/display_categories.zip - Download

I need a menu system using only top level categories using MsAccess DB.

 



Posted By: Greg Dinger
Date Posted: 26-March-2008 at 3:51pm

<<<mySQL="SELECT idCategory,categoryDesc FROM categories WHERE idParentCategory=1 AND idCategory<>1 AND iBTOhide=0 ORDER BY priority, categoryDesc ASC;">>>

In this context, "mySQL" is simply the name of the string that will contain the query which is about to be executed.  It could just as easily been "bigdangsteelie" or "wantabeer" or "whereslunch" so long as it is the name referenced in next statement that actually executes the query string:
set rsCategory=conlayout.execute(mySQL)

 

 



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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: Hamish
Date Posted: 26-March-2008 at 3:58pm
Hi,
  I agree with Greg here - Product Cart cannot be run against a MySQL DB according to the documentation. As far as I'm aware there is little or no difference in the SQL regardless of if it's using a MS Access or MS SQL DB.  If you want to try this out in a low risk way then create an alternative header file incorporating the changes as, say, headerb.asp & amend a page temporarily to use this alternate header file.


Posted By: Greg Dinger
Date Posted: 26-March-2008 at 4:05pm

Hamish - He's not trying to use a mySQL database.  He's using Access.

The confusion is that he saw the string name mySQL containing the query, and thought this implied that the code was using a mySQL database. 

I got yelled at by a client who thought the same thing, knew their site was using MSSQL, and basically knew enough to get herself in trouble but not enough to know the difference.  :)

The moment he posted the link, a light went on and I found just exactly what I figured I would see when I opened the script.

No big deal. 



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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: steelheadbum
Date Posted: 26-March-2008 at 4:17pm
so what do i do??


Posted By: Hamish
Date Posted: 26-March-2008 at 4:24pm
Hi Mike,
     Give it a try - No reason it shouldn't work. If you want then try it in an alternative copy of header.asp as suggested in my previous post.

Hi Greg - Perhaps I should have been clearer - I was just agreeing with you & trying to clarify that the MySQL was definitely not referring to a MySQL DB.


Posted By: Greg Dinger
Date Posted: 26-March-2008 at 5:01pm

<<<so what do i do?? >>>

As a general rule, the developers and users who post here are quite eager to direct folks to solutions. But some of what folks ask for involves being able to take those instructions or tips and turn them into solution.  Sometimes that means having a comfort level of installing or editing code.

If you are not comfortable with editing code or installing mods, hiring someone might be a solution that gets you moving forward. 

Hamish would presumably be very happy to hear from you, I already extended such an offer over the wekend, and there is a list on this site of other developers who offer their services.

Or you can ask specific questions, as you have, and we'll try to answer.  But in response to "what do I do now", Hamish already suggested creating an alternate copy of your header and experimenting with it.  Just keep a copy of what you know already works so you have a fallback.

Tight lines!



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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: steelheadbum
Date Posted: 26-March-2008 at 5:14pm

Thanks, I've been keeping back up copies. The last few messages just seemed like bickering... no offense. I had the code successfully I'm just trying to figure how to propperly add css/ the old css to this code.




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