I want to Add a "How did you hear about us?" field to the create account page. Does anyone know how this could be done. Thanks.
I want to Add a "How did you hear about us?" field to the create account page. Does anyone know how this could be done. Thanks.
Don't actually know the answer, but our devs repurposed the Billing Suite and delivery suite (shipping if you speak American) fields, 'cos we reckoned they wern't needed anyway. see omax.org, (don't ask!)
Used these fiels for "if you're out, where do we leave it' etc & we added a "How you hear about us" field too, so it can be done.
Last edited by omaxuk; 01-21-2010 at 04:43 PM. Reason: Added more info
You are going to want to start with the createaccount.aspx + createaccount.aspx.cs. If you don't have source, then you can't change the existing add customer functions, but it's pretty easy to add in your own SQL updates after the standard inserts are done. Look around line 621, for the CreateAccount() private method.
Matthew Bertulli
Demac Media
mbertulli@demacmedia.com
Custom Web Design & E-Commerce Development
AspDotNetStoreFront Platinum DevNet Partner
----
Custom Skinning & Design
Web Services Integration
Custom Reporting
Salesforce.com eCommerce AspDotNetStoreFront Integration
Another way I did it was simple do the following;
in the aspx page add a new textbox.
Then add the results to the NOTES property of the AddAccount() function.
Does this make sense?
Specifically, how do you post the results to the Notes section of the customer's record?
OK. Lets assume your adding a field called "Business Type"
1. You add a Text Box to the aspx page and call it id="txtBusinessType"
2. Then in the createacount.aspx.cs page (around line 690 ish) you will see
Change that to reference your new text box..Code:/*Notes*/ null,
So now whenever your store saves a new account instead of saving a null (empty) value in the notes it is saving the text from your new text box.Code:/*Notes*/ "Business Type:" + txtBusinessType.Text,
You can then add validation controls if required etc..
Hope this helps.
Thank you for expanding on this, it is very helpful!