Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

External Homepage


Guest

Recommended Posts

I am trying to use an external file for frontpage text but dont know how to edit the text define section to do this, can anyone help?

 

I tried the contrib for this but my store is already modified and doesnt work if I upload the contrib (just lucky I backed up first)

 

thanks in advance

Link to comment
Share on other sites

I am trying to use an external file for frontpage text but dont know how to edit the text define section to do this, can anyone help?

 

I tried the contrib for this but my store is already modified and doesnt work if I upload the contrib (just lucky I backed up first)

 

thanks in advance

 

As long as your are only going to use one language you can replace the following text in your index.php file ( the one in your catalog folder not the one in the language folder)

 

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

 

with

 

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

 

You then create a main.html file in your catalog folder. You can now edit the main.html file in frontpage or whatever html editor you want to use and the contents will be pulled into the front page of your store.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...