View Single Post
  #4  
Old 09-23-2010, 11:46 PM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: How do you edit the search result page layout?

Does anyone know how to link to the product's main category from the search result page? It seems impossible to do but nothing is impossible, right? I tried:

Code:
<a href="home.php?cat={$current_category.parentid}">test1</a> <a href="{$location[1][1]}">{$location[1][0]}</a> <a href="home.php?cat={$subcat.categoryid}">test3</a> <a href="home.php?cat={$category.categoryid}">test4</a> <a href="home.php?cat={$c.categoryid}">test5</a> <a href="home.php?cat={$products[product].categoryid}">testA</a> <a href="home.php?cat={$product.categoryid}">testB</a> <a href="home.php?cat={$products.categoryid}">testC</a>
Every product has a main category ID link, I can see it when I check an item in the backend of our store. I want customers to be able to access the main category from the search result page since we have no actual product pages (we use category pages where people can buy the products). Thanks in advance!
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote