Katryn Posted September 11, 2013 Posted September 11, 2013 Hi all I am new to OsCommerce and don't know ANY PHP or HTML or any of that stuff. I managed to add an image to my index page by editing catalog/includes/languages/english/index.php. I tried to use the addons and stuff, but I just don't get it. I found something on another forum, and did the following: ('TEXT_MAIN', '<br><br><image src="images/tilda.jpg" width="600px" height="261px" border="0">') I don't know if it's the right way, but it is working at this stage. Ok, now my problem! How do I turn it in to a clickable link? I searched for a solution, but couldn't find anything that I understand. Please help??? Thanks :)
burt Posted September 11, 2013 Posted September 11, 2013 That is not the correct way to show an image, you need to use the functions that osCommerce provides. ('TEXT_MAIN', '<br><br>' . tep_image(DIR_WS_IMAGES. 'tilda.jpg', '', 600, 261)) You can then make it clickable by using the tep_href_link ('TEXT_MAIN', '<br><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=3') . '">' . tep_image(DIR_WS_IMAGES. 'tilda.jpg', '', 600, 261) . '</a>') If you do not use the functions that osCommerce provides, then you will have problems with sessions and problems with SSL. osCommerce has a steep learning curve for this sort of thing, but it is required knowledge in order to ensure that your shop runs smoothly.
Katryn Posted September 11, 2013 Author Posted September 11, 2013 I have another question! I want to add another image with a link to another product underneath the first image. Can I do it?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.