Show sub types in navigation with linked lists

5 posts by 2 authors in: Forums > CMS Builder
Last Post: December 8, 2009   (RSS)

Hi guys,

I am using a category >> sub category method of presenting products using for a lawnmower retailer.

I am not using category sections, instead I have created a product_category and product_sub_category section, and then a product table that when the user selects a product_category, the product_sub_category list autopopulates in the backend (I followed a thread on your forum doing this with Countries and States which I have used on another site successfully).

So the backend is working fine.

With the front end, I am trying to work out the best way to do the navigation. One way is to hard code the categories (not ideal), but I don't now how to show the sub categories.

What would be ideal (and may require some custom work for you guys to do) is that the product_categories are listed on the home page, and when a user selects the category, the product page is presented and the navigation now shows that category expanded to show sub-categories (and also shows all the products).

The old site shows this being executed (see http://www.dawnmowersonline.com.au/products.php?category=2 as an example), so if we can reproduce this, that would be good.

Thanks in advance. I have attached files for your perusal.

Cheers,

B
Attachments:

archive.zip 6K

Re: [benedict] Show sub types in navigation with linked lists

Hi guys,

Any word on this?

Re: [chris] Show sub types in navigation with linked lists

OK:

1. we have a product_types section with one field: product_types (text field)

2. we have a product_sub_types section with two fields: product_types (list that looks up product_types) and product_sub_types (text field)

3. We have a products section with the following fields:

product_name
product_type
product_sub_type
brand
description
hidden

product_type is a list field that pulls it values from product_types
product_sub_type is a list field that uses the "get options from MYSQL query (advanced)" option with this query:

SELECT product_sub_types, product_sub_types FROM cms_product_sub_types WHERE product_types = '<?php echo $ESCAPED_FILTER_VALUE ?>'

Now that I've written that all out, to hell with that. Can you guys do it with consulting? Send me the quote and I'll shoot through the access details.

Cheers,

Benedict

Re: [benedict] Show sub types in navigation with linked lists

By Chris - December 8, 2009

Hi benedict,

I've sent you an email.
All the best,
Chris