rjdsunsets Posted July 1, 2009 Share Posted July 1, 2009 Hi, I am in the process of setting up my shop and it is currently in a subdirectory of the site ie: www.robdaniel.com.au/shop (shop is in place of catalogue) I have tried to include a link to the shop section of the site from the home page using ./shop/index.php (this was in my off hosting server testing) but only came up with an error asking me if I wanted to open or save the file. I am not sure if that is because the link is wrong or my current setup doesn't support this sort of testing. Is it possible to link to the shop in this way or does the oscommerce site have to be included in the root directory? If I do need to move all the files to the route directory is there a particular file structure that I need to implement? I apologise if this question has already been asked but I have searched through alot of posts and cannot seem to find an answer to my question. Feel free to just post a link if I missed an answer somewhere else. Any help on this topic would be greatly appreciated. Cheers Rob (yet another newbie) Link to comment Share on other sites More sharing options...
spooks Posted July 1, 2009 Share Posted July 1, 2009 you should use <a href="http://www.robdaniel.com.au/shop" > Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
rjdsunsets Posted July 1, 2009 Author Share Posted July 1, 2009 you should use <a href="http://www.robdaniel.com.au/shop" > Hey Spooks, Thanks for the piece of code. I will try that too. Just tested the link I had created on a live server and it is working. It would appear that my home testing server is not setup correctly. Something else to sort out. Thanks for the quick response. Cheers Rob Link to comment Share on other sites More sharing options...
Guest Posted July 1, 2009 Share Posted July 1, 2009 Hi, but in what cases would you use the a href="<?php echo tep_href_link (etc) code? if all you want to do is to link to other pages or products in the site Link to comment Share on other sites More sharing options...
spooks Posted July 1, 2009 Share Posted July 1, 2009 Hi, but in what cases would you use the a href="<?php echo tep_href_link (etc) code? if all you want to do is to link to other pages or products in the site For all internal links http://www.oscommerce.com/forums/index.php?sho...c=330479&hl Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 5, 2009 Share Posted August 5, 2009 For all internal links http://www.oscommerce.com/forums/index.php?sho...c=330479&hl but what if I want to link to a product or category in the same site (internal page)? For example I have a product on the site which has the following url: http://mysite.com/product_info.php?cPath=2...;products_id=79 and I want to do two things. The first is to place a link on that page to another products page which has the following link: http://mysite.com/product_info.php?cPath=2...;products_id=40 what should the code look like? Also on the same page I would like to link to the Manufacturers main page in mysite which is: http://mysite.com/index.php?manufacturers_id=17 what should that code look like? I am thankful for all your help awesome help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.