Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding to Guest Login Text?


CivicRacingGirl7

Recommended Posts

There are tons of threads asking how to change the guest login on the main page.

 

I know how to change the text, but am receiving an error. I don't know if there is a limit to the characters that can be added to this, or what.

 

Problem:

 

Want to add more text to Guest login spot.

 

Visual:

http://www.import-tech.net/shop/catalog/

 

I would like the "Please Note" and everything after to be featured with the Guest login text below it.

 

 

english.php code with text added in:

define('TEXT_GREETING_PERSONAL', 'Welcome back, <span class="greetUser">%s</span>! Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?<p>At Import Tech, we strive to bring you the highest quality products for your vehicle, at competitive prices. Should you see the same product selling elsewhere for less, please contact us. We will be happy to try to match the price, or beat it!<p>Please browse through our vast selection of automotive products by using the options to your right. Enjoy your stay, and thank you for choosing Import Tech!<p><b><u>PLEASE NOTE:</u></b><br>· Import Tech is not responsible for typographical errors.<br>· All prices are subject to change at any time.<br>· All prices are listed in US dollars.<br>· <b>Most prices listed already include shipping charges.</b><br>· NY State Residents subject to 8.125% sales tax on all purchases.');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small><p>At Import Tech, we strive to bring you the highest quality products for your vehicle, at competitive prices. Should you see the same product selling elsewhere for less, please contact us. We will be happy to try to match the price, or beat it!<p>Please browse through our vast selection of automotive products by using the options to your right. Enjoy your stay, and thank you for choosing Import Tech!<p><b><u>PLEASE NOTE:</u></b><br>· Import Tech is not responsible for typographical errors.<br>· All prices are subject to change at any time.<br>· All prices are listed in US dollars.<br>· <b>Most prices listed already include shipping charges.</b><br>· NY State Residents subject to 8.125% sales tax on all purchases.');
define('TEXT_GREETING_GUEST', 'Welcome to Import Tech, <span class="greetUser">Guest</span>!<p>At Import Tech, we strive to bring you the highest quality products for your vehicle, at competitive prices. Should you see the same product selling elsewhere for less, please contact us. We will be happy to try to match the price, or beat it!<p>Please browse through our vast selection of automotive products by using the options to your right. Enjoy your stay, and thank you for choosing Import Tech! <p>Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?<p><b><u>PLEASE NOTE:</u></b><br>· Import Tech is not responsible for typographical errors.<br>· All prices are subject to change at any time.<br>· All prices are listed in US dollars.<br>· <b>Most prices listed already include shipping charges.</b><br>· NY State Residents subject to 8.125% sales tax on all purchases.');

 

 

error message:

 

Warning: sprintf(): Too few arguments in /home/import-/public_html/shop/catalog/includes/functions/general.php on line 939

 

This appears instead of the guest login dialogue.

 

 

general.php line 939 + 8 lines above, and 5 below:

 

// Return a customer greeting
 function tep_customer_greeting() {
   global $customer_id, $customer_first_name;

   if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
     $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($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'));
   }

   return $greeting_string;
 }

Link to comment
Share on other sites

It looks like you got it to display properly, but wouldn't it make more sense to put all that text into TEXT_MAIN in includes/languages/english/index.php ? That way you'd only need to change it once if you wanted to modify it (by the way, the options to view your inventory are on the left, not the right! ;) )

 

Jeremy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...