View Full Version : Left Side Category List
Hey there,
May I know how can I change the left side category list to custom list? I have a golf site and I would like to list specific brands.
Besides, it will be fantastic if any of you can explain on the program structure (maybe AW would have some doc on it) so i can have better understanding how it is being structured.
Thanks for helping!
KS
Confuscius
03-04-07, 14:41
Hi Karsin
The easiest way to do this is to create a new templates/template_name/elements/category_tree.tpl that replicates the div structure,etc but does not do any fetches. You can then hard code in the links that you want.
Alternatively, instead of creating a new file use the existing one but change the '>0' in the top line of the file to say '<0' (an easy way to disable the menu!) and append your new category structure to the bottom of the existing file.
Browse by Merchant and Browse by Brand functionality is not available within the current version to the best of my knowledge. This functionality will probably be on most people's wish list. You can build links that show all of a Merchant's products within a single Category but Brand is not an easily accessible parameter given that not all Merchants are required to identify a particular Brand for a particular product. This issue would need to be addressed within the Merchant feeds first.
Hope this helps.
Paul
Example : Add the following to the top of the category tree template file to insert an easier to find Home page link, restyle if you want to
<div class="sw_boxheader">
<h2>Navigation</h2>
</div>
<div class="sw_cats">
<ul>
<li>
<h3><a href="/">Home</a></h3><br />
</li>
</ul>
<div class="sw_productdivider">
</div>
</div>
Dear Paul,
Thanks for your suggestions.
This is how i have done it. just to share. hardcoded way :)
<h2>Browse</h2>
<ul>
<li><a href=http://www.xyz.co.uk/search.php?q=iron&c=259&search=Search>Irons</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=wood&c=259&search=Search>Woods</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=utility&c=259&search=Search>Utility</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=wedge&c=259&search=Search>Wedges</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=putter&c=259&search=Search>Putters</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=ball&c=259&search=Search>Balls</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=bags&c=259&search=Search>Bags</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=shoes&c=259&search=Search>Shoes</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=sets&c=259&search=Search>Box Sets</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=clothing&c=259&search=Search>Clothing</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=golf+accessories&c=259&search=Search>Accessories</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=shaft&c=259&search=Search>Shaft</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=ladies&c=259&search=Search>Ladies</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=junior&c=259&search=Search>Junior</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=Second+Hand&c=259&search=Search>Second Hands</a></li>
</ul>
Thx,
KS
I like the idea of getting the home page side nav menu to show the sports catagory only... How would you go about doing this?
Confuscius
03-04-07, 18:27
You can set the START category but you will lose it as people navigate your site or search. Take a look in index.php and uncomment and change as follows:
from: #$_GET['c']= 535;
to : $_GET['c'] = 246;
This will change the Category Menu but you will still be able to access all parts via the drop down menu used as part of the search function.
Otherwise convert the category tree to a hard code list.
Hope this helps.
Paul
Hi Paul,
http://www.sassussex.com/savershandbook/index.php
Still get the same category list when i change the index.php function. Im not sure why this is but i am having a lot of problems with hot picks and everything to select one catagory....
Any more solutions?
Thanks
haha sorry.... got it....little things I just dont notice
from: #$_GET['c']= 535;
to : ######$_GET['c'] = 246;
Didnt remove the hash at the beginning :rolleyes:
sometimes i swear i just need to read things properly.... Thanks alot. :)
Hi, I have done the "change the '>0' in the top line of the file to say '<0' " bit and all the left hand side bits are removed. I now need to put somthing in its place. Where does the :-
<div class="sw_boxheader">
<h2>Navigation</h2>
</div>
<div class="sw_cats">
<ul>
<li>
<h3><a href="/">Home</a></h3><br />
</li>
</ul>
<div class="sw_productdivider">
</div>
</div>
go and what about the stuff below, Where do I put that?
Dear Paul,
Thanks for your suggestions.
This is how i have done it. just to share. hardcoded way :)
<h2>Browse</h2>
<ul>
<li><a href=http://www.xyz.co.uk/search.php?q=iron&c=259&search=Search>Irons</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=wood&c=259&search=Search>Woods</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=utility&c=259&search=Search>Utility</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=wedge&c=259&search=Search>Wedges</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=putter&c=259&search=Search>Putters</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=ball&c=259&search=Search>Balls</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=bags&c=259&search=Search>Bags</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=shoes&c=259&search=Search>Shoes</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=sets&c=259&search=Search>Box Sets</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=clothing&c=259&search=Search>Clothing</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=golf+accessories&c=259&search=Search>Accessories</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=shaft&c=259&search=Search>Shaft</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=ladies&c=259&search=Search>Ladies</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=junior&c=259&search=Search>Junior</a></li>
<li><a href=http://www.xyz.co.uk/search.php?q=Second+Hand&c=259&search=Search>Second Hands</a></li>
</ul>
Thx,
KS
Good old hard coding eh!!
Comes in very handy now and again. lets just hope that the digi window changes don't wreck the catID structure too much