You are here:  » changin text to a button

Support Forum



changin text to a button

Submitted by paullas on Fri, 2009-01-09 16:09 in

hi

is there a way to change the text Visit Store to a graphical button

thanks
paul

Submitted by support on Mon, 2009-01-19 08:28

Hi Paul,

Sure - in html/prices.php, the Visit Store link is generated by this code on line 14:

<td align='center'><a href='<?php print tapestry_buyURL($product); ?>' <?php print javascript_statusBar("go to ".$product["merchant"]); ?>><?php print translate("Visit Store"); ?></a></td>

...simply change this as follows:

<td align='center'><a href='<?php print tapestry_buyURL($product); ?>' <?php print javascript_statusBar("go to ".$product["merchant"]); ?>><img src='/visitstore.gif' border='0' /></a></td>

...where /visitstore.gif is the absolute path to the image file you want to use (i.e begins with "/") otherwise the image won't be found when on product pages using rewrite...

Cheers,
David.