You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/06/02 08:14:09 UTC

svn commit: r780948 - in /ofbiz/trunk/specialpurpose: ecommerce/webapp/ecommerce/WEB-INF/controller.xml googlecheckout/config/googleCheckout.properties

Author: ashish
Date: Tue Jun  2 06:14:08 2009
New Revision: 780948

URL: http://svn.apache.org/viewvc?rev=780948&view=rev
Log:
For now we are sending only Cart Info to google and on completion of order in Google area user can return back to the owner website to purchase some other products. So we should empty the old cart first and then will navigate user to main page.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
    ofbiz/trunk/specialpurpose/googlecheckout/config/googleCheckout.properties

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=780948&r1=780947&r2=780948&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Tue Jun  2 06:14:08 2009
@@ -1817,6 +1817,12 @@
         <response name="error" type="none"/>
     </request-map>
     
+    <request-map uri="returnBackFromGoogle">
+        <security https="false" auth="false"/>
+        <event type="java" path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="clearCart"/>
+        <response name="success" type="view" value="main"/>
+        <response name="error" type="view" value="main"/>
+    </request-map>
     
     <!-- End of Request Mappings -->
 

Modified: ofbiz/trunk/specialpurpose/googlecheckout/config/googleCheckout.properties
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlecheckout/config/googleCheckout.properties?rev=780948&r1=780947&r2=780948&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlecheckout/config/googleCheckout.properties (original)
+++ ofbiz/trunk/specialpurpose/googlecheckout/config/googleCheckout.properties Tue Jun  2 06:14:08 2009
@@ -36,7 +36,7 @@
 ## URL to edit cart
 editCartUrl = http://localhost:8080/ecommerce/control/view/showcart
 ## continue shopping url after payment
-continueShoppingUrl = http://localhost:8080/ecommerce/control/main
+continueShoppingUrl = http://localhost:8080/ecommerce/control/returnBackFromGoogle
 
 ####Integration Parameters####
 ##location of template