product group

Discussion in 'Customization & add-ons' started by csongor_simsay, Jan 21, 2014.

  1. csongor_simsay

    csongor_simsay New Member

    Joined:
    Dec 10, 2013
    Messages:
    26
    Hello,
    I want to display the product group id. Is this possible somehow?
    I tried this but it didn't work:

    $user = $event->getUser();
    $groupId = $user->getGroups();
    echo $groupId[];

    Cheers
  2. csongor_simsay

    csongor_simsay New Member

    Joined:
    Dec 10, 2013
    Messages:
    26
    I'm also having problem to get the email in site.php

    Am_Di::getInstance()->hook->add(Am_Event::ACCESS_AFTER_INSERT, 'myAccessHandler');
    function myAccessHandler(Am_Event $event) {
    $access = $event->getAccess();
    $user = $event->getUser();
    $invoice = $event->getInvoice();
    $myEmail = $event->getEmail();
    }

Share This Page