not sure what an abn number is, but look at how the email is handled currently you can't create a second account with the same email address so you should be able to follow that as a template.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Hi XSecrets,
ok. Lets say ABN is a company name it's a text field.
i follow what is done for the email. but it couldn't work.
ive setup the error message. just one part which i didn't quite get.
in the file controllet/account/create.php
there's this code for the email.
if ($this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) {
$this->error['warning'] = $this->language->get('error_exists');
}
and the error message is "Error: E-Mail Address is already registered!"
which is in language/english/account/create.php
i've copied that code and made it like this:
if ($this->model_account_customer->getTotalCustomersByAbn($this->request->post['abn'])) {
$this->error['warning'] = $this->language->get('abn_exists');
}
and put in abn_exists error as :'Error: ABN is already registered!
then what i get in the browser is this:
Fatal error: Call to undefined method ModelAccountCustomer::getTotalCustomersByAbn() in /home/globalfo/public_html/catalog/controller/account/create.php on line 227
so. any idea?
maybe im missing something
ok. Lets say ABN is a company name it's a text field.
i follow what is done for the email. but it couldn't work.
ive setup the error message. just one part which i didn't quite get.
in the file controllet/account/create.php
there's this code for the email.
if ($this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) {
$this->error['warning'] = $this->language->get('error_exists');
}
and the error message is "Error: E-Mail Address is already registered!"
which is in language/english/account/create.php
i've copied that code and made it like this:
if ($this->model_account_customer->getTotalCustomersByAbn($this->request->post['abn'])) {
$this->error['warning'] = $this->language->get('abn_exists');
}
and put in abn_exists error as :'Error: ABN is already registered!
then what i get in the browser is this:
Fatal error: Call to undefined method ModelAccountCustomer::getTotalCustomersByAbn() in /home/globalfo/public_html/catalog/controller/account/create.php on line 227
so. any idea?
maybe im missing something
Is it the right place to post this? Can someone please help me with this : I do not want people to have to register to get an account before they can shop in my shop can I just deactivate the registration form somewhere?
Many many thanks
Many many thanks
no you cannot disable registration, but you can enable guest checkout, so people have the option to checkout without registering, though if you have downloadable products in your cart it won't be available as you can't do downloadable products without an account.preciousfoods wrote:Is it the right place to post this? Can someone please help me with this : I do not want people to have to register to get an account before they can shop in my shop can I just deactivate the registration form somewhere?
Many many thanks
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Thanks again! There is a "log in" and "account" nav menu though on my template... can I get rid of those?
of course. just edit the .tpl file in the default template it's in view/theme/default/template/common/header.tplpreciousfoods wrote:Thanks again! There is a "log in" and "account" nav menu though on my template... can I get rid of those?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Who is online
Users browsing this forum: No registered users and 45 guests