Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to get the items from information box into the footer?


garnet

Recommended Posts

Check the links in your information box and copy them to the bar in footer.php

 

Hi thanks for reply. I checked the links in information and pasted them into footer.php

This is the array in information.php. I see the links.

 

$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_ALLPRODS_SEO, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS_SEO_CATEGORIES . '</a><br>' .
									 '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_SITEMAP_SEO) . '">' . BOX_INFORMATION_SITEMAP_SEO . '</a>');

 

This is the footer.php

 

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="800" cellspacing="0" cellpadding="1" align="center">
 <tr class="footer">
   <td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
   <td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
[color="#FF0000"][i][b]<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>[/b][/i][/color]
</tr>
</table>
<br>
<table border="0" width="800" cellspacing="0" cellpadding="0" align="center">
 <tr>
   <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>
 </tr>
</table>
<?php
 if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="800" cellspacing="0" cellpadding="0" align="center">
 <tr>
   <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
 </tr>
</table>
<?php
 }
?>

 

I tried to copy and paste the text in red, but all I see is a link above the footer table with name "' . BOX_INFORMATION_SHIPPING . '" and it doesnt work. A bit of advice will be appreciated. I am new to php/html. When links are copied in the right way they should be working OK in both languages in my store, right?

Thanks a lot.

OSC beginner

Link to comment
Share on other sites

Try it like this

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="800" cellspacing="0" cellpadding="1" align="center">
 <tr class="footer">
<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>
 </tr>
 <tr class="footer">
<td class="footer" align="center" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></td>
 </tr>
</table>
<br>
<table border="0" width="800" cellspacing="0" cellpadding="0" align="center">
 <tr>
<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>
</tr>
</table>
<?php
 if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="800" cellspacing="0" cellpadding="0" align="center">
 <tr>
<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
 </tr>
</table>
<?php
 }
?>

Link to comment
Share on other sites

Try it like this

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="800"cellspacing="0" cellpadding="1" align="center">
 <tr class="footer">
<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
		 >>>>>>>> <td class="footer" align="center" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></td>
 </tr>
 <tr class="footer">
<td class="footer" align="center" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></td>
 </tr>
.
.
.
.
?>

 

Thanks that worked. Any idea how to add currency selector and language selector to the herader bar.

Appreciated help.

OSC beginner

Link to comment
Share on other sites

On my site i have these links under where the footer bar would be.

 

Try modifying the following code to match your files, and place it wherever you require the links to be.

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText">

<?php

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

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

'<a href="' . tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_INFORMATION_PAYMENTS . '</a> |' .

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

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

'<a href="' . tep_href_link(FILENAME_SITEMAP_SEO) . '">' . BOX_INFORMATION_SITEMAP_SEO . '</a> |' .

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>' ;

 

?>

</td>

</tr>

</table>

 

you casn see it at the botton of the page at www.railwayscenics.com

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

On my site i have these links under where the footer bar would be.

 

Try modifying the following code to match your files, and place it wherever you require the links to be.

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText">

<?php

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

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

'<a href="' . tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_INFORMATION_PAYMENTS . '</a> |' .

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

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

'<a href="' . tep_href_link(FILENAME_SITEMAP_SEO) . '">' . BOX_INFORMATION_SITEMAP_SEO . '</a> |' .

'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>' ;

 

?>

</td>

</tr>

</table>

 

you casn see it at the botton of the page at www.railwayscenics.com

 

Thanks that worked. Any idea how to add currency selector and language selector to the herader bar.

help appreciated greatly

OSC beginner

Link to comment
Share on other sites

  • 2 months later...

how to make these foot links with unique font and color.

<td align="center" class="smallText" color="#FFFF00">

the color code is not working.

 

 

 

Also I tried

<td align="center" class="footerText">

 

then put this stylesheet

TD.footerText, SPAN.footerText, P.footerText {

font-family: Verdana, Arial, sans-serif;

font-size: 12px;

color: #333399

not work

Link to comment
Share on other sites

Add a CSS class to the link like:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=32'); ?>" [color="#FF0000"][b]class="main"[/b][/color] title="Link Title">Link Title</a>

Or just "style" the link:

 

<a [b][color="#FF0000"]style="color:blue;"[/color][/b] href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=32'); ?>"  title="Link Title">Link Title</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 >

Link to comment
Share on other sites

Bump past a porn spammer

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...