• Resolved Lorenzo

    (@lxella)


    Hi there,
    I was wondering if someone can help me… I’m trying to export in the CSV also the subscribers’ names (they give that information in the chatbot).
    I’ve created a cloumn in the DB and also added it to the exported CSV (I can see “name, email, insert_date” and the first line something like “, email@address, 01-01-2020” – that means I’m capable of editing the CSV output from the PHP files).
    I just need some help on how to insert the name in the database… I tried modifing both assets/js/bot.js and includes/classes/wp-maintenance-mode.php but I didn’t really figured out how you send to this last file the email…
    I think that if you try to explain me this I should be able to finish this work myself (or better: I hope it).

    Thank you for your time,
    Lorenzo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Lorenzo

    (@lxella)

    I was wondering what I’ve forgotten to write and now I know (just seconds after pushing the “submit” button XD).
    I just wanted to add that the system is still working (even with my edits) and it saves only the email, putting nothing in the name coloumn (so that the result is a CSV without the intial part).

    Thanks again,
    Lorenzo

    Hello @lxella,

    We do not offer support for customizations.

    To achieve what you want, you have to:
    – edit checkEmail function (from assets/js/bot.js) to send the new field to the wpmm_add_subscriber ajax action + bundle bot.js and bot.async.js as bot.min.js
    – edit WP_Maintenance_Mode class > add_subscriber function to save the new field in the database
    – edit WP_Maintenance_Mode_Admin class > subscribers_export function to export the new field from the database
    My recommendation is to hire a developer that can make the changes for you.


    George

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

The topic ‘Exporting subscribers’ name’ is closed to new replies.