Search:  

Previous pageTechniques & KB Articles Next page
Deleting all historic cart data 

Deleting all historic cart data

Normally cart transaction data is preserved in an auditable form, made available via read-only views.

However there are occasions when it is useful to be able to delete all cart transaction data, to give a site a fresh start.

While there is no function to do this via the user interface, the following script can be executed to do this.

It is recommended you take a backup / export of your site before running this script.

Download the script here (the download file is a .zip file - you should extract that to obtain a .wsf file you can execute)

The script should be executed with Administrator privileges if your machine has UAC enabled.

To run the script, execute (depending on your path):

C:\Windows\SysWOW64\cscript "C:\Program Files (x86)\Enstar\neatComponents\scripts\DeleteCarts.wsf" /siteid [siteid] 

where [siteid] (without the square brackets) is the id of the site.

To find the siteid, open any page of the site in your browser, and choose View Source. Scroll to the bottom, where there will be a comment line like:

<!-- Created: 28 January 2014 21:35:48; version: 1.3.3956; ref: 9583; -->

In the above example the siteid is 9583

Notes:

  • The script will reset cart numbering back to 1.
  • The script will not remove any records from 'Additional details' tables. 
           
 

DATA

Managing Data

Tables

Referential Integrity 

Data Entry Forms

Queries and Views

Custom Views

 

USERS & SECURITY

Users & Permissions

User Group Manager 

User Registration

Access Codes & Agreements

Personalizing Experience

Managing Profiles

 

SaaS

SaaS Server

SaaS Site Manager

SaaS Client Accounting

SaaS Templates & Clones

SaaS Self Service

Associates System 

 

CMS

User Editable pages

CSS Editor

Editing Pages

Direct URLs

Using Javascript & JQuery

Content Approval & Workflow

 

WEB

Key Concepts

Components

Understanding Embeds

Site Building

Themes System

SEO Optimization

 
           
 
clearString   neatComponents™    © Enstar LLC  1999-2019 All Rights Reserved      Terms of Use      Privacy & Cookies      Contact us...
 
 
 
 

 

Docs HomePrint:   Print this page