Create woocommerce custom form - php

I want to create a custom form in wordpress woocommerce. I want to create a form to register and sign new customers. could you give me a clue?

Can you explain more? What kind of form? Is there a reason you can't use the native woocommerce registeration features? They are easy and work with wordpress login credentials.

Related

Set user role to custom role with invitation code in wordpress

I'm using register-plus-redux and press permit core plugins. The first plugin allows me to add invitation code box in registration form and the second one lets me create custom roles. What I like to do is to get the invitation code that the user has entered and then assign him to a specific role. How can I modify the register-plus-redux plugin to achieve my goal?
Links to plugins:
register-plus-redux
Press permit
I appreciate your help.
Use the WP after registration hook:
https://codex.wordpress.org/Plugin_API/Action_Reference/user_register
Grab the invitation code out of wp_usermeta for the user, and add your custom functionality.

Drupal create duplicate registration form with extra fields

I have a site built using drupal7. The site has a registration form now. There is a new requirement now for add a couple of new fields in the registration form and put it in a new page.
ie http://example.com/register is the existing drupal registration form and user submitting this form will be registered.
http://example.com/newpage is a new page with some content and registration form in it with two extra fields. When user submits this page a new user account will be created along with saving the new fields to the user profile.
Any ideas for implementing this in drupal is appreciated.
Thanks
Does it really have to be separated? Meaning that you need in both of your registration form (normal and a custom one). If not you can just add new fields to the "normal form" in the administration of your site, going to this path:
/admin/config/people/accounts/fields
In this interface you can add custom fields (like for content types) for user's profile. You can as well choose if the field appears during regitration.
You can do this in about 15 minutes with basic understanding of the form API by creating a custom module.
What you need to look into:
Creating a module
Creating a menu hook (for your new custom page)
go to /admin/config/people/accounts/fields and create the new fields and add them to registration form
hook_form_alter - add logic in your module to check if arg(0) != your new page, and if so then hide the additional fields.
This should be enough to get you started. If this answer freaks you out then your probably in over your head. Pull up your socks or get some help.

How to integrate wordpress advanced custom field option show in frontend for registered users?

I am using WordPress Advanced custom field Plugin (http://wordpress.org/plugins/advanced-custom-fields/). It's very useful back-end.
How to integrate Advanced custom field option show in frontend for registered users for post submitted form.
Thanks
Try this Advanced custom field's Documents and follow steps...
You can create form for adding post from front side...
May be this will help you...

Show Registration form in front end wordpress

I've searched and search but to no avail. I cant find a simple way to have the registration form on a page in my wordpress site. I've seen a lot of plugins that kind of do it but they also make you customize the form or have a gazzlion bugs in them. I just want to reproduce the register form that appears at:
www.example.com/wp-login.php?action=register
I dont want a members plugin either as I am in the midst of creating my own CRM type plugin.
Here is an (old) article about customizing your registration / login form:
http://digwp.com/2010/12/login-register-password-code/

add a new custom field to the register pages

I'm using Opencart 1.5.5.1.
I have researched for about 2 days now on how to add a new field to my registration pages (create new account, register checkout and guest checkout) but without any luck. It seems nobody has done a step-by-step tutorial on how to do this seeing that (as I understood) it is not that simple.
My question: How can I add new required fields to all my register pages in Opencart 1.5.5.1?
I wrote a post on how to add re-captcha captcha field in opencart registration page sometime back. Please have a look at this. You can follow this post and achieve what you want with slight modifications.

Categories