Page 1 of 1

How to modify registration?

Posted: Mon Oct 09, 2017 6:53 am
by alex067
The default registration page requires too much information for our website. We only require:
first name, last name, email, and password

I went on the template/affiliate/register.twig and removed the telephone div to see if it would remove telephone, but nothing changed. What file do I have to modify so I can remove the unecessary fields?

Re: How to modify registration?

Posted: Mon Oct 09, 2017 8:01 am
by grgr
v.3 twig templates are also cached.

Switch this off in the admin while making changes. Gear icon top right of dashboard

Re: How to modify registration?

Posted: Mon Oct 09, 2017 8:31 am
by alex067
Thanks got it to work.

My last question:

So I just need first name, last name and the email. I need to remove everything else.

Where do I have to remove it? Because I know opencart is adding these information to the database, and the model is probably querying the database for those information.

I know I have to remove those information from:
the model affiliated to account->register and checkout->register
the twig file affiliated to account->register and checkout->register

am i missing something else?

Re: How to modify registration?

Posted: Mon Oct 09, 2017 3:18 pm
by somjai007
Thanks for sharing.


หวยออนไลน์

Re: How to modify registration?

Posted: Mon Oct 09, 2017 8:17 pm
by coastalhomeandgifts
On checkout page the text: "Do you Have a Coupon or Voucher?" Do you know where i can edit the text?

Re: How to modify registration?

Posted: Tue Oct 10, 2017 5:21 am
by alex067
bump

would it be better to remove the lines or do dipslay style:hidden ?

just concerned about the model and db, i know if I deleted any registration fields, I would have to remove it from everywhere to avoid any issues

Re: How to modify registration?

Posted: Tue Oct 10, 2017 7:37 am
by grgr
You'll need to alter the validate() function in the controller file.

However, I haven't looked, but you might find that this gives further problems at the checkout.

Re: How to modify registration?

Posted: Wed Aug 15, 2018 7:01 am
by Johnny2017
coastalhomeandgifts wrote:
Mon Oct 09, 2017 8:17 pm
On checkout page the text: "Do you Have a Coupon or Voucher?" Do you know where i can edit the text?
I'm using journal 2 Theme
public_html/your website directory/catalog/view/theme/journal2/template/journal2/checkout/coupon_voucher_reward.tpl
or
public_html/catalog/view/theme/journal2/template/journal2/checkout/coupon_voucher_reward.tpl