Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: AspDotNetStorefront's custom controls

  1. #1
    seros is offline Junior Member
    Join Date
    Mar 2010
    Posts
    2

    Default AspDotNetStorefront's custom controls

    Hi,
    We have AspDotNetStorefront ML 9.0.1.2/9.0.1.2 for developers and we have some problems about custom controls. We submit a ticket but they told us that posting this to forum will be more helpful. Here are my questions:
    1- account control used in createaccount.aspx. We want to add to date of birth and gender on that control. How can we add them and Do tables in database support this change?
    2- While getting shipping information from customer, we want to check if they write Postal Code in correct format. How can we add our custom validator?
    3- We want to add one more checkbox to createaccount.aspx which gets confirmation to send mail to customer's house or work. Do we need to add new table to database to keep that information? or Is there any other way to do that?

    Any ideas would be greatly appreciated. Thanks.
    Last edited by seros; 05-13-2010 at 07:59 AM.

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    1 - This would require some source code mods to make it part of the same control. You would need to edit the Address class in the AspDotNetStorefrontControls project to add the fields to display it (in the CreateChildControls method) and the Address class in AspDotNetStorefrontCore to save that data. If you want it accessible in other places on the site, that'll probably take some mods to the Customer class as well. The Customer table already has all of the fields you'll need.

    2 - We already validate zip codes if you enter a RegEx for formatting them. Go to Taxes -> Edit Countries in the admin site and you can add those for the countries we didn't pre-populate (this is in version 9 only).

    3 - Most of the tables in the database have at least one 'ExtensionData' column, which isn't used for anything in the core code. You can store whatever data you need there. I would add your checkbox and then write the value to the Customer table's ExtensionData with a direct SQL insert when the account is created. That would let you do this without source code.

  3. #3
    seros is offline Junior Member
    Join Date
    Mar 2010
    Posts
    2

    Default

    Thanks for your response.

    Somehow we downloaded the code which did not have source code of controls. There was only dll. We re-downloaded it and we got the source code of controls. It solves our problems.