Post by alex067 » Mon Oct 09, 2017 6:53 am

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?

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by grgr » Mon Oct 09, 2017 8:01 am

v.3 twig templates are also cached.

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

Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by alex067 » Mon Oct 09, 2017 8:31 am

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?

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by somjai007 » Mon Oct 09, 2017 3:18 pm

Thanks for sharing.


หวยออนไลน์

Newbie

Posts

Joined
Sun Sep 10, 2017 3:06 pm

Post by coastalhomeandgifts » 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?


Posts

Joined
Mon Oct 09, 2017 8:13 pm

Post by alex067 » Tue Oct 10, 2017 5:21 am

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

New member

Posts

Joined
Wed Jul 12, 2017 9:50 am

Post by grgr » Tue Oct 10, 2017 7:37 am

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.

Image Image Image Image Image Image Image Image


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Johnny2017 » Wed Aug 15, 2018 7:01 am

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

Newbie

Posts

Joined
Wed Aug 23, 2017 12:05 pm
Who is online

Users browsing this forum: No registered users and 22 guests