add a new custom field to the register pages - php

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.

Related

Skip login/registration in magento one page checkout

I have only one product on my site, so I don't want the hassle of login/register for my users on onepage checkout. Hence I want my onepage checkout to skip and hide login/registration and directly take every checkout as guest checkout. I'm a new magento developer so have very limited knowledge about blocks, models, etc.
Below is the article which shows how it can be done, but I cannot implement it
http://excellencemagentoblog.com/blog/2011/10/17/magento-onestep-checkout-remove-login-step/
Can anyone just help me with the paths I need to create this files. I have asked the same question on magento stackexchange but no one replies there
Actually I am new magento developer so don't know how play with model, block etc. which the tutorial in my question did not explained clearly. Followed this tutorial to achieve this in 3 simple steps. Just there's a slide change due to the intro of persistent directory in /template. In step 2, the path you need to edit is template/persistent/checkout/onepage/login.phtml and you are done!

woocommerce custom field configuration

I need your help. Its my first time when I use woocomerce in WP and I don't know how to add custom button. On public product view I must add button with link to selected wikipedia page. On private admin product view I need custom url or text field in (wp-admin->product->add product).
Okey now I create custom field and taxonomiex but I don't know what next.
I tried to find some tutorials but I did not give advice.
I also had a similar situation like this. I purchased a plugin to fix it due to tight deadline. You can do it using below methods:
1) By using ready to use plugins
https://wordpress.org/plugins/woocommerce-custom-product-data-fields/screenshots/
(Free one)
https://codecanyon.net/item/woocommerce-custom-fields-product-addons/11332742
(Paid one)
2) You can also create a plugin by yourself
Basically a plugin will allow you to modify the site as you require without modifying the wordpress core. Learn about Hooks and Filters.
I would suggest you to go with 2nd option, learn to develop plugins so that it will be helpful for you in the long run. Read the documentation https://codex.wordpress.org/Plugin_API. It will take some time but it is worth it.

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.

Create woocommerce custom form

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.

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/

Categories