$shop_info['shop_domain']); $table_shop_info = $cf_obj->select_row(TABLE_USER_STORES, $selected_field, $where); if ($table_shop_info != '' && !empty($table_shop_info) && $table_shop_info['email'] != '') { $fields = array( 'domain' => '', 'owner' => '', 'shop_plan' => '', 'money_format' => '', 'currency' => '', 'address1' => '', 'address2' => '', 'city' => '', 'country_name' => '', 'phone' => '', 'province' => '', 'zip' => '', 'timezone' => '', 'iana_timezone' => '', 'weight_unit' => '' ); $where = array('shop' => $shop_info['shop_domain']); $cf_obj->update(TABLE_USER_STORES, $fields, $where); /** * Declare array table data deleted after app uninstall rule GDPR */ $table_array = array(); foreach ($table_array as $table) { $where = array('store_user_id' => $table_shop_info['store_user_id']); $cf_obj->delete($table, $where); } }