Post by dumper » Thu Jul 29, 2010 9:03 am

Hi.

Im just wandering if i can do this.
basically during registration, if the abn number has been use in a previous registration. it will not be valid for another registration.

please help me.

John

Newbie

Posts

Joined
Thu Jul 29, 2010 9:01 am

Post by Xsecrets » Thu Jul 29, 2010 9:22 am

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


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by dumper » Thu Jul 29, 2010 3:22 pm

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

Newbie

Posts

Joined
Thu Jul 29, 2010 9:01 am

Post by dumper » Thu Jul 29, 2010 3:51 pm

nvm. problem solved

there's a file at catalog/model/account/customer.php that needs to be edited.
thanks

Newbie

Posts

Joined
Thu Jul 29, 2010 9:01 am

Post by preciousfoods » Fri Jul 30, 2010 1:30 am

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

Active Member

Posts

Joined
Sat Jul 17, 2010 11:35 am

Post by Xsecrets » Fri Jul 30, 2010 1:49 am

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
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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by preciousfoods » Fri Jul 30, 2010 3:05 am

Thanks again! There is a "log in" and "account" nav menu though on my template... can I get rid of those?

Active Member

Posts

Joined
Sat Jul 17, 2010 11:35 am

Post by Xsecrets » Fri Jul 30, 2010 3:08 am

preciousfoods wrote: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.tpl

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by preciousfoods » Fri Jul 30, 2010 3:16 am

And thanks again!

Active Member

Posts

Joined
Sat Jul 17, 2010 11:35 am
Who is online

Users browsing this forum: No registered users and 45 guests