Forums / General Questions / Changing the link of the Greeting message

Changing the link of the Greeting message

Locked

Started by kaefee on 23 Jan 2007, 12:20 PM · Views: 1,649

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 Jan 2007, 12:20 PM
#1
kaefee avatar

kaefee

New Zenner

Join Date:
Jan 2007
Posts:
40
Plugin Contributions:
0

Changing the link of the Greeting message

Hi

I need to change the link of the greetting message, I need that this link show all the product list, not only the new ones.

I was looking for the tpl_ files but still is not clear what part I should to change.

Thanks for the help in advance.

23 Jan 2007, 4:00 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Changing the link of the Greeting message

I'm not sure what you're trying to do. The greeting message links to the login, not products.

You can turn off the new products display in the admin: configuration->index listing and set "show new products on main page" to 0 (zero), but unless you have very few products, you can't display your entire catalog on the main page.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Jan 2007, 11:31 PM
#3
kaefee avatar

kaefee

New Zenner

Join Date:
Jan 2007
Posts:
40
Plugin Contributions:
0

Re: Changing the link of the Greeting message

Ok, I know, I need to be more clear,

When you login in the Zen cart you get this text

Hello USER_NAME! Would you like to see our newest additions?

The newest addition part is a link to the new products, this is the link that I want to change. The idea is that the link go to the produc list (the first page obviously).

In fact, better.... Is possible that when you login, the main page show the first page of the product list immediately and not the Hello ?.

Don't worry about of the catalog size, this is a special application for a customer that wants a system of orders for its own salespersons, so there are only 20 products at least for now.

31 Jan 2007, 2:41 PM
#4
encosion avatar

encosion

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Changing the link of the Greeting message

KaeFeE:

When you login in the Zen cart you get this text

Hello USER_NAME! Would you like to see our newest additions?

The newest addition part is a link to the new products, this is the link that I want to change.

I'm having a similar problem, except I've found where to change it (/includes/languages/english.php), the only problem is that this doesn't seem to work!!! It's definitely changed in the code and I've definitly uploaded it, but for some reason, it refuses to let the old code go! Is there a known caching problem on certain servers?

6 Feb 2007, 9:58 PM
#5
kaefee avatar

kaefee

New Zenner

Join Date:
Jan 2007
Posts:
40
Plugin Contributions:
0

Re: Changing the link of the Greeting message

For the people that may be some day need this info...

To change this link you need to change this file
includes/functions/functions_customers.php

this code:

 function zen_customer_greeting() {

    if (isset($_SESSION['customer_id']) && $_SESSION['customer_first_name']) {
      $greeting_string = sprintf(TEXT_GREETING_PERSONAL, zen_output_string_protected($_SESSION['customer_first_name']), zen_href_link([B]FILENAME_PRODUCTS_NEW[/B]));
    } else {
      $greeting_string = sprintf(TEXT_GREETING_GUEST, zen_href_link(FILENAME_LOGIN, '', 'SSL'), zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
    }

    return $greeting_string;
  }
```to this, 

function zen_customer_greeting() {

if (isset($_SESSION['customer_id']) && $_SESSION['customer_first_name']) {
  $greeting_string = sprintf(TEXT_GREETING_PERSONAL, zen_output_string_protected($_SESSION['customer_first_name']), zen_href_link([B]FILENAME_DEFAULT, "cPath=1"[/B])); 
} else {
  $greeting_string = sprintf(TEXT_GREETING_GUEST, zen_href_link(FILENAME_LOGIN, '', 'SSL'), zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_string;

}