  |
198 | 198 | | } |
| |
199 | 199 | | |
| |
200 | 200 | | if ( $error === false ) { |
  |
201 | | - | $Qcb = $osC_Database->query('delete from :table_customers_basket where customers_id = :customers_id'); |
| |
202 | | - | $Qcb->bindTable(':table_customers_basket', TABLE_CUSTOMERS_BASKET); |
| |
203 | | - | $Qcb->bindInt(':customers_id', $id); |
| |
204 | | - | $Qcb->execute(); |
| |
| 201 | + | $Qsc = $osC_Database->query('delete from :table_shopping_carts where customers_id = :customers_id'); |
| |
| 202 | + | $Qsc->bindTable(':table_shopping_carts', TABLE_SHOPPING_CARTS); |
| |
| 203 | + | $Qsc->bindInt(':customers_id', $id); |
| |
| 204 | + | $Qsc->execute(); |
|
205 | 205 | | |
| |
206 | 206 | | if ( $osC_Database->isError() ) { |
| |
207 | 207 | | $error = true; |
| |
208 | 208 | | } |
| |
209 | 209 | | } |
| |
210 | 210 | | |
| |
211 | 211 | | if ( $error === false ) { |
  |
| 212 | + | $Qsccvv = $osC_Database->query('delete from :table_shopping_carts_custom_variants_values where customers_id = :customers_id'); |
| |
| 213 | + | $Qsccvv->bindTable(':table_shopping_carts_custom_variants_values', TABLE_SHOPPING_CARTS_CUSTOM_VARIANTS_VALUES); |
| |
| 214 | + | $Qsccvv->bindInt(':customers_id', $id); |
| |
| 215 | + | $Qsccvv->execute(); |
| |
| 216 | + | |
| |
| 217 | + | if ( $osC_Database->isError() ) { |
| |
| 218 | + | $error = true; |
| |
| 219 | + | } |
| |
| 220 | + | } |
| |
| 221 | + | |
| |
| 222 | + | if ( $error === false ) { |
  |
212 | 223 | | $Qpn = $osC_Database->query('delete from :table_products_notifications where customers_id = :customers_id'); |
| |
213 | 224 | | $Qpn->bindTable(':table_products_notifications', TABLE_PRODUCTS_NOTIFICATIONS); |
| |
214 | 225 | | $Qpn->bindInt(':customers_id', $id); |