Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP: adding PHP code to TEXT_MAIN in index.php


surfinagain

Recommended Posts

The TEXT_MAIN is just a define for html and text.

 

You could edit the index.php...

 

Find

 

<td class="main"><?php echo TEXT_MAIN; ?></td>

 

and change it to....

 

<td class="main"><?php require('main.php'); ?></td>

 

Then create your php stuff and place it that file, including text etc.

 

HTH

Tom

Link to comment
Share on other sites

you can also depending on the code that you want to add, just add the php code without the php tagging as is done in the original text for the index.php

 

i.e.

define('TEXT_MAIN', 'This is a default setup running on ' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . ' osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...