Author: jleroux
Date: Thu Apr 4 12:17:35 2019
New Revision: 1856917
URL:
http://svn.apache.org/viewvc?rev=1856917&view=revLog:
Fixed: Unable to create new quote from cart at eCommerce store
(OFBIZ-10886)
Actually we decided that an external user should not be able to create quotes
but only requests for quote.
This disables creating quotes from the ecommerce. An authorised user can still
do the same from the backedn (order manager)
Thanks: Sanjay Yadav for initial report, Sasikant Biswal for trying, Pierre for
mentioning that this should not be open to external users and Pawan Verma for
the fix
Modified:
ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl
ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl?rev=1856917&r1=1856916&r2=1856917&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/cart/ShowCart.ftl Thu Apr 4 12:17:35 2019
@@ -555,9 +555,7 @@ under the License.
<#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
<a href="<@ofbizUrl>createCustRequestFromCart</@ofbizUrl>" class="btn btn-outline-secondary btn-sm">
${uiLabelMap.OrderCreateCustRequestFromCart}
- </a>
- <a href="<@ofbizUrl>createQuoteFromCart</@ofbizUrl>" class="btn btn-outline-secondary btn-sm">
- ${uiLabelMap.OrderCreateQuoteFromCart}</a>
+ </a>
<#else>
${uiLabelMap.OrderYouMust}
<a href="<@ofbizUrl>checkLogin/showcart</@ofbizUrl>" class="btn btn-outline-secondary btn-sm">
Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1856917&r1=1856916&r2=1856917&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Thu Apr 4 12:17:35 2019
@@ -1553,12 +1553,6 @@ under the License.
<response name="success" type="request" value="showcart"/>
<response name="error" type="request" value="showcart"/>
</request-map>
- <request-map uri="createQuoteFromCart">
- <security https="true" auth="true"/>
- <event type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="createQuoteFromCart"/>
- <response name="success" type="request" value="showcart"/>
- <response name="error" type="request" value="showcart"/>
- </request-map>
<request-map uri="createCustRequestFromShoppingList">
<security https="true" auth="true"/>
<event type="service" invoke="createCustRequestFromShoppingList"/>