Strategy11 / formidable-memberpress

0 stars 0 forks source link

Generate user registration forms #1

Open stephywells opened 10 years ago

stephywells commented 10 years ago

Automatically create and insert forms for signup

supercleanse commented 10 years ago

Very cool @stephywells ... We'll be happy to collaborate on this with you guys! I'm not sure how familiar you are with MemberPress internals but it should be fairly straightforward depending on how you plan on doing this. Are you wanting to have a shortcode for your form that specifies a product id that the user is registering for? Or do you want to insert a formidable form on the MP signup / account page?

stephywells commented 10 years ago

I was thinking we'd replace the MP forms with a form that is set up to create transaction posts. It would be easier if it's all automatic and doesn't require users to mess with any shortcodes, so we'll need hooks to replace the signup form that includes the product id.

stephywells commented 10 years ago

You can see here how this is working right now: https://formidablepro.com/account/

The MP form is hidden with css, and the form is inserted with a hook. Password confirmation is included in v2.0.

stephywells commented 10 years ago

This is all committed and working with the 2.0 version. https://github.com/Strategy11/formidable/tree/2.0

I'm sure there will be room for clean up once the hooks are in place, but it works.

stephywells commented 10 years ago

Also, do you have a function to get the price to display on step one? Or maybe you could pull this out into a separate function? https://github.com/Caseproof/memberpress/blob/master/app/views/shared/logged_in_purchases.php#L14-32