Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding link to ebay inside exsisiting info box


sugarsnow~

Recommended Posts

Posted

I'm trying to add an outside link to my information box that goes directly to my eBay store when you click on it but I'm not having much luck.

I just learned how to add new pages inside the information box, ya know, about us pages and stuff I did it all manually so I got the idea if I just add the ebay link to the

includes/filenames.php file.

which i did like this..

define('FILENAME_ebay', 'http://stores.ebay.com/storename');

and I also added ebay info to english.php file and includes/boxes/information.php file

I thought that might make the link work but when I click on "ebay" in my infobox it just shows a 404 error because it added my webpage url/the ebay link.

 

so I was searching around and found this in the knowledge base

http://www.oscommerce.info/docs/english/e_...s_to_boxes.html

 

But I don't understand how to edit the code correctly for info box and an ebay link @_@ totally lost. I'm not totally sure but I think this is only showing me how to add a new box also and make it link outside..is there anyway to leave the ebay link in infobox but still make it link to an outside url?

 

Hopefully this all makes sence --> 3am here xD need to sleep any help would rock so PLEASE HELP T_T

Posted

If you're adding just a link to ebay in your infobox, you should only have to add the html link

 

Did you want to make a whole new infobox for your ebay link?

-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Posted

wow is it really that easy xD LOL I was looking for a super diffcult answer! I guess I over thought it. hmm but I'm alittle confused... what file do I added the link too?...I'll try playing around in the includes/filenames.php file, english.php file and includes/boxes/information.php file ..just not sure looking at the codes in those files how to intergrate a hyper link correctly..maybe I'm over thinking it again?

Yep I just want to make the "ebay" line in infobox a link

thanks for the reply btw ^__^

Posted

Ok well nevermind I figured it out myself FINALLY

which seems to be what you have to do at this forum but whatever

for those who might come across this and need help too I found out by search for others shops and finding the myspace add me to your friends contrabution. To actually get an outside link in with your other local site links in infobox you have to go to your

includes/boxes/information.php file and edit a line that normally looks like this

 

'<a href="' . tep_href_link(FILENAME_ebay) . '">' . BOX_INFORMATION_ebay . '</a><br>' .

 

to look like this instead

 

'<a href="http://www.ebay.com">' . eBay . '</a><br>' .

 

I also added ebay link in the includes/filenames.php and english.php

I probly have a ton of tiny errors in there but i don't care cause at least the link works now..

Archived

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

×
×
  • Create New...