• Resolved Vikas Khunteta

    (@vikas_khunteta)


    I have been facing issue with checkout form page. Whenever I submit the form, it redirects me to membership select page.

    I found this code in checkout.php of preheaders folder where I think changes should be made ( around line 40-50 )

    $pmpro_level = pmpro_getLevelAtCheckout();
     
    if ( empty( $pmpro_level->id ) ) {
        wp_redirect( pmpro_url( "levels" ) );
        exit(0);
    }

    When the checkout form loads $pmpro_level object contains details of the level selected, but when the form submits $pmpro_level returns NULL that’s why the if condition always true which results into a redirect to levels page ( memebership select page ).

    When I submit the form and exit the code just before the if condition and dump the $pmpro_level object it has details of the level selected but don’t know why it returns NULL when request process completely.

    Please help me with this problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi Vikas,

    Thank you for using Paid Memberships Pro.

    I am unable to recreate this issue on my local environment, have you done any customizations to the checkout page?

    Thread Starter Vikas Khunteta

    (@vikas_khunteta)

    Hi Andrew,

    Thank you for prompt reply.

    I have been using paid version of the plugin. I have written couple of filters & actions to made customization but I believe they are not affecting this.

    Earlier it was working then one day it stopped working. I did some fix then it worked. Now again it stopped working now I have tried all I can but its not working.

    You can test it here https://bluegoldnews.com/membership-account/membership-levels/
    this is live site, our test site is on different domain but to access that you will have to change your host file.

    Let me know if you need any more info.

    PS: Just submit the form without filling the form, don’t use your credit card info for payment, it might get debit.

    Plugin Author Andrew Lima

    (@andrewza)

    For testing purposes to ensure that the custom code isn’t affecting this would be to temporarily disable your custom code and use the default checkout page for PMPro and see if the issue persists.

    As you mentioned you have a paid account I recommend in posting on https://www.paidmembershipspro.com and one of our support engineers will be able to assist you faster and in more detail than I am able to do so here.

    Please feel free to reference this thread in your Member Forums post.

    Thank you for your understanding.

    Thread Starter Vikas Khunteta

    (@vikas_khunteta)

    I can confirm you that the filters are not affecting this.

    Thank you for recommending your site for support but my client had bad experience with them. Still I will try to reach them for greater support. In case, if I need any help related to this issue I will get back to you.

    Thanks for reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkout Form Page Always Redirects To Membership Select Page’ is closed to new replies.