Guest Posted June 29, 2009 Posted June 29, 2009 How to I add a link to a page to elsewhere in my site? Is this correct if I want to add a link to the manufacturer/brands page within the site? <a href=index.php?manufacturers_id=75>Other Axis Products we stock</a> What if I want to add a link to another product within the site? Also what code works for adding a link to one of my pages to an url in someone elses site?
germ Posted June 29, 2009 Posted June 29, 2009 <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=75', $request_type); ?>" title="Other Axis Products we stock">Other Axis Products we stock</a> Linking to a product: <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=21', $request_type); ?>" title="Title Text Here">Link Text Here</a> (You'll have to supply the correct cPath) Linking to another site: <a target="_blank" href="http://othersite.com/page.html" title="Title Text Here">Link Text Here</a> 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 >
Guest Posted July 1, 2009 Posted July 1, 2009 <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=75', $request_type); ?>" title="Other Axis Products we stock">Other Axis Products we stock</a> Linking to a product: <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=21', $request_type); ?>" title="Title Text Here">Link Text Here</a> (You'll have to supply the correct cPath) Linking to another site: <a target="_blank" href="http://othersite.com/page.html" title="Title Text Here">Link Text Here</a> brilliant thanks for that will give it a go now
Guest Posted July 1, 2009 Posted July 1, 2009 brilliant thanks for that will give it a go now Hey there, I just tried it and it doesn't recognise the link, I added this into the product page: <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=17', $request_type); ?>" title="Other Gaspari Products we stock">Other Gaspari Products we stock</a>< but it returns an error 404 for the below: http://mysite.com/%3C?php%20echo%20tep_hre..._type);%20?> (http://mysite.com is of course substituded for my site name) Do you know why that would be?
Guest Posted July 1, 2009 Posted July 1, 2009 Hi, yep get the same type of error with the linking to a product code but the last one is fine
germ Posted July 1, 2009 Posted July 1, 2009 If you're trying to add the links within the product descriptions you have to do something like this 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 >
sharma.atul85 Posted July 1, 2009 Posted July 1, 2009 look do like this. <a href="http://prowebdesignsolutions.com/sulbha/product_info.php?ref=1&products_id=37" target="_blank"><img src="http://prowebdesignsolutions.com/sulbha/images/name.jpg" border="0" alt="Bag"></a> makes changes accordingly please. like http://yourdomain/catalog/..... n same for src now this will create an image link to products_info page thing to remember : give full path
germ Posted July 1, 2009 Posted July 1, 2009 If you don't use the function tep_href_link there's a good chance you'll dump the cart... :huh: 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 >
spooks Posted July 1, 2009 Posted July 1, 2009 look do like this. <a href="http://prowebdesignsolutions.com/sulbha/product_info.php?ref=1&products_id=37" target="_blank"><img src="http://prowebdesignsolutions.com/sulbha/images/name.jpg" border="0" alt="Bag"></a> BAD ADVISE!!! 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.