WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. semyou
    Member
    Posted 5 months ago #

    Hi,

    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?

    Thanks,

    https://wordpress.org/plugins/paid-memberships-pro/

  2. messica
    Member
    Plugin Author

    Posted 5 months 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:
    http://www.paidmembershipspro.com/2012/08/create-a-plugin-for-pmpro-customizations/

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

    Hope that helps!

    Thanks,
    Jess

  3. messica
    Member
    Plugin Author

    Posted 3 months ago #

    Marking this as resolved.

Reply

You must log in to post.

About this Plugin

About this Topic