You are here:  » how to include jump link on search results page


how to include jump link on search results page

Submitted by atman on Tue, 2006-09-26 14:45 in

hi david,

how do i put a jump link/direct link on the search results page as seen here

http://www.thecheaperthebetter.com/category/Lingerie/10.html

thank you.

atman

Submitted by support on Tue, 2006-09-26 15:06

Hi atman,

You can get a direct or jump link by calling the tapestry_buyURL() function with any $product (as long as $product is an array holding an item from the products table) - which is the case in html/searchresults.php. Therefore you can do it like this:

Find the following code in html/searchresults.php (line 20):

<p><?php print substr($product["description"],0,250); ?></p>

...and to create a direct link, change to this:

<p>
<?php print substr($product["description"],0,250); ?>
<a href='<?php print tapestry_buyURL($product); ?>'>Visit Store</a>
</p>

That should do the trick.
Cheers,
David.

Submitted by atman on Tue, 2006-09-26 20:25

thanks! :)

atman