User guide
AShop V User Guide32
AShop Software © Copyright 2002 - 2010
Category Tree below.
Search Box Options
· $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 V 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";
?>
Include the Category Tree
Include Category Tree In Catalog Page
Include the category tree in the same page where catalogue.php is included by inserting this PHP tag
into the page.
<?php
include "includes/categories.inc.php";
?>
Include Category Tree In Site Navigation
The category tree may be included in site navigation by adding a catalogue.php="shop.html" parameter.
This parameter points to the page where the product listings are to appear. For example, when the
category tree is in a page that does not have any way to show products and a category is selected, the
product listings for that category need a place to appear in a page. In these examples the product listing
page is shop.html. Change this to match the actual product listing page(s) in your site.
Insert the following php statement to include the category tree in a page where the catalogue.php include
is NOT present in the same page. IMPORTANT! The $catalog variable must precede the categories.inc.
php include in this php statement.
<?php $catalog = "shop.html"; include "includes/categories.inc.php"; ?>
This example will make all links in the category list open in the shop.html page. Change the $catalog=
variable to match the actual page in the site. The page that the catalog= variable points to must either be










