Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Posts
    48
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Changing the link of the Greetting 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

  3. #3
    Join Date
    Jan 2007
    Posts
    48
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Nov 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: Changing the link of the Greeting message

    Quote Originally Posted by KaeFeE View Post
    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?

  5. #5
    Join Date
    Jan 2007
    Posts
    48
    Plugin Contributions
    0

    Default 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:

    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(FILENAME_PRODUCTS_NEW));
        } 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,

    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(FILENAME_DEFAULT, "cPath=1")); 
        } else {
          $greeting_string = sprintf(TEXT_GREETING_GUEST, zen_href_link(FILENAME_LOGIN, '', 'SSL'), zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
        }
    
        return $greeting_string;
      }
    and of course the english.php file, just remember, the english file only change the text that you see, not the link.

 

 

Similar Threads

  1. v154 changing the greeting
    By adb34 in forum General Questions
    Replies: 6
    Last Post: 12 Sep 2015, 02:41 PM
  2. v150 changing the position of greeting text
    By zzahid in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2012, 01:24 AM
  3. Changing the CSS for the Category link in tpl_product_info_display.php
    By bugyoutoo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Mar 2008, 05:57 PM
  4. Replies: 2
    Last Post: 12 Sep 2007, 05:34 AM
  5. changing the message at the top
    By advarntek in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jul 2007, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg