Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Display Group name to Customer in Menu

    I like the group pricing mod and want to enable that on my site.
    Here are 2 thoughts i have , if anyone has got that working it would be great for me to incorporate in the site.

    1. First simply enough I want the customer to see in the title or in the menubar where there is "my account" what group is he a part of. So it should simply say something like "Group A"

    2. I would like to display both the Regular price and the Group pricing at the product info page with the Regular price struck off with maybe the %age discount or discounted amount displayed there too

    If anyone has included these it would be great to hear from you
    Thanks

  2. #2
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Display Group name to Customer in Menu

    Just to add this is for the mod

    Group Price Per Item

  3. #3
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Display Group name to Customer in Menu

    Anyone Please ?
    Linda any magic here too ?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display Group name to Customer in Menu

    I have not used the: Group Price Per Item

    Perhaps someone who has could jump in here with some suggestions ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Group Discount (Per Item) Mod Support Please

    Do we have anyone from the programmers who did the mod who could help please
    Thanks
    AVF

  6. #6
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Display Group name to Customer in Menu

    Hello Linda, Can you take some time to look into this mod and help. It would be really appreciated
    Thanks

  7. #7
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Display Group name to Customer in Menu

    I got help from TheOracle and this is what was needed to display the group name in the top menu bar.

    Now, if you'd like to display the group name right aside the 'My account' link, this is what you need to do.

    // Step 1

    In your includes/functions/extra_functions folder, create a new file named: group_pricing_functions.php .

    Inside, paste the following content:

    <?php

    if (!function_exists('show_group_pricing_name')) {
    function show_group_pricing_name($customers_id) {
    global $db;

    if ($customers_id <= 0) {
    return false;

    } else {

    $customer_group_query = "select gp.group_name
    from " . TABLE_CUSTOMERS . " cu
    left join " . TABLE_GROUP_PRICING . " gp on cu.customers_group_pricing = gp.group_id
    where cu.customers_id = " . (int)$customers_id;
    if ($customer_group = $db->Execute($customer_group_query)) {
    return zen_output_string_protected($customer_group->fields['group_name']);
    }
    }
    }
    }
    ?>

    // Step 2

    In includes/templates/<your_template>/tpl_header.php file,

    find:

    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

    add right below:

    <li><?php echo show_group_pricing_name($_SESSION['customer_id']); ?></li>

    This should show the group name relatively right aside the 'My Account' link once the customer has logged in into his account.


    THis works

    Thanks to Oracle for the support

    Now if we can display both the Actual and group pricing on the product page it would be an awesome Mod.

 

 

Similar Threads

  1. Display customer name after login
    By suraj in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Feb 2010, 12:57 PM
  2. Display Customer Name on Home Page
    By MTProTool.com in forum General Questions
    Replies: 4
    Last Post: 5 Jun 2009, 02:27 PM
  3. Replies: 3
    Last Post: 26 Feb 2008, 08:13 AM
  4. Display Customer Name Question
    By SteveKim in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Jun 2007, 01:56 AM
  5. Display customer full name....
    By mpadilla2 in forum Addon Sideboxes
    Replies: 0
    Last Post: 2 Jul 2006, 10:26 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