Hi,
What file is it that formats the products shown when choosing a category such as
http://www.hairstylezone dot com/christmas-gifts-uk/category/Hair-Gift-Sets/
I wanted their to be a title showing the category name at top, for which I used the following in the header..
<h2><?php if (isset($header["title"]) && $header["title"]) {echo $header["title"]; } else {echo $config_title; } ?></h2>
But I dont want it on all pages really just the category page and I cant find where they are formatted that I could add that code so that the category name shows at top of those category pages.
Also which file would need to be included in order to be able to order those products in that category from low to high etc, or is hat only available for search results?
I guess I must have accidentally removed something from search.php that meant that the title with category:whatever wasnt showing. Same it wasnt showing the sort results from low to high. I have copied search.php from my other installation and now it is showing these fine. Thanks
Hi Clare,
The URL in your post is served by search.php. The cagegory pages are identical to what you would see if you searched for "category:Some Category". The category should therefore appear in the title, albeit with the category: prefix. These can be easily removed, see the following thread for the code (2nd post):
http://www.pricetapestry.com/node/291
Since they are normal search result pages, this means you can link directly to a category, sorted by price. Taking low to high as an example, the link would be:
http://www.hairstylezone dot com/christmas-gifts-uk/search.php?q=category:Hair-Gift-Sets&sort=priceAsc
Hope this helps!
Cheers,
David.