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

stripping out required input data

Started by johnteh1980, February 17, 2009, 11:03:24 pm

Previous topic - Next topic

johnteh1980

hi guys,

im just after a bit of forward thought regarding customizasions id like to do.

id like to really simplify customer and product data, so that customers dont need to register to order, or if they do then they dont need to enter all the fields in the default app (maybe just a username and password. address could be entered on checkout).

id also like to strip out a lot of product data too thats in there by default (having to enter product data for 3 different languages is one thing).

my question is: is this possible? can i strip out default data requirements from the app without getting a load exceptions due to missing data, even so far as maybe remove columns in the database?

just wondering if you've known this customizasion before, or whether id bite off more than i can chew.

thanks for your time.

julie

Quoteid like to really simplify customer and product data, so that customers dont need to register to order, or if they do then they dont need to enter all the fields in the default app (maybe just a username and password. address could be entered on checkout).


In the admin app under configuration>>Strore Configuration, select the Enable Checkout Without Registration option.

Quoteid also like to strip out a lot of product data too thats in there by default (having to enter product data for 3 different languages is one thing).


Delete the languages that you don't want from the DB and you won't be prompted to enter product details for these languages.

johnteh1980

Thats great. thanks

Would stripping out 'required' fields mean i have to reprogram the custom source code? What im getting at is: if i remove a field from say the customer i.e. telephone number, is the application going to always expect a customer to have a telephone number, as will the DB, as will reports and tables in the admin tool - so would not be an easy thing to do?

thanks again.

julie

If a customer field such as telephone is compulsory but you don't care about it, then you just don't present it to the customer when she is registering and you put in a dummy value automatically. You can also remove it from other JSPs and reports so that it never appears.

johnteh1980

yes i did think about using dummy values to pad the fields i didnt want, but it felt hacky to me. im happy to go down that route though, so will give it a whirl.

thanks very much for your time.

johnteh1980

sorry to keep asking - but im having a problem removing the 'state' field.

when i turn it off in the admin tool, the field disappears from the registeration, but it wont let me register. it keeps asking me to select a state from the drop down menu, even though it is not there.

iv added a hidden field:

<html:hidden name="RegisterCustomerForm" property="state" value=""/>

but its still asking. dont know why

johnteh1980

one thing iv noticed is that if i leave the city field empty, then the error message just mentions that the city field needs an entry. when i put in a city, that's when it mentions the state field being empty.

trevor

If you want to leave the state field empty then you should remove all of the states for your country from the database. If it finds states for a country, then it attempts to attach a state to the address.