Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move "Welcome Guest" message


VRADesign

Recommended Posts

So,

 

I'm trying to figure out what file(s) I need to modify to move (not REMOVE) the Welcome Guest message. I'm using STS so it's not as simple as modifying the catalog/index.php.

 

Any assistance would be appreciated.

Actually, it IS as simple as modifying the catalog/index.php file.

 

Try this:

In catalog/index.php, find:

<td class="main"><?php echo tep_customer_greeting(); ?></td>

Change it to (comment it out):

//<td class="main"><?php echo tep_customer_greeting(); ?></td>

 

Now place the following in your STS Template where you want the $greeting string (that is called in general.php):

<td class="main"><?php echo tep_customer_greeting(); ?></td>

 

Also: You will need to modify the HTML Table tags above to meet your needs in your template.

NOTE: Since version 4, STS Templates can now include PHP coding.

 

Hope this was useful,

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Actually, you'll want to use this to comment it out:

 



I believe that will work better.

[img=http://www.oscommerce.com/forums/style_emoticons/default/whistling.gif][/quote]Rich, the orignial post was wanting to "move" this script to any place within their STS TEMPLATE.
As far as the PHP comment, the following might be a better option but either would do:
[code]<td class="main"><?php //echo tep_customer_greeting(); ?></td>[/code]

So, what I suggested is the best option.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...