Support forum login

©2006-2008 IAAI Software

Contact Us

Link to merchant, category and brand

Submitted by cq on Tue, 2008-09-09 06:17.

Hi David,

How can i link to merchant, category and brand page from the header.php

The first two works for specific category.

<td>
<a class='hmenu' href='/search.php?q=category:Electronics:'>Electronics</a> |</td>&nbsp;
<td>
<a class='hmenu' href='/search.php?q=category:Fashion:'>Fashion</a> |</td>

But not for the following links. When i click the link and click the category in the category page, it return back to homepage.

<td>
<a class=='hmenu' href='/category.php'>Category</a></td>
<td>
<a class=='hmenu' href='/merchants.php'>Merchants</a></td>
<td>
<a class=='hmenu' href='/brands.php'>Brands</a></td>
</table>

How can i solve this problem.

thanks
jack

Submitted by dmorison on Tue, 2008-09-09 09:02.

Hello Jack,

If you are not using search engine friendly URLs, the only problem I can see with your second block of code is the filename used in the category link, which should be categories.php.

However, if you are using search engine friendly URLs, then you must link to the search engine friendly version of these pages, for example:

<td>
<a class=='hmenu' href='/category/'>Category</a></td>
<td>
<a class=='hmenu' href='/merchant/'>Merchants</a></td>
<td>
<a class=='hmenu' href='/brand/'>Brands</a></td>
</table>

Hopefully that is all it is!

Cheers,
David.

--
Developer, Price Tapestry
For unrelated PHP, MySQL or Affiliate Marketing tech help please post your questions on my personal forum