Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a link within oscommerce


Guest

Recommended Posts

Does anyone know how to add a link INSIDE my shop? WITHIN my description of product I would like to add a link.

 

I know there is a space that says, "for more information about this product, view it's website by clicking here". something like that.........I had to use that built in link to add another picture because for some reason I am unable to download contributions.

 

I have become pretty familiar with typing in and changing the php codes, is there a way to do it that way?

 

Thank you in advance!

 

Newbie

:)

Link to comment
Share on other sites

Hi misocouture,

 

I'm not sure where or how you want your link to display, but couldn't you just add the link in the "description" area of your product? Since the description area can hold <html> coding, you can put the link in there.

 

From there you would need to make the other pages or so. It's in the "docs", but I haven't experimented with it yet. If it's going to link to what is already inside of the cart, I would open the page to link to in another browser, copy/paste the location into the description area. However, I'm not sure if it'll break your session id or not, but it's worth a try.

 

 

Kevin

"What I didn't know yesterday, I know today & will remember tomorrow"

(By Kwalker)

 

What do you see when you open up the tep_database-pr2.2-CVS.pdf file that came with your osCommerce download?

Link to comment
Share on other sites

try using the function 'tep_href_link' which i believe you can find in the 'includes/functions/html_outputl.php' file. if you see what parameters and variables you need to pass to it, it is fairly straightforward to add a new link e.g

 

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true)

 

^^ is the function so using it could be like this (maybe parameters could be the product_id?? and/or the image_id?? so the next page can know which image to show?)

 

echo '<a href=\'' . tep_href_link($page_link_to, $parameters) . '\'> link text here </a>';

always here to offer some useless advice....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...