Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a page to an infobox


Guest

Recommended Posts

I'm trying to figure out how to add a link to an infobox. Basically all I want to do is add a quick and dirty "About Us" link under terms & conditions in the "Information" infobox.

 

Can someone point me in the right direction? I don't need hand-holding - just want a nudge in the right direction :)

 

If there's a contrib that can address this I'd love a link, otherwise I'm happy to edit the files directly.

Link to comment
Share on other sites

Ok clearly I'm in over my head, just looked at both the files mentioned and I figure I need to create an entry here in information.php:

$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><br>' .
                                        '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV

 

presumably creating a new BOX_INFORMATION_BLAH. The question now if how do I create the reference to it in cloumn_left.php?

Link to comment
Share on other sites

here is part of what it takes to display ebay on the column left

 

(3) /catalog/includes/filenames.php

 

FIND:

 

define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php');

 

add this after it:

 

 

ADD BELOW:

 

// BEGIN ebay mod

define('FILENAME_CURRENT_AUCTIONS', 'current_auctions.php');

// END ebay mod

 

 

 

(5) /catalog/includes/languages/english.php

 

FIND:

 

// currencies box text in includes/boxes/currencies.php

define('BOX_HEADING_CURRENCIES', 'Currencies');

 

 

ADD BELOW:

 

// auctions box text in includes/boxes/current_auctions.php

define('BOX_HEADING_CURRENT_AUCTIONS', 'Current Auctions');

define('BOX_INFORMATION_CURRENT_AUCTIONS', '<img src="images/ebay.gif" border="0" alt="View Current Auctions">');

 

 

(6) /catalog/includes/column_left.php

 

FIND:

 

require(DIR_WS_BOXES . 'search.php');

 

 

ADD BELOW:

 

include(DIR_WS_BOXES . 'current_auctions.php');

 

so a few things to do

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...