Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a link to a page in my site-URGENT


Guest

Recommended Posts

Posted

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?

Posted

<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 >

Posted
<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

Posted
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?

Posted

Hi, yep get the same type of error with the linking to a product code but the last one is fine

Posted

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 >

Posted

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

Posted

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 >

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...