[jira] [Commented] (OFBIZ-11838) One page checkout is broken because of ordermgr::getAssociatedStateList

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

[jira] [Commented] (OFBIZ-11838) One page checkout is broken because of ordermgr::getAssociatedStateList

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165069#comment-17165069 ]

ASF subversion and git services commented on OFBIZ-11838:
---------------------------------------------------------

Commit 1662e5b42ef5ee36dc2aa68544615340056b68de in ofbiz-framework's branch refs/heads/release17.12 from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=1662e5b ]

Fixed: One page checkout is broken because of ordermgr::getAssociatedStateList (OFBIZ-11838)

On orderview screen at the ordermgr, when a user tries to change the status of
the order, in OrderInfo.ftl, we are calling "changeOrderStatus" request as

<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>

Hence when the request is done, it is rewriting URL to
https://localhost:8443/ordermgr/control/changeOrderStatus/orderview.

When js functions running in the backend like "getAssociatedStateList" are
called, they are getting the wrong URL to send a request to. This was causing
the issue.

For now, there are two different fixes that can handle both problems which are
mentioned in OFBIZ-2562 and OFBIZ-11838.

1.
  To change the request mapping for "changeOrderStatus" and add request-redirect
  to "orderview" screen. Change the actions in the forms in OrderInfo.ftl to
  call "changeOrderStatus" request only and then remove code in
  "getAssociatedStateList" js function to rewrite URL.

2.
  To add .length to the existing URL rewrite code written in
  "getAssociatedStateList" js function as

if (jQuery('#orderViewed').length) {
    requestToSend = "/ordermgr/control/getAssociatedStateList"
}

Thanks: Pritam Kute!

I picked the 2nd solution


> One page checkout is broken because of ordermgr::getAssociatedStateList
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-11838
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11838
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Pritam Kute
>            Priority: Major
>             Fix For: 18.12.01, 17.12.05
>
>
> It works in example/control/FormWidgetExamples so it's an ecommerce issue. It also works at https://demo-stable.ofbiz.apache.org/ecomseo/onePageCheckout so it's something "recent"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)