Guest Posted June 2, 2007 Posted June 2, 2007 hi all new as to what i am to oscommerce and the world of php i have almost finished my site but i am total stuck on one thing i need to add a link from an image that i have installed on my index page and i just cant figure it out for the life of me. would some one please tell me how to do this in simple terms plse i also need to add an email link from a image that is also on the front page thanks in advance maxi-computers.co.uk launch date 11/06/07 with some great special opening offers example 19" monitors £109.99
Jack_mcs Posted June 2, 2007 Posted June 2, 2007 If the link is going to a non-oscommerce page, use standard html linking code. If it is going to somewhere within your shop, use the tep_href_link function. You can see an example in includes/header.php where your logo is displayed. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Nullachtfuffzehn Posted June 2, 2007 Posted June 2, 2007 The code you're looking for should look like this: echo '<a href="' . tep_href_link(Linktarget) . '">' . tep_image(DIR_WS_IMAGES . yourpic.jpg, yourpic_text, IMAGE_WIDTH, IMAGE_HEIGHT) . '</a>'; That's the way how in OsC a link is wrapped around a pic usually.
Guest Posted June 2, 2007 Posted June 2, 2007 thanks for a speedy reply just one question which file do i place this link in thanks again maxi-computers.co.uk
satish Posted June 2, 2007 Posted June 2, 2007 The page where the code for image is. and replace your code of image with the code as stated above echo '<a href="' . tep_href_link(Linktarget) . '">' . tep_image(DIR_WS_IMAGES . yourpic.jpg, yourpic_text, IMAGE_WIDTH, IMAGE_HEIGHT) . '</a>'; Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.