BV Commerce Forum
»
BV Commerce Support
»
General Support
»
197: Shipping Control (Shipping.ascx) only checks zip code
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
The Shipping user control (Shipping.ascx) only validates the shipping address zip code, even though some methods may also require City and Region. I have attached a modified version of Shipping.ascx.vb that scans the applicable shipping methods and then checks the associated provider to see if City, Region, and/or PostalCode is required. If it is and the corresponding field is blank then the appropriate message is displayed. I also added some code so that a small script is injected into the page. You can call the script from the Checkout page (Checkout.aspx) to display a short message while retrieving rates. For example, Code: <anthem:DropDownList ID="ShippinglstState" runat="server" AutoCallBack="true" PreCallBackFunction="RetrievingRates" TabIndex="1110"> </anthem:DropDownList>
<anthem:TextBox ID="ShippingpostalCodeField" runat="server" AutoCallBack="true" Columns="10" PreCallBackFunction="RetrievingRates" TabIndex="1112"> </anthem:TextBox>
File Attachment(s): Shipping.ascx.vb (7kb) downloaded 11 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
I have attached a version of EstimateShipping.aspx (and code) that scans the shipping methods to determine which fields are required. Only the required fields are displayed. It is also "Anthemized" for a slightly better experience when the providers take time to respond. File Attachment(s): EstimateShipping.aspx (4kb) downloaded 11 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.