Urbluffingme Posted January 21, 2004 Share Posted January 21, 2004 I was able to create new classes for infobox heading images. Can anyone help me figure out how to make those header images links? Link to comment Share on other sites More sharing options...
TerryK Posted January 21, 2004 Share Posted January 21, 2004 I just did this, so I know the answer! :) <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . tep_image(DIR_WS_IMAGES . 'infobox/table_whats_new.gif', 'Click here to view all new products') . '</a>'; ?> HTH, Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. * Link to comment Share on other sites More sharing options...
Urbluffingme Posted January 21, 2004 Author Share Posted January 21, 2004 Where do I place that? Link to comment Share on other sites More sharing options...
TerryK Posted January 21, 2004 Share Posted January 21, 2004 Sorry, didn't make myself too clear... I presumed when you added the images, they were added to the individual catalog/includes/boxes/infobox.php files, in which case the code I offered in my last post would work in each individual file where the images were placed. (For example, here's the relevant piece of my catalog/includes/boxes/whats_new.php code:) <!-- whats_new //--> <tr> <td> <table width="150" border="0" cellspacing="0" cellpadding="0" class="infoboxborder" ALIGN="center"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="infoBoxContents"> <tr> <td colspan=3 width="100%" ALIGN="center"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . tep_image(DIR_WS_IMAGES . 'infobox/table_whats_new.gif', 'Click here to view all new products') . '</a>'; ?></td> </tr> Re-reading your message, though, it looks like you've assigned the images somehow through your stylesheet? If so, can you post the relevant code and I'll see if I can help figure it out. Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. * Link to comment Share on other sites More sharing options...
Urbluffingme Posted January 21, 2004 Author Share Posted January 21, 2004 I followed the steps here to change the infobox heading text to '' and asigned a background image. uh-oh. background image. Can I even link a background image? Link to comment Share on other sites More sharing options...
Urbluffingme Posted January 21, 2004 Author Share Posted January 21, 2004 By the way, it is the stylesheet that designates the image Link to comment Share on other sites More sharing options...
TerryK Posted January 21, 2004 Share Posted January 21, 2004 Sorry, Kevin -- I don't have the answer for you doing it this way (at least not without delving into the doc's more, and I'm a bit short on time tonite). I'm pretty sure it can be done, since PHP seems to be so powerful, but you'll have to wait for someone with more experience to answer... Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. * Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.