• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Andy Miller
#1 Posted : Wednesday, October 18, 2006 4:38:01 PM(UTC)
Andy Miller

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Andy Miller
#2 Posted : Wednesday, October 18, 2006 8:26:37 PM(UTC)
Andy Miller

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012