• Resolved mubiesam

    (@mubiesam)


    Need to import some custom fields of LearnPress plugin besides WP standard fields, tried on your demo site after installing LearnPress, got Warning: Attempt to read property “display_name” on bool in /s6-lockclocks/wordpress/wp-content/plugins/import-users-from-csv-with-meta/classes/homepage.php on line 31

    Meanwhile, your documents “you can extend or use this plugin with all the hooks we provide, you have a list of them here” is 404

    Look forward to hearing from you soon…

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Sorry I am not a Learn Press user and I don’t know how they store the data.

    Do you know how the data is stored for each user?

    Thread Starter mubiesam

    (@mubiesam)

    Hi @carazo

    Installed your plugin and found the Meta key _lp_custom_register

    a:8:{i:5125103;s:0:””;i:5125500;s:0:””;i:5125709;s:0:””;i:512541;s:0:””;i:5125695;s:0:””;i:5125237;s:0:””;i:5125913;s:0:””;i:5125282;s:0:””;}

    Your documents: “Plugin can import serialized data. You have to use the serialized string directly in the CSV cell in order the plugin will be able to understand it as an serialized data instead as any other string.” It seems the solution what we need, but just one missing element.

    We have written a snippet to export LearnPress Field id and Field name, got 9 items compare to 8 items shown in the above example a:8:, the only textarea with Field id 8950339 and Field name: SEE學習歷程 is missing.

    Any idea what might be the cause?

    Thanks

    Thread Starter mubiesam

    (@mubiesam)

    Hi @carazo

    Tested import with CSV header _lp_custom_register and Cell Content:
    a:8:{i:5125103;s:3:”男”;i:5125500;s:10:”0988-007378″;i:5125709;s:10:”mylineid”;i:512541;s:12:”初階學程”;i:5125695;s:0:””;i:5125237;s:0:””;i:5125913;s:0:””;i:5125282;s:0:””;}

    All other fields are imported successfully, but none of LearnPress custom field appeared.

    Any suggestion…

    Thanks

    Plugin Author Javier Carazo

    (@carazo)

    Sorry, I don’t know how Learn Press manage this kind of data.

    Are you sure that this is managed in usermeta table?

    Thread Starter mubiesam

    (@mubiesam)

    Please see the attached screenshots

    Plugin Author Javier Carazo

    (@carazo)

    Yes, but this are keys generated by you.

    Can you read the Learn Press code to see how they manage this kind of data?

    Thread Starter mubiesam

    (@mubiesam)

    Forget it, I had used browser automation to resolve the issue.

    Thanks

    • This reply was modified 1 year, 1 month ago by mubiesam.
    Plugin Author Javier Carazo

    (@carazo)

    OK. Thanks to you.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Is it possible to import custom fields of LearnPress plugin?’ is closed to new replies.