Added fields Export/Import, etc

Discussion in 'aMember Pro v.4' started by lipwebmaster, Dec 7, 2011.

  1. lipwebmaster

    lipwebmaster aMember Pro Customer

    Joined:
    Mar 17, 2011
    Messages:
    17
    Hello, I've been customizing v4 and have a couple of questions:

    I would like to customize what user fields can be exported to .csv including added fields.
    Which files will I need to edit?

    And same for import, I'd like to customize to allow for added fields

    Also, is there a way to sort by payment type (using PayPal & Offline) and export same?

    Many thanks!
  2. invictus

    invictus Member

    Joined:
    Jul 18, 2011
    Messages:
    44
    I would like to know this also.
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    1. Export function has been fixed, custom fields will be handled - it will be included into 4.1.8
    I will let you know about import custom fields ability tomorrow.

    Unfortunately, payment information is not yet exported. Where do you export this info? I am just trying to find out real life usage of this function and provide better solution
  4. invictus

    invictus Member

    Joined:
    Jul 18, 2011
    Messages:
    44
    Thanks for the update alex. Exporting all data would be great, and it can have a lot of useful applications. To name a few, moving data to different platforms, to accounting, and for internal reports.
  5. lipwebmaster

    lipwebmaster aMember Pro Customer

    Joined:
    Mar 17, 2011
    Messages:
    17
    Thank you Alex for answering!

    For our purposes, we need to export data for printing labels, envelopes, etc and to reference fields like 'how did you hear about us' for marketing purposes. It would be nice to sort those fields and supply our different departments with relevant data to work with..

    Apologies for tacking on other issues too, but:

    1) it would be helpful to have the address block split! We are in the UK and flexibility in forming address structure would be great

    2) The admin view of the user profile, is this to be customized through the controller only? Some fields aren't showing there (such as User id which we use as membership number

    Really I know you are working hard and I'm trying to limit the pressure being piled on you now!
    If these issues as they come up are better added to the bug tracker/wishlist please let me know.
  6. lipwebmaster

    lipwebmaster aMember Pro Customer

    Joined:
    Mar 17, 2011
    Messages:
    17
    About exporting by payment type, I forgot to answer. Basically we have online and offline payments which require different handling. If for example we could create a report with how many users pay offline vs online that would be good. This specific issue is a lower priority for me than above issues,

    Thank you
  7. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I've today built a report that outputs graph and table - payments by payment systems :) So you will get it in 4.1.8
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    1. We will add this to "Address" brick configuration. Sorry, cannot promise it soon.

    2. It can also be done by adding the following code to application/configs/site.php:

    PHP:
    <?php
    function addField(Am_Event_UserForm $event)
    {
          if (
    $event->getAction() != Am_Event_UserForm::INIT) return; // handle only init
          
    $el $event->getForm()->addStatic();
          
    $el->setLabel('User #');
          
    $el->setContent('id: ' $event->getUser()->user_id);
    }

Share This Page