latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Custom Fields on a Checkout Pro Form

Home Forums Community Forum Custom Fields on a Checkout Pro Form

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Tuesday Feb 19th, 2013 at 1:21 am #42422

I have read in other topics related to having custom registration fields show on a authorize.net pro form that upgrades the account. I understand that it is a checkout form.

However, we need to capture cell phone number and another custom field during this checkout process. I know that is not a capability of the checkout form but Jason posted a comment indicating that work is being done to make this integration process easier. I can’t recall the thread that comment was in.

It is a weird limitation to not allow custom registration fields to be captured and simply saved to the database during any of the pro form processing. I am spending a lot of time “coding around” weird issues that s2member throws my way.

If I could add some html to the pro form template myself, display the fields for entry, then “hook” into the submission process (end of processing would be great) to capture that data and save to the database myself, it would be great!

Does anyone have any logic structure already worked up that implements similar functionality? It would be great to see the structure of the: init->input->capture->save cycle incorporated inside the checkout submission function.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday Feb 19th, 2013 at 4:42 am #42460

Hi Keith.

This article explains how to customize your pro-form: http://www.s2member.com/kb/pro-forms/#customizing-pro-forms

I would also suggest that you use the [hilite mono]ws_plugin__s2member_during_configure_user_registration[/hilite] hook to catch your custom data and save it during the registration event. That hook is always fired during checkout via pro-forms. http://www.s2member.com/codex/stable/s2member/registrations/package-filters/#src_doc_ws_plugin__s2member_during_configure_user_registration_front_side

Then you can create a must-use plugin file in /wp-content/mu-plugins/ and using that hook you can check [hilite mono]$_POST[/hilite] for your custom fields and store them with [hilite mono]update_user_option()[/hilite]. http://codex.wordpress.org/Function_Reference/update_user_option

I hope that helps. :)

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.