managing categories and brands |
Post Reply |
Author | |
fischerj
Newbie Joined: 26-August-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 16-March-2007 at 2:24am |
I want to be able to setup my site so, when a user clicks on a category they will be directed to a page that has icons of all the brands within that category. I looked through the control panel and knowledge base and couldn't find anything. Any help would be great!
Justin |
|
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
You would need to customize viewcategories.asp. Brands are tied to products, not categories, so you would need to write a SQL query that would retrieve a distinct list of brands from the products in the selected category. You could look in the viewBrands.asp to see the code to load and display the brand icons.
|
|
fischerj
Newbie Joined: 26-August-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Thanks for the reply! That sounds like some serious editing. Any ideas of resources on doing these kinds of database queries?
Thanks for the help! |
|
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Are you pretty comfortable with ASP and SQL? Anyway, the basics of what you'll need to do are as follows. (Please note, this should be one long string but I split it into different lines for readability):
The "WHERE idBrand IN (...)" statement basically gets a unique list of the Brand IDs for the products in a specific category. You will need to change the section that says: categories_products.idCategory = idCategory by changing "= idCategory" to the actual category you are working with in viewCategories. Then the main query retrieves the brand info for brands with the BrandIDs for the products in the selected category. Hope this gives you a good starting point. If you still can't figure it out, you could hire one of the Product Cart developers. (We are one but there are others.) |
|
fischerj
Newbie Joined: 26-August-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Thanks for the detailed reply! I haven't had a chance to test it out yet, but I'll let you know the result.
Thanks again! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |