Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change and maintain main page text


Guest

Recommended Posts

Posted

I see a lot of new store owners having a bit of trouble with maintaining TEXT_MAIN so here is a quick fix that is useful on stores that only support one language.

 

In index.php find this code:

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

Replace it with this:

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

Next, create a new page in the document root called "main.php". Use HTML and all characters are allowed...no need to escape anything. In addition, it allows for PHP tags and is versatile.

 

It's a quick fix and should eliminate all problems with escaping characters.

 

This will work for a store that supports one language only...

 

Bobby

Posted

If you are looking for a multi-language solution, or a general way for including html into certain pages, check out this contribution that explains how to include texts as well as create popups:

 

http://www.oscommerce.com/community/contri...e+html+and+text

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

  • 1 month later...
Posted

Hello Chemo,

 

I am having a problem with the main.php

 

I cannot get the styles and sizes on the fonts to match what I am setting in the main.php file.

 

Thanks

Yehuda

 

 

Like it says: One who is embarrassed will never learn!

Posted

Nice tip, already had html but this makes it so much easier to change, implemented, thanks :thumbsup:

 

I see a lot of new store owners having a bit of trouble with maintaining TEXT_MAIN so here is a quick fix that is useful on stores that only support one language.

 

In index.php find this code:

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

Replace it with this:

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

Next, create a new page in the document root called "main.php".  Use HTML and all characters are allowed...no need to escape anything.  In addition, it allows for PHP tags and is versatile.

 

It's a quick fix and should eliminate all problems with escaping characters.

 

This will work for a store that supports one language only...

 

Bobby

Archived

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

×
×
  • Create New...