Checkout Form Page Always Redirects To Membership Select Page
-
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
ofpreheaders
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
returnsNULL
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 returnsNULL
when request process completely.Please help me with this problem.
- The topic ‘Checkout Form Page Always Redirects To Membership Select Page’ is closed to new replies.