CheckOutEvents setCheckOutPages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

CheckOutEvents setCheckOutPages

Stephen Rufle-2
In CheckOutEvents.setCheckOutPages(HttpServletRequest, HttpServletResponse)
the lines

Line 182
if (UtilValidate.isEmpty(selectedPaymentMethods)) {
        return "error";
}

prevents a message from being shown
on the "3)How shall you pay?" step of checkout
https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/checkoutoptions

When "Continue to Final Order Review" is clicked, but nothing has been
selected on the page.

If comment out the above lines I get "Please select a method of
payment." which seems like the correct response. This issue exists in
10.04 and trunk.

Should I create a JIRA issue and provide a patch, or am I missing
something about the page flow?
Reply | Threaded
Open this post in threaded view
|

Re: CheckOutEvents setCheckOutPages

Scott Gray-2
Hi Stephen,

When I'm trying to figure this stuff out I usually refer to the revision history for the file to try and get an idea of where things started to go wrong: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java?view=log

But it looks to me like CheckOutHelper.setCheckOutPayment(...) does its own validation so the if block you mention below does seem unnecessary.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 29/01/2011, at 6:02 AM, Stephen Rufle wrote:

> In CheckOutEvents.setCheckOutPages(HttpServletRequest, HttpServletResponse)
> the lines
>
> Line 182
> if (UtilValidate.isEmpty(selectedPaymentMethods)) {
> return "error";
> }
>
> prevents a message from being shown
> on the "3)How shall you pay?" step of checkout
> https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/checkoutoptions
>
> When "Continue to Final Order Review" is clicked, but nothing has been selected on the page.
>
> If comment out the above lines I get "Please select a method of payment." which seems like the correct response. This issue exists in 10.04 and trunk.
>
> Should I create a JIRA issue and provide a patch, or am I missing something about the page flow?


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: CheckOutEvents setCheckOutPages

Jacques Le Roux
Administrator
Stephen,

Feel free to open a Jira issue

Jacques

Scott Gray wrote:

> Hi Stephen,
>
> When I'm trying to figure this stuff out I usually refer to the revision history for the file to try and get an idea of where
> things started to go wrong:
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java?view=log 
>
> But it looks to me like CheckOutHelper.setCheckOutPayment(...) does its own validation so the if block you mention below does
> seem unnecessary.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 29/01/2011, at 6:02 AM, Stephen Rufle wrote:
>
>> In CheckOutEvents.setCheckOutPages(HttpServletRequest, HttpServletResponse)
>> the lines
>>
>> Line 182
>> if (UtilValidate.isEmpty(selectedPaymentMethods)) {
>> return "error";
>> }
>>
>> prevents a message from being shown
>> on the "3)How shall you pay?" step of checkout
>> https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/checkoutoptions
>>
>> When "Continue to Final Order Review" is clicked, but nothing has been selected on the page.
>>
>> If comment out the above lines I get "Please select a method of payment." which seems like the correct response. This issue
>> exists in 10.04 and trunk.
>>
>> Should I create a JIRA issue and provide a patch, or am I missing something about the page flow?

smime.p7s (8K) Download Attachment