garysgal Posted November 17, 2006 Posted November 17, 2006 I want to add a box to my right_column.php that's simply an image ("Deal of the Day") that links to a "specials" page... I've followed the instructions to add the box, but apparently adding an image rather than text is causing problems... any help for me? Thanks!
jasonabc Posted November 17, 2006 Posted November 17, 2006 Open the right column box you want to add the image underneath (includes/boxes/specials.php for example) and add this after the closing </tr> <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">'; ?><img src="images/yourimagename.gif" alt="Specials" title="Specials"></a></td> </tr> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
garysgal Posted November 17, 2006 Author Posted November 17, 2006 Thank you. I'm not using a separate page, per se - I'll be linking the image to a specific product that changes on a 24-48 hour basis... where or how would I insert the "href" code to link the image to the correct page?
jasonabc Posted November 17, 2006 Posted November 17, 2006 Well for that you need to get the product id of the product you want to show. CLick the product to go to the product_info page - take a look at the URL - it'll look something like this: http://somewebsite.com/product_info.php?products_id=6 So then use this code to create your button in the right column that links to that product. I have highlighted the extra bit in bold: <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=6') . '">'; ?><img src="images/yourimagename.gif" alt="Specials" title="Specials"></a></td> </tr> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
garysgal Posted November 17, 2006 Author Posted November 17, 2006 PERFECT! I wasn't sure where to put the ref code... you rock, darlin'!
jasonabc Posted November 17, 2006 Posted November 17, 2006 lol - no probs - glad you got it working ;-) Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Recommended Posts
Archived
This topic is now archived and is closed to further replies.