Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Added html links to info box.


roughrider

Recommended Posts

Posted

There's a gap between the orginal links and both my added links, how do I close the gaps.

I've messed with it loads but no luck.

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

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

 

 

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="http://www.mysite.co.uk/links.html" target="_blank">Resource Links</a>'

);

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="http://www.mysite.uk/livehelp.htm" target="_blank">Live Help</a>'

);

 

new infoBox($info_box_contents);

 

?>

</td>

</tr>

<!-- information_eof //-->

Ride It Like You Stole It

Posted

you should use the tep_href_link function for internal links to your site. Also every time you add a new element to the $info_box_contents[] array the box class generates a new row for storage. So you place all the links within the same array element to eliminate the vertical margins (subject to the table element parameters).

Posted
you should use the tep_href_link function for internal links to your site. Also every time you add a new element to the $info_box_contents[] array the box class generates a new row for storage. So you place all the links within the same array element to eliminate the vertical margins (subject to the table element parameters).

 

 

Sorry but what's tep_href_link function ???

Ride It Like You Stole It

Posted

its in the code you posted above for the other links. Just duplicate it and use it. Takes care of the sessions, SSL and other critical parameters to generate a valid link for your site. The source code is in catalog\includes\functions\html_output.php

Posted
Sorry but what's tep_href_link function ???

 

 

It keeps your the sessions intact so if the customer has added something to their cart it does not get lost while they look around your site.

 

The best thing to do is setup any new pages on your site just like the info pages (privacy, shipping etc.) there is instructions on how to do this in the knowledge base. If you are only using one language there is a very easy way to insert text into the pages via a html file on the new ( or existing for that matter) pages.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Archived

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

×
×
  • Create New...