Dynamic Drop Downs navigation
Okay, so I created the dynamic drop down using the tutorial and it works well with one exception. When I click on a category it places all the products on the results page. Not just the ones for that category.
Help :)
Okay, so I created the dynamic drop down using the tutorial and it works well with one exception. When I click on a category it places all the products on the results page. Not just the ones for that category.
Help :)
I need more details, i also need a copy of the pages and a link to see the problem.
Hi Jason,
The website only lives on my local sever right now (while I'm developing it). Not sure if it will help but I will attach the files and images for the resulting webpages.
The first image show the first level drop down. When these are clicked the results page show all products from of the seven categories instead of just the category selected.
1) the results page is set to filter by category
edit the database search behavior on the results page to add a Categoty filter using the CategoryID url variable.
2) the databASe search behavior on the results page is set to trigger on a URL variable named search
your category links:
<a href="../../products_results.php?CategoryID=<?php echo $row_menuwriter_productcategories["CategoryID"]; ?>"><?php echo $row_menuwriter_productcategories["CategoryName"]; ?></a>
will need to contain the search URL variable:
<a href="../../products_results.php?CategoryID=<?php echo $row_menuwriter_productcategories["CategoryID"]; ?>&Search=Search"><?php echo $row_menuwriter_productcategories["CategoryName"]; ?></a>
Where is the code that I need to change? I looked on the results page but can't seem to find it.
the code for the links is in the CSSMenuWriter/cssmw0/menu.php
you dont need to edit code on the results page, you need to edit the Data Assist Search server behavior.
Hi Jason,
Thanks for the info but the results are the same. No matter what category I click on in returns the same results (it list all the products regardless of category)
?
are you asking to see the page again?
well, you made changes to the code, so i need to see the new pages to see the changes that where made in order to have any idea why the changes are not working...
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.