• Resolved bojates

    (@bojates)


    Thanks for this great plugin.

    I am taking payments from users who have accounts on the site. Is there a way to get the orders listing in admin to show the user name?

    I have managed this by modifying the register_post_type function in class-order.php and adding ‘author’ in the ‘supports’ section. However, I’d like to be able to keep this functionality when the plugin updates. Is there a way to do this with a hook or action? (My WordPress understanding is very weak around this I’m afraid.)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    Old API-related code used to store logged-in user’s ID in order metadata. However, it seems that new API-related code is missing this.

    Lemme poke around with that and get back to you.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Ok, scratch my previous message. Not only it’s not true (new API code does adds logged in WP user’s id to order metadata), but also the method you are currently using is much easier and effective. So I decided to make its usage semi-official ??

    I have created a tiny example plugin that does only one thing: it adds ‘author’ support for ‘stripe-order’ post type. Here’s the code https://github.com/erommel/stripe-payments-enhancements/blob/master/asp-add-order-author-support/asp-add-order-author-support.php and here’s the plugin itself https://github.com/erommel/stripe-payments-enhancements/releases/download/0.0.2/asp-add-order-author-support.zip (you can install it as any regular WP plugin).

    Additionally, I’ve added new option “Perfill Logged In User Name and Email”. When enabled and payment is made by logged in WordPress user, his\her name and email are prefilled to corresponding payment popup fields. This should add some comfort for your logged-in users by making then fill in less details.

    Note all the above would only work with Stripe Payments version 2.0.6+ (which is going to be released a bit later). If you want to try this now, get the testing version (which is 2.0.6t1 at the moment).

    Let me know how it goes.

    Thread Starter bojates

    (@bojates)

    This is all fantastic, thank you and all seems to work perfectly. I really appreciate it!

    I’ve just tried to donate to the plugin development, but the link on here just takes me to the plugin page and then I can’t see the donate button. Happy to do so, if you can provide a link?

    Thanks again!

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Thank you!

    We do not accept donations at the moment. You can try to pick yourself a paid addon if you like or express your experience with the plugin by writing a review though ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘View the logged in user on the orders page’ is closed to new replies.