• Resolved amelieviennot4

    (@amelieviennot4)


    Hi

    I tried for a hours to create a shipping address form connected to woocommerce but without success…

    I understand that we need to map user meta’s to the correct fields for this to work but the complexity of your plugin prevented me from doing that simply and easily.

    Do you have a tutorial explaining how to map user meta to custom fields when we create a form ?

    thanks

    Amelie

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter amelieviennot4

    (@amelieviennot4)

    I spoke to your colleague Deivydas from forminator and he told me this:

    Deivydas 11:28
    Thanks for waiting, by default, it’s not possible to create a shipping/billing address form that works for woocommerce, but it would work with a snippet of custom code and some work around, which our tech team may be able to help with. You can do that in the support forum here – https://wordpress.org/support/plugin/forminator/ Our team usually responds in up to 24 hours or so, might be faster though, it depends.

    So please show me step by step how to use forminator to create shipping/billing address form directly connected to woocommerce

    Many thanks

    Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @amelieviennot4 !

    Hope you’re having a good day!

    In order to help you out better, please export the form you currently have and share it here (please upload it to a cloud location and share the download link). We’ll need to check it first to provide you with the appropriate code and next steps.

    Kind regards,
    Pawel

    Thread Starter amelieviennot4

    (@amelieviennot4)

    Hi Pawel

    I think you did not understand the project the project is not to create a unique special kind of form, the project is to create a shipping and billing form that has the same exact fields from the ones of woocommerce and to connect both forms to woocommerce so that when a user fill out those forms the information is saved within woocommerce in shipping detail section and billing details section.

    I hope this is clearer now, can you please show step by step how to implement this. My understanding is that it is possible if we do custom mapping but I don’t know how to do that myself, please provide a step by step guide on how to implement this.

    Thanks

    Amelie

    Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @amelieviennot4 !

    Apologies for the misunderstanding, it’s all clear now.

    The steps are as follows:

    – create a new registration form
    – you’ll need to add fields for the following data:
    * first name
    * last name
    * company
    * phone number

    You can use the Address field type for those:
    * address line 1
    * address line 2
    * city
    * postcode
    * country

    You will need two sets of those for Shipping and Billing and you may want to add an email field as well for cases when the address is different for the two addresses.

    – in the User Registration tab please scroll to the Custom User Meta section. Here you can map the data to the values expected by Woo

    Woo uses the following user meta values:
    * shipping_first_name
    * shipping_last_name
    * shipping_company
    * shipping_address_1
    * shipping_address_2
    * shipping_city
    * shipping_postcode
    * shipping_country
    * shipping_email
    * shipping_phone

    For billing the fields are the same but they start with billing_ prefix instead.

    You can now map the metadata like so:

    View post on imgur.com

    Now you can place the form on a page and it will allow users to register and fill in the data, which will be saved to their profile like so: https://imgur.com/a/lzRuto5

    Hope this helps!

    Kind regards,
    Pawel

    Thread Starter amelieviennot4

    (@amelieviennot4)

    Hi

    I tried that but it did not work, did you manage to make it work for yourself ?

    Rgs

    Amelie

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @amelieviennot4

    Sorry to hear it didn’t work

    Can you export your current form and share using Google drive?

    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Best Regards
    Patrick Freitas

    Thread Starter amelieviennot4

    (@amelieviennot4)

    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-6269-9869","type":"name","options":[],"cols":6,"conditions":[],"wrapper_id":"wrapper-6269-9869","field_label":"First Name","placeholder":"First Name","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix":"true","fname":"true","mname":"true","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"First Name is required.","mname_required_message":"Middle Name is required.","lname_required_message":"Last Name is required."},{"id":"name-2","element_id":"name-2","form_id":"wrapper-6269-9869","type":"name","options":[],"cols":6,"conditions":[],"wrapper_id":"wrapper-6269-9869","field_label":"Last Name","placeholder":"Last Name","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix":"true","fname":"true","mname":"true","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"First Name is required.","mname_required_message":"Middle Name is required.","lname_required_message":"Last Name is required."},{"id":"address-1","element_id":"address-1","form_id":"wrapper-2672-1454","type":"address","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-2672-1454","street_address":"true","address_city":true,"address_state":true,"address_zip":true,"address_country":true,"address_line":true,"street_address_label":"Street Address","street_address_placeholder":"Street Address","address_city_label":"City","address_city_placeholder":"City","address_state_label":"State/Province","address_state_placeholder":"State/Province","address_zip_label":"ZIP / Postal Code","address_zip_placeholder":"ZIP / Postal Code","address_country_label":"Country","address_line_label":"Apartment, suite, etc","street_address_required_message":"This field is required. Please enter the street address.","address_zip_required_message":"This field is required. Please enter the zip code.","address_country_required_message":"This field is required. Please select the country.","address_city_required_message":"This field is required. Please enter the city.","address_state_required_message":"This field is required. Please enter the state.","address_line_required_message":"This field is required. Please enter address line.","address_line_placeholder":"Apartment, suite, etc","address_country_placeholder":"United Kingdom"},{"id":"email-1","element_id":"email-1","form_id":"wrapper-1118-4023","type":"email","cols":12,"required":"true","required_message":"This field is required. Please enter email.","field_label":"Email","placeholder":"E.g. john@doe.com","validation":"true","validation_message":"This is not a valid email.","wrapper_id":"wrapper-1118-4023","conditions":[]}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"Shipping Form Woocommerce","version":"1.15.0.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","akismet-protection":0,"form-style":"default","enable-ajax":"true","autoclose":false,"submission-indicator":"show","indicator-label":"Submitting...","form-type":"registration","submission-behaviour":"behaviour-thankyou","thankyou-message":"Account registration successful. Click <a href=\"https://beautylea.club/wp-login.php\">here</a> to login to your account.","email-thankyou-message":"Account registration successful. Please check your email inbox to activate your new account.","manual-thankyou-message":"Account registration successful. A website admin must approve your account before you can log in. You’ll receive an email when your account is activated.","submitData":{"custom-submit-text":"Register","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":true,"form-expire":"no_expire","use-admin-email":"true","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"true,","submission-file":"delete","options":[{"label":"billing_first_name","value":" {name-1}"},{"label":"billing_last_name","value":" {name-2}"},{"label":"billing_address_1","value":" {address-1-street_address}"}],"site-registration":"enable","site-registration-name-field":"text-1","site-registration-title-field":"text-1","site-registration-role-field":"administrator","activation-method":"default","activation-email":"default","registration-username-field":"text-1","registration-email-field":"email-1","registration-password-field":"password-1","registration-user-role":"fixed","registration-role-field":"customer","automatic-login":false,"hide-registration-form":true,"hidden-registration-form-message":"You are already logged in.","form_name":"Shipping Form Woocommerce","form_status":"publish","custom-mapping":"custom","user_role":[]},"client_id":null,"notifications":[{"slug":"notification-1111-1111","label":"Admin Email","email-recipients":"default","recipients":"info@beautylea.club","email-subject":"New User Registration on {site_url}","email-editor":"New user registration on your site {site_url}: <br/><br/> {all_fields} <br/><br/> Click {submission_url} to view the submission.<br/><br/>---<br/>This message was sent from {site_url}","email-subject-method-email":"New User Registration on {site_url}","email-editor-method-email":"New user registration on your site {site_url}: <br/><br/> {all_fields} <br/><br/> Click {submission_url} to view the submission.<br/><br/>---<br/>This message was sent from {site_url}","email-subject-method-manual":"New User Registration on {site_url} needs approval.","email-editor-method-manual":"New user registration on your site {site_url}: <br/><br/> {all_fields} <br/><br/> The account is still not activated and needs your approval. To activate this account, click the link below.<br/>{account_approval_link} <br/><br/>Click {submission_url} to view the submission on your website's dashboard.<br/><br/>This message was sent from {site_url}","conditions":[]},{"slug":"notification-1111-1112","label":"User Confirmation Email","email-recipients":"default","recipients":"{email-1}","email-subject":"Your new account on {site_title}","email-editor":"Your new account on our site {site_title} is ready to go. Here's your details: <br/><br/> {all_fields} <br/><br/>Login to your new account <a href=\"https://beautylea.club/wp-login.php\">here</a>.<br/><br/>---<br/>This message was sent from {site_url}","email-subject-method-email":"Activate your account on {site_url}","email-editor-method-email":"Dear {username} <br/><br/>Thank you for signing up on our website. You are one step away from activating your account. We have sent you another email containing a confirmation link. Please click on that link to activate your account.<br/><br/>This message was sent from {site_url}","email-subject-method-manual":"Your new account on {site_title} is under review.","email-editor-method-manual":"Your new account on {site_title} is under review.<br/>You'll receive another email once the site admin approves your account. You should be able to login into your account after that.<br/><br/>---<br/>This message was sent from {site_url}","conditions":[]}]},"status":"publish","version":"1.15.0.1"}

    Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @amelieviennot4 !

    The form you’ve shared is definitely working correctly – after registering an user through it on my test site I got the following result in the My Account >> Addresses page:

    View post on imgur.com

    It’s not a complete form, but from what I see, it’s working.

    Kind regards,
    Pawel

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @amelieviennot4 ,

    We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.

    Please feel free to re-open this ticket if needed.

    Kind regards,
    Kasia

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to create a shipping address form for woocommerce’ is closed to new replies.