Choose customers only lists user names, not customer names


  • Default avatar
    cynthia    
     3 years ago
    0

    When I try to assign customers to a coupon and click on the Customers drop down, the list I get to choose from consists of user names. Most of the user names are not identifiable. How do I get the Customer Add to bring up the actual customer names?
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    You can do it by customizing the code.

    If using virtuemart

    www/administrator/components/com_awocoupon/helpers/estore/virtuemart/helper.php, around line 269 is this:
    <?php
            $sql 
    'SELECT id,username as label FROM #__users
    ?>


    You could change it to something like this
    <?php
            $sql 
    'SELECT id,name as label FROM #__users
    ?>

  • Your avatar
    seyi    
     3 years ago
    0

    There is no need for the hack in the latest version, AwoCoupon 2.1.9.