Since for some reason there is no shipping address form in the commerce kit I am trying to add my own. I created an AddAddress Table and this stored procedure:
ALTER Procedure
CMRC_AddressAdd
(
@AddressID int OUTPUT,
@Address1 nvarchar(50),
@Address2 nvarchar(50),
@City nvarchar(50),
@State nvarchar(50),
@Zip nvarchar(50),
@Country nvarchar(50),
@Company nvarchar(50),
@Phone nvarchar(50),
@CustomerID int
)
AS
INSERT INTO
CMRC_Addresses
(
Address1,
Address2,
City,
State,
Zip,
Country,
Company,
Phone,
customerId
)
VALUES
(
@Address1,
@Address2,
@City,
@State,
@Zip,
@Country,
@Company,
@Phone,
@CustomerID
)
SELECT
@AddressID = @@Identity
I added an "Address" class to the customersDB.cs component and I also added this line to the register.aspx page:
String newAddress = accountSystem.AddAddress(customerId, Address1.Text, Address2.Text, City.Text, State.SelectedValue, Zip.Text, Country.Text, Phone.Text, Company.Text);
For some reaon nothing is being saved to the Address table.
Has anybody successfuly added address collecting capabilities to the Commerce Cart?
Thanks, Justin.