• Welcome to KonaKart Community Forum. Please login or sign up.
 

E-mail validation in EditCustomerBody.jsp

Started by renata, January 28, 2008, 01:21:21 pm

Previous topic - Next topic

renata

Hi,

I am modifying the EditCustomerBody.jsp , I removed the e-mail field and added its value (the same email) as a hidden field.
The problem is that it complains the e-mail address already exists. Is there any way to disable the email validation? Or remove an existing custumer?

Thanks,

Renata

ryan

Hi Renata,

You can remove an existing customer using the Admin App / Admin App API. If you want to implement checkout without registration, note that the latest version (v2.2.2.0) includes this feature out of the box. It uses an new API call called com.konakart.appif.forceRegisterCustomer which you can read about in the Javadoc:

This API Call is used rather than registerCustomer() when you want to provide a store that doesn't force customer registration. KonaKart requires a customer to be present in its database even if the store doesn't require registration. If a customer with the same eMail address already exists then the customer details and the primary address details are edited but the method doesn't throw an exception unlike registerCustomer(). You must still supply a password (which can be randomly generated) which you must then use to log in the customer so that he can checkout. If your online store lets users choose whether to register or not, this method should be used if a user decides not to register since you still require to gather the user's personal details such as name and address. If at some other time, the user decides to register, then the registerCustomer() method can be used which will throw an exception. At that point the customer can decide to have a new password sent to him in order to enable him to log in. Once logged in he will see all of his order history even for orders that were placed when he wan't registered. If the country has at least one zone defined in the database, then we verify that the State attribute of the CustomerRegistration object matches one of the defined zones, otherwise a kkInvalidZoneException is thrown. If a match is found, then the zoneId is saved in the database table. If no zones are defined for the country, then we don't make the check and save the State attribute directly in the database.

-Ryan