Post by seniorx » Tue Mar 04, 2014 8:20 am

Hello, I tried to made some modifications on the register account function using fiverr but it went all wrong. So now I can't register any account because it says that you must enter the zipcode, even when you are entering it.
So I need to re install the account registration. I tried to do it, and re uploaded the original files of registration from opencart and my template. But for some reason it doesn't work, and still asking for the zipcode.

Can anyone save me with the list of files involved on registration, or the files that I should re upload. That would be very helpful.

Hope someone can help me with this.

Thanks

New member

Posts

Joined
Mon Aug 15, 2011 2:07 am

Post by seniorx » Sun Mar 09, 2014 2:44 am

Hello, please give me a hand with this.

Need to re install the account registration. I've tried re uploading from controller/account and catalog/view/theme but it still asking for the postcode. So I think that I'm not re uploading every file involved on registration.

What can I do??

The error that I'm getting is $_['error_exists'] from language/account/register.php

The error comes from catalog/controller/account/register.php

Code: Select all

if ($this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) {
      		$this->error['warning'] = $this->language->get('error_exists');
    	}
What should I check??

I don't know too much about code, but I searched for the "getTotalCustomersByEmail" and found this, nothing looks wrong for me.

Code: Select all

public function getTotalCustomersByEmail($email) {
		$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "'");
		
		return $query->row['total'];
	}
Thanks

New member

Posts

Joined
Mon Aug 15, 2011 2:07 am

Post by seniorx » Mon Mar 10, 2014 10:43 pm

Hello, just adding more info:

Users are able to register if they create an account on checkout. Someone knows why??

New member

Posts

Joined
Mon Aug 15, 2011 2:07 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 26 guests