Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding links to information box


Guest

Recommended Posts

Posted

I'm attempting to link the rest of my site to the store. I want to use the information box function and I got the links to work, but the name reads wrong. I have searched high and low to figure out why

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

 

returns Shipping & Returns

 

but my line...

 

'<a href="' . tep_href_link(FILENAME_MY_PAGE) . '">' . MY_PAGE . '</a><br>'

 

returns MY_PAGE

 

When I attempted it with the BOX_INFORMATION in front of the name I got that as part of my results.

 

If you point me toward a contribution please tell me how to install the things.

 

Thanks,

 

Tina

Posted

'<a href="' . tep_href_link(FILENAME_MY_PAGE) . '">' . BOX_INFORMATION_MY_PAGE . '</a><br>'

 

then add the define for FILENAME_MY_PAGE to catalog/includes/filenames.php and add the define for BOX_INFORMATION_MY_PAGE to catalog/includes/languages/english.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Okay... Thank you, I got the fonts and such straightened out. I can't, however, get the page to point to the right place.

 

My code on english.php

define('BOX_INFORMATION_LINKS', 'Links');

 

Their code on english.php

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

 

My code on information.php

'<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' .

 

Their code on information.php

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

 

My code on filenames

define('FILENAME_LINKS', 'http://www.silkenstrand.com/links.htm');

to go to the root

 

or

 

define('FILENAME_LINKS', 'links.php'); to go to the catalog folder where their files are placed in (yes, I saved and tested both types in both places to see if it was an extension error)

 

Their code on filenames

define('FILENAME_PRIVACY', 'privacy.php');

 

All of the code looks the same to me. The files are in the correct locations and spelled correctly, etc. I just can't figure out why it isn't working.

 

Thanks,

 

Tina

Archived

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

×
×
  • Create New...