This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release17.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/release17.12 by this push:
new 3470703 Fixed: User should not be directed to main page after adding product to cart from showcart page (OFBIZ-11223)
3470703 is described below
commit 3470703447c21ad14c030ab33ff1724a4d56e190
Author: Jacques Le Roux <
[hidden email]>
AuthorDate: Sat Jan 25 10:57:15 2020 +0100
Fixed: User should not be directed to main page after adding product to cart
from showcart page
(OFBIZ-11223)
Navigate to URL:
https://demo-trunk.ofbiz.apache.org/ecomseo/ Click on View Cart at top-right of the page (User will be directed to showcart page)
Enter product number (Eg: GZ-2644)
Enter quantity
Click on add to cart
Product is added to the cart but user is directed to main page of ecommerce.
Thanks: Arpit Mor for report, Sourabh Punyani for the fix
---
ecommerce/webapp/ecommerce/WEB-INF/controller.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
index 5fc752a..23a5e9c 100644
--- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
+++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
@@ -241,7 +241,7 @@ under the License.
<request-map uri="additem">
<security https="false" auth="false"/>
<event type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="addToCart"/>
- <response name="success" type="view-last" value="showcart"/>
+ <response name="success" type="view-last" save-last-view="true" value="showcart"/>
<response name="survey" type="view" value="survey"/>
<response name="product" type="view" value="product"/>
<response name="viewcart" type="request-redirect-noparam" value="showcart"/>