Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php - Tables


Guest

Recommended Posts

I'm having trouble getting tables to work on the index.php page

 

Does anyone know if this is possible and if so how?

 

Hope someone can help! :thumbsup:

 

Thanks

Link to comment
Share on other sites

If you go to catalog/includes/languages/english/index.php

 

define('TEXT_MAIN', 'anything you put between these single quote marks here will appear on your front page above the new products module');

 

so clear out the text

 

define('TEXT_MAIN', '');

 

and you can put the html and text for your tables inbetween those two apostrophes

 

There are other ways to do it (such as replacing the TEXT_MAIN in catalog/index.php) but I think its easier to do it in the language file, because the language file is much easier on the eyes...and plus later when you want to change it, it's not in a file that's a jillion lines long (after you forgot what you did the first time, like I do :'( )

 

If you're using more than one language, you'd have to put the translation in the other catalog/includes/theotherlanguage/index.php

 

To answer your other question, there's nothing preventing a table from appearing there.

 

If you need more help, I would suggest posting the contents of your table here.

 

I'm having trouble getting tables to work on the index.php page

 

Does anyone know if this is possible and if so how?

 

Hope someone can help! :thumbsup:

 

Thanks

Link to comment
Share on other sites

Sorry, my browser went crazy and I missed my time window for editing...

 

this should have been:

 

If you're using more than one language, you'd have to put the translation in the other catalog/includes/languages/theotherlanguage/index.php

 

And don't forget to BACKUP :thumbsup:

Link to comment
Share on other sites

If you go to catalog/includes/languages/english/index.php

 

define('TEXT_MAIN', 'anything you put between these single quote marks here will appear on your front page above the new products module');

 

so clear out the text

 

define('TEXT_MAIN', '');

 

and you can put the html and text for your tables inbetween those two apostrophes

 

There are other ways to do it (such as replacing the TEXT_MAIN in catalog/index.php) but I think its easier to do it in the language file, because the language file is much easier on the eyes...and plus later when you want to change it, it's not in a file that's a jillion lines long (after you forgot what you did the first time, like I do :'( )

 

If you're using more than one language, you'd have to put the translation in the other catalog/includes/theotherlanguage/index.php

 

To answer your other question, there's nothing preventing a table from appearing there.

 

If you need more help, I would suggest posting the contents of your table here.

 

Thanks for that. That is exactly where I am putting the code however I get parse errors everytime I try :angry:

Link to comment
Share on other sites

Post your table code if you don't mind. :thumbsup:

 

This is what I'm putting in the TXT_Main area

 

<table border="0" width="630" id="table1" cellspacing="0" cellpadding="0" height="220" bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0">

<tr>

<td width="630" height="200">

<a href="http://www.survequip.com/product_info.php?products_id=47?DEALOFTHEDAY">

<img border="0" src="DEAL_OF_THE_DAY.jpg" width="630" height="200"></a></td>

</tr>

<tr>

<td width="630" height="20"><font face="Arial" size="2"> What would

you like to see on Deal of the Day? Send your wish list to:

<a href="mailto:[email protected]?subject=Deal Of The Day - Wish list">

[email protected]</a></font></td>

</tr>

</table>

 

I dont see any reason why it should't work! :huh:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...