Usage
The safe order of work
Section titled “The safe order of work”- Back up the database. Rules that delete or anonymize cannot be undone.
- Decide the periods with your adviser. The add-on has no idea which periods apply to you; the defaults are only a starting point.
- Add rules (paused), preview each one, read the counts and examples, activate the ones you want.
- Switch live mode on in the settings. Until then every button and the cron job only count.
- Press Run now once, look at the run page and the order list, then let cron work through what you approved. Cron only processes the records of a valid preview approval, so preview your rules again at least every 30 days (and after any change); a rule with an expired approval is skipped and says so on the rules page.
The rules page
Section titled “The rules page”Administration → Data retention lists your rules with the period, the action, the last preview, the last run and the state:
- Active / Paused: a paused rule is never run, not even by cron.
- Previewed: ready / the reason it is not: a rule only runs with an approval from a preview. The approval is bound to that preview: the live run uses the cutoff of the preview and never processes more records than the preview counted (records that appeared or became old after it wait for the next preview). The approval is withdrawn when the rule or the order settings change, after 30 days, when the preview was made while live mode was off, and when its records are used up. The dry run of the cron job refreshes the counts but does not approve anything.
- Preview, Run now, Pause / Activate, Edit, Delete per rule; Preview all rules and Run all ready rules in the menu at the top.
If the list is empty, Add the starting set (paused) creates one paused rule for each common type your store has.
Data types
Section titled “Data types”| Type | What a rule does | Counted from |
|---|---|---|
| Guest orders | Anonymizes (or deletes) orders placed without an account. Choose the order statuses; the default is Complete, Declined, Failed and Canceled, so open orders are never touched. | Order date |
| Orders of registered customers | The same for the contact copy on orders of customers with an account. | Order date |
| Inactive customer accounts | Accounts without a sign-in, activity or order for the whole period. Anonymize disables the account and removes name, address, phone, e-mail, custom fields, saved cart, referrer and newsletter entries. Delete anonymizes the account’s orders first (the core would turn them into guest orders with all their data). An account with a newer order is never touched. | The latest of last sign-in, last activity and registration |
| Abandoned carts | Deletes saved carts of guests, of signed-in customers, or both. Counted in cart lines, in the preview, the cap and the audit log alike. | Last change of the cart |
| Core log | Deletes entries of Administration → Logs (optionally only some log types). | Time of the entry |
| Unconfirmed newsletter signups | Deletes subscribers who were asked to confirm a double opt-in subscription and never did, when the Newsletters add-on is active. A subscriber on a list without double opt-in is active (the core mails them) and is never touched, even if the flag says unconfirmed. | Signup time |
| Call requests | Anonymizes (name, phone, notes) or deletes requests of the Call requests add-on; choose the statuses. | Request time |
| Product reviews (personal data) | Removes name, IP address, city and account link; the rating and text stay, so averages do not change. | Review date |
| Return requests (RMA) | Clears the customer comment or deletes the request; choose the statuses. Delete also removes the return data on the order lines and the refund record, so it follows the order delete safeguards (setting and minimum age). | Request date |
| Customer and vendor messages | Multi-Vendor customer threads: empties subject and texts, or deletes the thread. Vendor-to-administrator threads are business correspondence and are left alone unless you tick the option. | Last message |
A type whose add-on is not installed is shown as “Not available in this store” and skipped.
What “anonymize” does to an order
Section titled “What “anonymize” does to an order”Removed: first and last name, company, billing and shipping address (street, city, state, postal code, phone), phone, fax, URL, IP address, customer comment and staff notes (settings), custom profile field values (setting), stored payment information, the copy of the customer’s name, address and phone inside the shipping groups of the order, text the customer typed into product options and files the customer uploaded for an option. The e-mail becomes anonymized-<order id>@anonymized.invalid.
What stays: names of the products and vendors, prices, the product options you offered (only the customer’s own text is removed), tax data and the country (setting). A reprinted invoice or packing slip of an anonymized order therefore shows no name and no address. If you must be able to reprint complete invoices, do not anonymize orders until your invoice retention period has passed, or keep the PDFs yourself.
Kept: totals, subtotal, discounts, taxes, shipping cost, items, status, dates, payment and shipping method, the country (setting), documents and shipments.
Orders are marked, so an order is anonymized once and never selected again. In Multi-Vendor the parent order is anonymized together with its last child order. When the core GDPR add-on is active, the consent log entries of a guest lose their e-mail address once no other order or account uses it.
Deleting
Section titled “Deleting”A rule with the action Delete needs a tick in “I understand that this rule can delete data permanently”. For orders there are two more guards: the setting Allow rules that delete orders must be on, and the period must be at least Never delete orders younger than (months). The guards are checked again at run time, so switching the setting off stops an existing rule.
On CS-Cart and CS-Cart Ultimate, deleting an order here uses the same cleanup as the core (items, order data, documents, shipments, files and the core delete_order hook that other add-ons listen to), but without the status change the core makes first. The core puts an order into the Incomplete status before deleting it, which returns the products to stock; deleting hundreds of old completed orders that way would inflate your inventory. This add-on does not touch stock.
On Multi-Vendor orders are never deleted, only anonymized. The marketplace’s core delete_order handler removes the vendor payout rows of the order (which changes vendor balances) and deletes the parent order through the core function, which restocks the goods. Order delete rules cannot be saved on Multi-Vendor and a leftover one is refused at run time.
Core GDPR engine (inactive accounts)
Section titled “Core GDPR engine (inactive accounts)”The rule option Anonymiser: core GDPR anonymiser runs the core code (also used by the Anonymize button of the customer page). It rewrites every order of the customer, including orders that only match by e-mail address, whatever their age or status, and it masks the country and the IP address; the keep the country setting and the rule’s order option do not apply, so those orders drop out of country-based tax and OSS reports. The orders are still marked and listed in the audit log as “Orders of anonymized accounts”, and the consent log entries are re-addressed. It only works from Run now (it needs the signed-in administrator’s session); the cron job always uses the own engine.
Preview
Section titled “Preview”Preview counts what the rule would process (plus the related records a run changes with them: Multi-Vendor parent orders, the orders of accounts) and shows the first five record ids with their dates. It changes nothing and writes no audit entries. It is listed in History as a dry run. Previewing from the page marks the rule as reviewed.
Run now asks for confirmation (backup question), processes the rule in batches under a lock, stops at the safety cap or the time budget (the run is then marked “Finished, more to do” and continues next time) and opens the run page: counts per rule and the audit entries.
Only one run can be active at a time, across the admin panel and cron. A second one is refused with “Another run is in progress”.
History and audit log
Section titled “History and audit log”History and audit log lists every run (preview, manual, cron), its status and the number of records. A run page shows the rules with their counts and, for live runs, the audit entries: type, action and record id (or the number of rows for carts and logs) with the time. Export audit log (CSV) exports everything or one run. The log never contains names, e-mail addresses or other personal data of the processed records.
Multi-Vendor
Section titled “Multi-Vendor”- Rules and runs belong to the marketplace owner.
- Child orders are ordinary orders, so one rule covers the vendors’ copies; the parent order follows its last child.
- With Show the retention policy to vendors on, vendors get Data retention policy (Vendors menu, or Seller tools): the active rules for data they can see, the number of their orders and how many are anonymized. It is read-only.
- Vendors cannot open the rules, history or export, and cannot preview or run anything.
Ultimate
Section titled “Ultimate”The page opens with All storefronts selected. A rule can be limited to one storefront company (orders, accounts, call requests).
Orders page
Section titled “Orders page”An anonymized order shows “Personal data anonymized” with the date in the sidebar of the order page.