Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2011
    Posts
    20
    Plugin Contributions
    0

    help question How to change logos for different users?

    Hello,

    I'm working with 1.3.9 and MultiSite mod running. I'm only focusing on my first site (lets call it site1.com) and I'd like to create TWO different types of users "Regular" users and "Pro" users. The only difference between the "Pros" and regular users are that they would get a price percentage discount (which would vary depending on how often they purchased products from us) and they would have a different logo "Site.com Pro" displayed to show them that they are getting their discount and are part of our "Pro Program".

    My two questions are:

    1) Since I'll have to use different discount groups for the pros, how would I create a check field on the individual user record to show if they are a pro or not?

    2) What files to I need to change to get the check to happen and switch the logo?


    Thanks!

    NWFAP

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to change logos for different users?

    1. If you're using the built-in group discount pricing, there is already a line item (Pricing roup) that shows the group assigned to a customer in Admin - Customers - Customers.

    2. I think you'd need to write some code for that.

  3. #3
    Join Date
    Dec 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: How to change logos for different users?

    Stevesh - Thank you for the response! Here is the few problems I face with using the group discounting:

    Quote Originally Posted by stevesh View Post
    1. If you're using the built-in group discount pricing, there is already a line item (Pricing roup) that shows the group assigned to a customer in Admin - Customers - Customers.
    - I will have my "Pro" users in several groups with different names (IE one group may be named "Pros", one group many be named "Invoice" [since I'm using the pay via invoice payment option module], another group may be named "Tax Exempt"

    Also, some of the members of the groups that pros will be in are not actually pros (IE they may be in the "Invoice" group because I allow them to pay via discount - but I don't want a pro logo showing up).


    Thanks!

    NWFAP

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change logos for different users?

    some of the members of the groups that pros will be in are not actually pros
    This would mean that the discount group is unusable for distinguishing the logo to be shown. Either you will have to not show the pro logo for the ambiguous group, or create another database customer field for identifying pros.

    Alternatively, you could make two "Invoice" groups, one for pros and one for others. They can have the same conditions and rates, and nobody needs to know that there are two organizational groups.

    The logo is output by /includes/templates/your_template/common/tpl_header.php, so that would be a good place to insert switching code.

  5. #5
    Join Date
    Dec 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: How to change logos for different users?

    Quote Originally Posted by gjh42 View Post
    This would mean that the discount group is unusable for distinguishing the logo to be shown. Either you will have to not show the pro logo for the ambiguous group, or create another database customer field for identifying pros.
    GJH - Thanks for the response! My plan was to add a customer field for identifying pros - I remember seeing an add-on to do this - do you know of an add on that allows me to do so?

    Alternatively, you could make two "Invoice" groups, one for pros and one for others. They can have the same conditions and rates, and nobody needs to know that there are two organizational groups.

    Quote Originally Posted by gjh42 View Post
    The logo is output by /includes/templates/your_template/common/tpl_header.php, so that would be a good place to insert switching code.
    Thanks this is the location I needed to know!

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change logos for different users?

    Another good location to edit would be /includes/languages/english/your_template/header.php. Wrap a test around this and make alternates as desired:
    PHP Code:
    // added defines for header alt and text
      
    define('HEADER_ALT_TEXT''Powered by Zen Cart :: The Art of E-Commerce');
      
    define('HEADER_SALES_TEXT''TagLine Here');
      
    define('HEADER_LOGO_WIDTH''192px');
      
    define('HEADER_LOGO_HEIGHT''64px');
      
    define('HEADER_LOGO_IMAGE''logo.gif'); 

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to change logos for different users?

    Look in Free Addons for a mod for additional customer fields, if you want to go that route.
    If you want to use discount groups, you can test for the customer id being in any one of a number of specified group ids.

 

 

Similar Threads

  1. v139h tpl_header.php how to set different logos for each language?
    By ilmarchez in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Mar 2013, 11:11 PM
  2. how to change quantities for different attributes?
    By BoVyce in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 30 Aug 2011, 10:09 PM
  3. different skins for different users???
    By oldgeorge in forum General Questions
    Replies: 1
    Last Post: 30 Sep 2008, 05:39 PM
  4. Replies: 0
    Last Post: 4 Sep 2008, 12:13 AM
  5. different payment options for different users/groups of users
    By grossd in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Feb 2008, 06:48 PM

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