Skip Navigation

[Résolu] Pass CRED Fields and Custom User Fields Data to WooCommerce Checkout

This support ticket is created Il y a 6 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 réponses, has 3 voix.

Last updated by FrancoisJ6057 Il y a 6 années et 5 mois.

Assisted by: Luo Yang.

Auteur
Publications
#583316

Tell us what you are trying to do?
I've setup a membership site that charges users to become member of the website.

Is there any documentation that you are following?
I've setup the site as per the below document.
https://toolset.com/documentation/user-guides/charging-payments-with-cred-to-register-users/

1. I've installed: CRED, WooCommerce and CRED Commerce.
2. Created a virtual product
3. Created a CRED New User Creation Form
4. On Submission, the page goes to WooCommerce checkout.

Is there a similar example that we can see?

What is the link to your site?
hidden link

The CRED User form was created using Auto-Generate User Form
Then I've had Custom User Field Group with following custom fields such as:
Mobile Number, Profile Photo, Date of Birth, etc

The problem, when I submit the form and user goes to WooCommerce checkout as expected, the WooCommerce again asks for:

1. First Name
2. Last Name
3. Telephone Number
4. Email Id

I would want the above 4 fields to be pre-filled with the CRED User form of:
First Name, Last Name, Mobile Number and Email Id.

I believe this can be done using some sort of code such as:

add_filter( 'woocommerce_checkout_fields' , 'default_values_checkout_fields' );
function default_values_checkout_fields( $fields ) {
// You can use this for postcode, address, company, first name, last name and such.
$fields['billing']['billing_first_name']['default'] = ‘Name will come here’;

return $fields;

#583888

Dear shreyas,

There isn't such a built-in feature within CRED commerce, but I do think it is a good feature, if you agree, we can take it as a feature request, our developers will evaluate it.

#1120193

Any update (one year later) about that one?
I think it's kind of needed for a membership site. User experience needs to be flawless. if they have to reenter the same info on two consecutive pages, it's a big turnoff...

I was trying to to the same (some fill the form, then pays for his membership), but realize it's not possible with your tools. Unless there's a new feature?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.