lat9 / snap_affiliates

Zen Cart: Snap Affiliates
Other
1 stars 0 forks source link

Remove `referrers` table entry when the customer is removed #30

Closed lat9 closed 5 years ago

lat9 commented 5 years ago

Currently, if an approved referrer's customer record is removed from the database, the associated referrers table entry is not. Make use of the notification, added in zc156:

      $zco_notifier->notify('NOTIFIER_ADMIN_ZEN_CUSTOMERS_DELETE_CONFIRM', array('customers_id' => $customers_id));

... that is issued at the top of /admin/customers.php's deleteconfirm processing to perform this operation, noting that it won't happen prior to zc156.

Provide on-upgrade clean-up for previous Zen Cart versions.