Document Properties
Kbid28594M
Last Modified04-Feb-2020
Added to KB07-May-2018
Public AccessEveryone
StatusOnline
Doc TypeGuidelines, Concepts & Cookbooks
Product
  • ICM 7.9
  • ICM 7.10

Concept - Order Deletion

1 Introduction

In the case the orders are exported to and archived in an external system (e.g., order management system, ERP) or if the data for a specific customer have to be deleted the ICM provides the order deletion feature. On the one hand side you may reduce costs for data storage on the other hand this also takes into account customer requests for data deletion in compliance with GDPR (General Data Protection Regulation).

The Order Deletion feature allows the shop manager to mark orders, e.g., for specific customers that have to be deleted by using the order status import. The system administrator is able to configure the deletion job in the SMC. The following chapters describe the order deletion workflow and also the side effects of the order deletion.

1.1 References

2 Feature Overview

2.1 Workflow

Following the e-commerce reference process we have to tag the order which has to be deleted in a first step. For setting this flag the order status import is ready-to-use. As a second step you have to run the order deletion job via SMC. We provide a default job via DBINIT. You can use the default job or create your own to match your requirements.

2.1.1 Mark Orders to be Deleted

Order status import schema

XSD
<xs:attribute name="toBeDeleted" type="xs:boolean"/>

Order status import example

XML
<order id="" status="" toBeDeleted="true">
<order id="" status="" toBeDeleted="false">

Find concrete example here Order Status Import. 

2.1.2 Delete Orders

For the order deletion we introduced the Job - Delete Orders. The job triggers order deletion with all according references. 

By default it deletes orders whose toBeDeleted flag is to true and whose status is not PENDING, MANUAL_INTERVENTION_NEEDED or EXPORTFAILED.

The status selection can be overwritten by defining the attribute ExcludedStatuses (data type: String), with comma separated values (e.g., ExcludedStatuses=NEW,EXPORTFAILED). If set to NONE no statuses are excluded.

It is also possible to define the maximum number of orders, which are to be deleted during a run (default 10,000). Larger values are not recommended due to possible database issues/locks. The value can be overwritten by the attribute MaxNumberOfOrders (data type: Integer).

Note

You have to trigger the RunCacheRefresh job after deleting an order via deletion job to update object references like PromotionPO:getPromotionOrderAssignmentPOs.

2.2 Side Effects

Orders are linked to some other objects in the Intershop Commerce Management. In the following you find such affected objects. Usual the orders are linked in each table. After a successful order deletion the link will be removed whereas the order number is still present.

2.2.1 Gift Cards & Certificates

For having a transaction overview about gift cards and certificates redeemed in the shop we provide a section in Marketing | Gift Cards & Certificates. Here the shop manager is able to check transactions for each bought gift card and certificate. In the transaction table a link to the related order.

Gifting_Transactions

2.2.2 Promotion Code Groups - Promotion Codes

To get an overview about the promotion codes redemption we provide a section in Marketing | Promotion Code Groups | Codes. Here the shop manager is able to check redemption of specific promotion codes. In the given table an order link is present.

MarketingPromotionCodes


2.2.3 Contracts

In a business channel the shop manager is able to create contracts for customers. To check the exceedance of the contract revenue we provide an order overview in Customers | Contracts for each contract. A link to the placed orders is present.

Contract_Orders


Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets