Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
I posted a ticket on this but thought I would put it out to the forums to see if anyone has figured out a way to eliminate if a customer uses a dash in the zip -- if they enter a 9-digit zip, such as 22601-7788 FedEx Ground/Home Delivery will not return a rate.
Alternatively is there a way to limit the zip to five characters? |
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hey Joe, Sorry this took so long. It has been hectic around here! Here is the update to take care of this issue. Open your Checkout.aspx.vb file and make the following changes:
' Comment or delete the first line, then add the second 'a.PostalCode = Me.ShippingpostalCodeField.Text.Trim a.PostalCode = Me.ShippingpostalCodeField.Text.Trim().Replace("-", "")
This will correct the checkout page. To fix the popup window on the cart page, edit your EstimateShipping.aspx.vb file (found in the site root) and make the following changes:
'Basket.ShippingAddress.PostalCode = Me.ZipCodeField.Text.Trim Basket.ShippingAddress.PostalCode = Me.ZipCodeField.Text.Trim.Replace("-", "")
Thanks, |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
Very nice -- thanks Everett |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
|
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
Everett -- Just checking -- I notice an extra set of parentheses () after the Text.Trim in the first correction but not in the second -- is that correct? |
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hey Joe.
You can remove the () |
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hey Joe,
Sorry about that. Butter fingers got me.
Thanks, |
Everett Comstock
BV Software |
|
|
|
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.