Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removed default login, now getting TEXT_GREETING_GUEST


Guest

Recommended Posts

Posted

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

Posted

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:

Posted

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

Posted

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:

Posted

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 ?

Posted

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:

Posted

Orchard , your the man, that was right on, Thanks

Posted

New Porblem , Now i got text greeting personal !!!!

Posted

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.

Posted

Also needed to remove sprintf(TEXT_GREETING_PERSONAL, LINE AND END string , the same way.

 

Thanks

Archived

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

×
×
  • Create New...