Guest Posted June 9, 2009 Share Posted June 9, 2009 I created a new page using the KB directions and shipping.php copies. all is working fine except.... I have a button that I need to link to a url outside of osC (outside of my site) this is the current code for the button link. this code links the button back to my index page. <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> I need to be able to change the link to www.domain.com I have looked in the KB but am confused. as per the KB I can get the link in a hyper link style (underlined text), but I cannot figure out how to link the button image to anything other than another page within my site. I have tried to replace . tep_href_link(FILENAME_DEFAULT) . with the destination url but that only breaks the page. I think I am on the right track but am missing something and I don't know what. help please thank you Link to comment Share on other sites More sharing options...
germ Posted June 9, 2009 Share Posted June 9, 2009 <td align="right"><?php echo '<a href="http://www.domain.com">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> To link to a page or site outside the osC folder you have to use plain HTML. 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...
Guest Posted June 9, 2009 Share Posted June 9, 2009 <td align="right"><?php echo '<a href="http://www.domain.com">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> To link to a page or site outside the osC folder you have to use plain HTML. thank you Jim I knew I was on the right track, I had similar once but not the complete code as you posted. I think I had removed the <?php echo and tried to go just with html <a href button now linked to the proper url. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.