You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2012/05/08 08:07:52 UTC

svn commit: r1335347 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml

Author: jleroux
Date: Tue May  8 06:07:51 2012
New Revision: 1335347

URL: http://svn.apache.org/viewvc?rev=1335347&view=rev
Log:
A patch from Ankit Jain "Continue shopping does not work" https://issues.apache.org/jira/browse/OFBIZ-4834

After submitting an order using quick checkout, when you want to add products from main page (using Continue shopping or not), at the 1st product you add you get directly to quick checkout and would have to get back to the main page to add another product

This was happening because we had used save-current-view="true" for "quickCheckout" request and in the addItem request we are using view-last that's why it was redirecting to quickCheckout after adding item. 

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1335347&r1=1335346&r2=1335347&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Tue May  8 06:07:51 2012
@@ -244,7 +244,7 @@ under the License.
     <request-map uri="additem">
         <security https="false" auth="false"/>
         <event type="java" path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
-        <response name="success" type="view-last" value="showcart"/>
+        <response name="success" type="view-last" value="showcart" save-last-view="true"/>
         <response name="survey" type="view" value="survey"/>
         <response name="product" type="view" value="product"/>
         <response name="viewcart" type="request-redirect" value="showcart"/>