Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

simple solution??


outaline

Recommended Posts

Hi,

 

This is the code in my info box right now.

 

 

$info_box_contents[] = array('text' =>

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>'

 

 

 

);

 

 

 

I want to add an external link in my information box

 

I have tried:

 

$info_box_contents[] = array('text' =>

 

'<a href="' . NewLinkAddress . '">' . New Link . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>'

 

 

 

);

 

 

but this code results in my domain automatically preceding the NewLinkAddress.

i.e. http://mydomain.com/NewLinkAddress/

 

Is there a way to cancel the automatic domain prefix so I can direct the link to an outside domain?

i.e. http://anydomainthatIwant/NewLinkAddress/

 

I am thinking it can't be that hard but since my knowledge of PHP is zero, I am hoping some kind soul will help me out. :thumbsup:

Link to comment
Share on other sites

Ty this:

$info_box_contents[] = array('text' => '<a href=" NewLinkAddress" target="_blank"> New Link </a><br>' .
									  '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>'
									 );

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...