Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    The easiest way to do this would be to use the [pmpro_checkout] shortcode in the Register Helper addon. Otherwise, you will have to copy the code from preheaders/checkout.php and pages/checkout.php and integrate that into your home page template somehow.

    Hope that helps!

    Thanks,
    Jess

    Thread Starter juryduty

    (@juryduty)

    That helps tremendously! The shortcode works great, but it only puts the username, password and email on the page.

    How can I add the credit card fields? Is there a perimeter for the shortcode?

    > How can I add the credit card fields? Is there a perimeter for the shortcode?

    There is no way to do that with the shortcode. If there are billing fields required for the level the button will redirect to the checkout page and they will be able to continue registration there. Otherwise, the shortcode really only works for free levels currently.

    If you want to add extra fields, you can use the pmpro_checkout_after_username, pmpro_checkout_after_password, and pmpro_checkout_after_email hooks, or use the code as a guide to create your own shortcode. The submit button only posts the field data to the regular PMPro checkout page, so you can actually add whichever fields you want, just make sure that the input names are the same.

    Hope that clears things up!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Place sign-up fields right on home page?’ is closed to new replies.