Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removed default login, now getting TEXT_GREETING_GUEST


Guest

Recommended Posts

Removed login for english.php, now I get this Text /Text_GREETING_GUEST, can't find out where it's comming from. :roll:

Link to comment
Share on other sites

That means you don't have a definition for TEXT_GREETING_GUEST. PHP prints the name of the define when there is no definition for it. You should search for it using something like AgentRansack. Defines like that are normally in the includes/languages/english directory or includes/languages/english.php.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

I took the define out of english.php, I think this is coming from functions general.php but can't figure out how to turn it off without losing the page

Link to comment
Share on other sites

You have to either remove the reference to TEXT_GREETING_GUEST in this section of general.php

    if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {

     $greeting_string = sprintf(TEXT_GREETING_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW));

   } else {

     $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

   }

or define TEXT_GREETING_GUEST somewhere like in english.php.

 

I you just want no greeting at all, you could comment out the code section above and replace it with $greeting_string = '';

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

I tried taking out the wholt string and lost the page, what would I take out to lose the greeting ? Or what whould I replace ?

Link to comment
Share on other sites

I think if you add

define('TEXT_GREETING_GUEST', '');

or change the section in general.php to

    if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { 

     $greeting_string = sprintf(TEXT_GREETING_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW)); 

   } else { 

     $greeting_string = ''; 

   }

You will get what you want, but I haven't tried it.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

Should of said, if I sign in and rturn to the default page I get the personal geeting, I checked out and returned to shop.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...