Post by rexa » Fri Dec 16, 2016 12:23 pm

I'm using opencart 2.3.0.2

So, I made my registration fields to only ask for first/last name and password.

The aesthetic problem I am encountering is that once registered, the client will have an entry into their addressbook of their account with their first and last name (no address though). Is there any way I can prevent for an addressbook entry to be created? I've looked throughout the entire register.php file but I cannot conclude which line of code writes and saves to the addressbook. Or, should I be looking at my register.tpl line of code in my custom theme folder?

Newbie

Posts

Joined
Mon Dec 05, 2016 9:10 am

Post by rjcalifornia » Sat Dec 17, 2016 12:07 pm

Did you look at the account.php file?

Path:
/catalog/controller/account/account.php

Image
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by opencartmart » Sat Dec 17, 2016 1:00 pm

You can find it in catalog/model/account/customer.php and function name is addCustomer

After doing this, it might be raised other issues. For example, Delivery/Shipping address dropdown will be empty during their first checkout. So do it in own risk!

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by rexa » Sun Dec 18, 2016 2:51 pm

Thanks! It's the customer.php I should've been looking at it seems.

That is true that the delivery/shipping address dropdown will be empty during their first checkout. It would've been mostly empty regardless though since only the first and last name was appearing anyhow - so I need to remake my vqmod further to avoid any empty dropdown addresses now. I just didn't know where to look for the coding and the suggestions here were very helpful. Thanks again!

Newbie

Posts

Joined
Mon Dec 05, 2016 9:10 am
Who is online

Users browsing this forum: No registered users and 8 guests