Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Reward Point Full Suite. How to display the "Group Name" for the customers logged in?

    Hi,

    Is there a code to show the Reward point full suite Group name to the customers?

    For example, on the reward point side box, the group name will be shown to the customers.
    If I assign the group name "Beautiful Customer" to one customers, then the customer can see his group name(level)


    I tried some tricks but no works...

    The group name is only showing on the Admin pages... not for the customers.

    I'm trying to build the customer membership levels, so I need to display the each group name to my each customer...


    Any suggestions will be appreciated.. Thanks.

  2. #2
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Reward Point Full Suite. How to display the "Group Name" for the customers logged

    any suggestions? thanks...

  3. #3
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Reward Point Full Suite. How to display the "Group Name" for the customers logged

    still no suggestions? please help.... thanks

  4. #4
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Reward Point Full Suite. How to display the "Group Name" for the customers logged

    SOLVED!

    First, on

    /www/includes/functions/extra_functions/reward_points_functions.php

    I added a new function ,after the function GetRedeemRatio() :


    PHP Code:

    function GetRedeemGroup($customers_id)
    {
        global 
    $db;
        
        
    $sql "SELECT gp.group_name
                FROM "
    .TABLE_GROUP_PRICING." gp
                LEFT JOIN ("
    .TABLE_CUSTOMERS." as c)
                ON (gp.group_id=c.customers_group_pricing)
                WHERE c.customers_id='"
    .(int)$customers_id."'
                ORDER BY gp.group_id
                "


        
    $result=$db->Execute($sql);

        if(
    $result)
         return 
    $result->fields['group_name'];
        else
         return 
    0;


    and

    on

    /www/includes/templates/YOUR_TEMPLATE/sideboxes/tpl_reward_points.php




    after $reward_points=GetRewardPoints($_SESSION['cart']->get_products()); (LINE AROUND 11)

    add this :

    PHP Code:
    $group_name=GetRedeemGroup($_SESSION['customer_id']); 

    and one a line about 25, afther the if($reward_points>0) statement

    change the line

    PHP Code:

    $content
    ='<div class="cartBoxRewardPoints">'. ..... 
    to :

    PHP Code:

    $content
    .='<div class="cartBoxRewardPoints">''<p style="color:green;text-align:center;font-size:12px;font-weight:bold;">My Level : ' $group_name '</p><br />' $customers->fields['group_name'].(int)$reward_points.'&nbsp;'.REWARD_POINTS_IN_CART_TAG.'</div>'

    This will make you able to show the customer's group name on the sidebox.

    I was trying to build the customer's membership policy,

    and now I finally can.

    Thank you for this great module... that I can provide betther service to my customer.
    Last edited by ahhs9162; 22 Mar 2013 at 03:24 PM.

 

 

Similar Threads

  1. Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
    By countrycharm in forum All Other Contributions/Addons
    Replies: 361
    Last Post: 2 Feb 2024, 04:41 AM
  2. Can the "option name" display name be different than the actual "option name"?
    By yukionna in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 3 Dec 2013, 01:06 AM
  3. v1302 How can I install "Reward Point Full Suite" on v1302?
    By sddzcuigc in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 19 Sep 2012, 07:43 AM
  4. Anyone successful make the "Group Pricing (Per Item)" & "MSRP Display" togther?
    By explorer1979 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Dec 2008, 08:37 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR