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

Notification

Icon
Error

logicblock
#1 Posted : Thursday, December 27, 2007 10:29:47 AM(UTC)
logicblock

Rank: Member

Joined: 2/15/2007(UTC)
Posts: 37

This bug appears to be a validation error on the "Checkouts/Paypal Express/Checkout.aspx" page.

1. Create a Free Shipping offer for a specific product.
2. Add said item to cart.
3. Proceed to the Paypal Express Checkout.
4. Login to PayPal.
5. Review your information & click Continue (leaving PayPal and going to "Checkouts/Paypal Express/Checkout.aspx")
6. Select "$0.00 - Free Shipping" and click Place Order.

You will notice that "A Shipping Method Must Be Selected" appears.

Upon looking closely at the page source, we noticed that the Free Shipping option has no value - refer to code below.

<input id="ctl00_MainContentHolder_ShippingRatesList_0" name="ctl00$MainContentHolder$ShippingRatesList" [red]value=""[/red] type="radio">
<label for="ctl00_MainContentHolder_ShippingRatesList_0">$0.00 - Free Shipping.</label>

We have validated this on SP3 (upgraded from SP2) as well as a fresh install of SP3.1

This is something that we had brought to your attention a while ago for the previous versions of BVC5: http://forums.bvcommerce...lt.aspx?f=88&m=51195

Thank you.
logicblock
#2 Posted : Thursday, December 27, 2007 11:31:50 AM(UTC)
logicblock

Rank: Member

Joined: 2/15/2007(UTC)
Posts: 37

A quick fix is to do the following.

1. Comment out the BVC5 validator on "Checkouts/Paypal Express/Checkout.aspx" approx line 107:
<!--<bvc5:BVRequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ShippingRatesList"
Display="Dynamic" ErrorMessage="A Shipping Method Must Be Selected." ForeColor=" " CssClass="errormessage">*</bvc5:BVRequiredFieldValidator>-->

2. ADD to "Checkout.aspx.vb" approx line 175 after Me.ShippingRatesList.DataBind():
If ShippingRatesList.Count > 0 Then
ShippingRatesList.Item(0).Selected = True
End If
logicblock
#3 Posted : Thursday, December 27, 2007 11:38:47 AM(UTC)
logicblock

Rank: Member

Joined: 2/15/2007(UTC)
Posts: 37

SORRY.

Obviously used wrong commenting method.

<%--<bvc5:BVRequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ShippingRatesList"
Display="Dynamic" ErrorMessage="A Shipping Method Must Be Selected." ForeColor=" " CssClass="errormessage">*</bvc5:BVRequiredFieldValidator>
--%>
kenkee
#4 Posted : Friday, February 15, 2008 2:26:57 AM(UTC)
kenkee

Rank: Member

Joined: 6/6/2004(UTC)
Posts: 45

ASN: Good info but i think there is small typo in your code. You missed out ".items" before ".count" and ".items" should be ".item".

So, here is the code I have just tested and it works.

If ShippingRatesList.Items.Count > 0 Then
ShippingRatesList.Items(0).Selected = True
End If
jetheredge
#5 Posted : Friday, February 15, 2008 10:41:43 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Can you guys test this fix for us and let us know your results.
File Attachment(s):
PaypalCheckout.zip (6kb) downloaded 67 time(s).

You cannot view/download attachments. Try to login or register.
Justin Etheredge
Senior Software Engineer
BVSoftware
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