|
Separate Category Tree and Product Listing Areas
|
Previous Top Next |
| · | $categories = "on"; With categories set to on, the category tree appears within the product listing area, to the left of the product listings.
|
| · | $categories = "off"; With categories set to off, the category tree does not appear within the product listing area. It may still be included separately in a different location within the page. see Include Category Tree below.
|
| · | $search = "off"; The search box does not appear in the page.
|
| Example:
|
| <?php
|
| $search = "off"; $categories = "off"; $catalog = "shop.html"; include "catalogue.php";
|
| ?>
|
|
|
| · | $search = "find.html"; The search box is activated and it appears above the product listings. Use this same include method to create a second page where the search results will appear. The search results page can be a copy of the catalog page with a different file name or it may be a different design, but it must exist and it must have this catalogue.php include in the page. In the example file that is included with the AShop Deluxe new installation file package, find.html is simply a copy of the shop.html page and the file name has been changed.
|
| · | $search = "shop.html"; The search box is activated and it appears above the product listings. In this case, the search results page is same as the catalog= page so that the search results will appear in the same page. (Change the filename to match the actual file in your site.)
|
| IMPORTANT! For search results to appear in the same catalog page, an if statement must be added in the php code.
|
|
|
| <?php
|
| $search="shop.html"; $categories = "off"; $catalog = "shop.html"; if (!$searchstring) include "catalogue.php"; else include "search.php";
|
| ?>
|