You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2026/04/16 12:07:02 UTC
(ofbiz-plugins) branch trunk updated: FIXED: Issue on canceling an item from multi item order ecommerce order view page by customer. (#203)
This is an automated email from the ASF dual-hosted git repository.
arunpatidar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push:
new 31d50a981 FIXED: Issue on canceling an item from multi item order ecommerce order view page by customer. (#203)
31d50a981 is described below
commit 31d50a9816ce5e7167af111382dbb475f056f548
Author: Arun Patidar <ar...@hotwax.co>
AuthorDate: Thu Apr 16 17:36:56 2026 +0530
FIXED: Issue on canceling an item from multi item order ecommerce order view page by customer. (#203)
Co-authored-by: arunpatidar <ar...@apache.org>
---
ecommerce/data/EcommerceSecurityData.xml | 3 +++
ecommerce/template/order/OrderItems.ftl | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ecommerce/data/EcommerceSecurityData.xml b/ecommerce/data/EcommerceSecurityData.xml
index 08596ccf5..00ff3db00 100644
--- a/ecommerce/data/EcommerceSecurityData.xml
+++ b/ecommerce/data/EcommerceSecurityData.xml
@@ -19,4 +19,7 @@ under the License.
-->
<entity-engine-xml>
<SecurityGroup description="Customer user of ECOMMERCE Limited access to own account" groupId="ECOMMERCE_CUSTOMER"/>
+ <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="ECOMMERCE_CUSTOMER" permissionId="ORDERMGR_ROLE_VIEW"/>
+ <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="ECOMMERCE_CUSTOMER" permissionId="ORDERMGR_ROLE_CREATE"/>
+ <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="ECOMMERCE_CUSTOMER" permissionId="ORDERMGR_ROLE_UPDATE"/>
</entity-engine-xml>
diff --git a/ecommerce/template/order/OrderItems.ftl b/ecommerce/template/order/OrderItems.ftl
index 3427733b9..ae9d40248 100644
--- a/ecommerce/template/order/OrderItems.ftl
+++ b/ecommerce/template/order/OrderItems.ftl
@@ -33,6 +33,7 @@ under the License.
<form name="addCommonToCartForm" action="<@o...@ofbizUrl>" method="post">
<input type="hidden" name="add_all" value="false" />
<input type="hidden" name="orderId" value="${orderHeader.orderId}" />
+ <input type="hidden" name="orderItemSeqId" value="" />
</#if>
<div class="card-header">
<strong>
@@ -268,9 +269,8 @@ under the License.
</td>
<td>
<a
- href="javascript:document.addCommonToCartForm.action='<@o...@ofbizUrl>';document.addCommonToCartForm.submit()"
+ href="javascript:document.addCommonToCartForm.action='<@o...@ofbizUrl>';document.addCommonToCartForm.orderItemSeqId.value='${orderItem.orderItemSeqId}';document.addCommonToCartForm.submit()"
class="d-inline-block mt-2">${uiLabelMap.CommonCancel}</a>
- <input type="hidden" name="orderItemSeqId" value="${orderItem.orderItemSeqId}"/>
</td>
</tr>
</#if>
@@ -357,4 +357,4 @@ under the License.
</form>
</#if>
</div>
-</div>
\ No newline at end of file
+</div>