Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Main page configuration


Guest

Recommended Posts

Posted

Hi Guys,

I know this topic is trite, but i've researched and haven't been able to find the solution. I've setup everything from headers and payment flawlessley so far, however i'm having trouble with the main page text.

 

I know i'm suppose to do this:

define('TEXT_MAIN', 'WHAT EVER I WANT HERE');

 

However when i did this:

 

define('TEXT_MAIN', '<div align="center">

  <p><font size="6" face="Verdana, Arial, Helvetica, sans-serif"><strong>Welcome to GSMliberty.com

    shopping section</strong>. </font></p>

  <p><font size="3" face="Arial, Helvetica, sans-serif">Your number one internet

    destination for all your mobile needs</font> </p>

</div>');

 

All i get when i try to access the main shop page is

TEXT_MAIN

 

instead of whatever i wrote.

I tried using simple text with no HTML markups , no success.

 

I know the answer is probably dumb and right infront of me ... but i'm all crosseye from trying :blink:

Anyone have any ideas ?

 

Best regards,

Ghassan

www.gsmliberty.com

Posted

I cut and pasted the compete statement you had posted to a test site and it worked fine for me so you might have another problem.

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??

Posted

Thank you for your reply.

 

After further debugging i think i have a larger problem too.

 

It wasn't clear to me earlier but now i can see that the heading title also shows as HEADING_TITLE instead of whatever i type and the new products box label shows as TABLE_HEADING_NEW_PRODUCTS.

 

My logical deduction of all of this it seems that the index file or header file is not including the .../english/index.php in it's list of includes to intergrate with the main index.php file.

 

Am i making sense ? :unsure:

Does anyone have any ideas on how to remeedy the situation ?

 

PS What baffles me is that the default ../english/index.php if unmodified works perfectley fine. However once i modify it, $h#t hits the fan !

 

Thank you once again for your time.

Posted

This may help..

 

When I edit php files online, my computer, or whatever it is keeps putting blank lines at the bottom of the file.

 

Go to the php file in question and delete any blank lines after the last coding character..

 

Hope this helps

Posted

Hi,

I tried that.. still the same..

 

Here i've copied and pasted the entire .../english/index.php file:

 

<?php

/*

  $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright © 2003 osCommerce

 

  Released under the GNU General Public License

*/

 

define('TEXT_MAIN', '<div align="center">

  <p><font size="6" face="Verdana, Arial, Helvetica, sans-serif"><strong>Welcome to GSMliberty.com

    shopping section</strong>. </font></p>

  <p><font size="3" face="Arial, Helvetica, sans-serif">Your number one internet

    destination for all your mobile needs</font> </p>

</div>');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

  define('HEADING_TITLE', 'Welcome to GSMliberty.com');

  define('TABLE_HEADING_IMAGE', '');

  define('TABLE_HEADING_MODEL', 'Model');

  define('TABLE_HEADING_PRODUCTS', 'Product Name');

  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

  define('TABLE_HEADING_QUANTITY', 'Quantity');

  define('TABLE_HEADING_PRICE', 'Price');

  define('TABLE_HEADING_WEIGHT', 'Weight');

  define('TABLE_HEADING_BUY_NOW', 'Buy Now');

  define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

  define('TEXT_SHOW', '<b>Show:</b>');

  define('TEXT_BUY', 'Buy 1 '');

  define('TEXT_NOW', '' now');

  define('TEXT_ALL_CATEGORIES', 'All Categories');

  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

  define('HEADING_TITLE', 'What's New Here?');

} elseif ($category_depth == 'nested') {

  define('HEADING_TITLE', 'Categories');

}

?>

 

Hope this helps with debugging..

Thank you once again..

Posted

No it's not .. i just added that while posting , sorry.

Posted

If all else fails try this

 

define('TEXT_MAIN', '<div align=\"center\"><p><font size=\"6\" face=\"Verdana, Arial, Helvetica, sans-serif\"><strong>Welcome to GSMliberty.com shopping section</strong>. </font></p><p><font size=\"3\" face=\"Arial, Helvetica, sans-serif\">Your number one internet destination for all your mobile needs</font></p></div>');

you may be experiencing a problem with special characters or miss interpretation of quotes

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.

Posted

Thanks for the reply guys.. but still nothing

 

241: I tried using plain text with no HTML tags, same problem.

 

pyratekyng40: I fixed the double and single quotes.. nothing happened.

 

:(

 

I need to go find a wall to bang my head on...

Posted

I used your original code and it worked, then changed to my reworked code and it worked, you mentioned a parse error what exactly did the parse error say or error message say.

 

are you editing offline, as the online file manager can cause problems

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.

Posted

I'm editing offline.

 

you can go to www.gsmliberty.com/shop/

 

to see the way the text is displayed.

Posted

There are more than a couple errors in here. I don't know why it'd work for so many people but:

 

as previously mentioned, the buy and now need to be correctly single OR double quoted, not both.

 

Secondly,

 

'HEADING_TITLE', 'What's New Here?'

 

needs a "\"

 

'HEADING_TITLE', 'What\'s New Here?'

 

or double quotes

 

'HEADING_TITLE', "What's New Here?"

- - - -

Sometimes, ignorance is bliss.

Posted

OH MY GOD !

 

It worked !

 

Mad props mate!

 

Thank you thank you thank you ..

 

:D

 

Funny how a stupid "\" brings the house down...

 

Cheers,

Archived

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

×
×
  • Create New...