Support » Plugin: Paid Memberships Pro » set the time on invoice in addition to the date

  • Resolved homaesg

    (@homaesg)


    Hi,
    Thank you for your awesome plugin.
    I want to set the time of membership purchase and expiration on invoice and confirmation page in addition to the date.
    Is this possible?
    Please help me
    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Travis

    (@travislima)

    Hi @homaesg,

    Thank you for reaching out to us. There will need to be a custom code gist that will need to be written up to do this. We do not currently offer this feature as an out of the box feature.

    Feel free to get in touch with our Support Engineers over on our Member Support Forums(available to Plus Members) for more help with this: https://www.paidmembershipspro.com/forums/forum/members-forum/

    Hi @travislima,
    Thanks for your response.
    I think this is a very simple task, I’m just not good at coding.
    Please please do it for me :).
    Does this feature apply to future versions?
    and one ques.:
    I have activated the “Email confirmation add on” but it doesn’t work, meaning that users after registration can access to restricted contents without email confirmation!
    where is the problem from?
    thanks again for your time.

    Plugin Support Travis

    (@travislima)

    Hi @homaesg,

    Let me see if one of our developers already have a pre-written code gist for you.

    Regarding the Email Confirmation Add-On, there may be something unique to your setup causing this as the Add-On seems to be working as it should.

    Hi @travislima,
    Thanks if you help me.
    But regarding the email confirmation add on, other than the activation link problem, I also have a redirection problem that, after clicking on the Troubled activation link, is redirected to the home page; is the default either the same or do I have a problem with it? although the user expects to be redirected to a page where the successful activation message is displayed.
    Please check it
    Thanks a lot

    Plugin Support Travis

    (@travislima)

    Hi @homaesg,

    I will forward this on to our developers to see if they can take a look. Thank you for sharing this with us.

    Hi @travislima,
    Thanks for your time and attention.
    Please let me know if you find the right answer.
    Thanks again

    Plugin Author Andrew Lima

    (@andrewza)

    Hi @homaesg,

    Thank you for your patience, here is a gist I have created for you that will show the hour:minute time of that particular invoice.

    Please add the following code to your PMPro Customizations Plugin
    https://gist.github.com/andrewlimaza/3d10790c532585d825050cf69c89efea

    If you need assistance in implementing this code, please feel free to open a support thread on https://www.paidmembershipspro.com

    Have a great week ahead 🙂

    Hi @andrewza,
    Thank you for your code, It works well.
    Do you have a solution for membership expiration time too?
    and about “Email confirmation Addon” activation link problem?
    Thanks for your help.

    Plugin Author Andrew Lima

    (@andrewza)

    Regarding the Email Confirmation activation link, this is correct functionality. I have added to our development schedule to add a link activation page to show that user’s have been activated successfully.

    You are able to use $invoice->enddate to show the members expiration date. However, this should be displayed on the invoice by default next to the ‘Membership Expires:’ near the top of the invoice.

    I hope this helps 🙂

    Hi @andrewza,
    Forgive me for prolonging this discussion.
    Regarding expiration time, I want to get the expiration time as invoice time; and not the date! that available by default.
    Another new problem is that the expiration date is one day less! for example, a one-day membership is scheduled from January 20 to January 20, not 21! and this means less than 24 hours(one-day).
    where is the problem from?
    Please help me.
    Thanks again

    Plugin Author Andrew Lima

    (@andrewza)

    It’s no problem at all. All memberships expire at midnight with Paid Memberships Pro, as we set the expiration date and the time to 00:00

    If you would like to display the time for the expiration date, you are able to use the code recipe above and use the variable $invoice->membership_level->enddate which is also stored as a timestamp which makes formatting really easy.

    Regarding your one day off error, please follow this guide to troubleshoot the issue – https://www.paidmembershipspro.com/time-zones-one-day-errors/

    I hope this helps.

    Hi @andrewza,
    For expiration date and one day off, code and solution above not work yet.
    But what’s seen on the profile page is quite correct. I checked the codes of profile.php file on “paid-memberships-pro/includes/profile.php” and everything works without problems.
    How do I use the same code on the invoice page?
    Please Please and Please help me!
    Thanks Thanks and very Thanks.

    • This reply was modified 2 years, 8 months ago by homaesg.
    • This reply was modified 2 years, 8 months ago by homaesg.
    Plugin Author Andrew Lima

    (@andrewza)

    Which code are you referring to? (“How do I use the same code on the invoice page?”)

    I would recommend in reaching out on http://www.paidmembershipspro.com so we may assist you with your problems in greater detail and one of our support engineers will be able to assist you in implementing code and troubleshooting.

    I mean the code above is the code used in the profile page(profile.php file in “paid-memberships-pro/includes” directory), Because the output of this page is what I want(Fully correct).
    Why the codes of membership invoice and confirmation pages have a result other than profile page?

    Plugin Author Andrew Lima

    (@andrewza)

    Thank you for your patience @homaesg, sorry for only getting back to you now.

    This will require quite a bit of custom code to achieve exactly and falls out of our support scope unfortunately. You should be able to work from the profile.php as a guideline and copy code/logic surrounding what you are trying to achieve.

    If you are not comfortable in making these changes, please reach out to one of our recommended developers to assist you further with this customization – http://www.paidmembershipspro.com/developers

    I hope this helps and thank you once again for your patience and understanding.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘set the time on invoice in addition to the date’ is closed to new replies.