reset

Triggered before store’s data complete reset. Convenient for clearing plugin-related data in the database.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function reset()
{
    $model = new waModel();
    $model->exec('TRUNCATE `shop_myplugin_table`');
}