Paid Memberships Pro
[resolved] Removing javascript alerts on Checkout page + Change in memberships (3 posts)

  1. semyou
    Posted 2 years ago #


    Thanks for this wonderful plugin. Saved me hours of work. However, I have 3 questions:

    1. Is there a way to remove js alerts--they are ugly--and replace them with a page redirect without touching the preheaders of the checkout page.

    2. Does the plugin support the following use case: If a user cancels his monthly subscription. He should be allowed to use the service for the current month as he already paid for it?

    3. And finally another question about a special usecase: If a user upgrades his subscription plan to a higher plan, do you charge only the difference between the two plans for the current month? If the user downgrades plans, do you offer him the new plan without charge for the current month as he already paid for the highest plan for the current month?



  2. messica
    Plugin Author

    Posted 2 years ago #

    1. The only time JavaScript alerts are used in the plugin is for reporting those error messages on the checkout pages and when manually changing the user's lavel, so there isn't really any easy way to disable them. If you really want to override them though, you can simply declare the alert function again in another JavaScript file like this

    window.alert = function() { /* code */ }

    2. You can use this gist https://gist.github.com/strangerstudios/6169167 to extend the expiration date.

    3. Yes, with this gist: https://gist.github.com/strangerstudios/5650417

    You'll want to configure these and add them to your active theme's functions.php file or a customizations plugin as described here:

    If you need further help, please consider becoming a member here http://www.paidmembershipspro.com/pricing/ for our member forums.

    Hope that helps!


  3. messica
    Plugin Author

    Posted 2 years ago #

    Marking this as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic