cellcom Posted June 5, 2010 Share Posted June 5, 2010 Hi everyone. I have the following code to show the same banner only in different language for each of the languages i have : <table cellpadding="0" cellspacing="0" border="0"><tr><td class="banner_02"><?php echo tep_image(DIR_WS_LANGUAGES . $language . '/images/banner_02.jpg');?></td></tr></table> I was wondering if i can make the banner clickable so it will lead to a specific product ? Thanks for your quick answers. Link to comment Share on other sites More sharing options...
germ Posted June 6, 2010 Share Posted June 6, 2010 If you want to link to a CATEGORY replace this code: <?php echo tep_image(DIR_WS_LANGUAGES . $language . '/images/banner_02.jpg');?> With: <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=21'); ?>"><?php echo tep_image(DIR_WS_LANGUAGES . $language . '/images/banner_02.jpg');?></a> Just replace the number 21 in the code with your category number you want to link to. To link to a PRODUCT the code would be: <a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=657'); ?>"><?php echo tep_image(DIR_WS_LANGUAGES . $language . '/images/banner_02.jpg');?></a> Just replace the number 657 in the code with your product ID number you want to link to. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.