wp_dokan_order_stats

Static

Stores order records and related transaction data.

Column Definitions

ColumnTypeNullable
order_idbigint UNSIGNEDNO
vendor_idbigint UNSIGNEDNO
order_typetinyint(1)NO
vendor_earningdoubleNO
vendor_gateway_feedoubleNO
vendor_shipping_feedoubleNO
vendor_discountdoubleNO
admin_commissiondoubleNO
admin_gateway_feedoubleNO
admin_shipping_feedoubleNO
admin_discountdoubleNO
admin_subsidydoubleNO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS `wp_dokan_order_stats` ( `order_id` bigint UNSIGNED NOT NULL, `vendor_id` bigint UNSIGNED NOT NULL DEFAULT '0', `order_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = Dokan Parent Order, 1 = Dokan Single Vendor Order, 2 = Dokan Suborder, 3 = Refund of Dokan Parent Order, 4 = Refund of Dokan Suborder, 5 = Refund of Dokan Single Order', `vendor_earning` double NOT NULL DEFAULT '0', `vendor_gateway_fee` double NOT NULL DEFAULT '0', `vendor_shipping_fee` double NOT NULL DEFAULT '0', `vendor_discount` double NOT NULL DEFAULT '0', `admin_commission` double NOT NULL DEFAULT '0', `admin_gateway_fee` double NOT NULL DEFAULT '0', `admin_shipping_fee` double NOT NULL DEFAULT '0', `admin_discount` double NOT NULL DEFAULT '0', `admin_subsidy` double NOT NULL DEFAULT '0', PRIMARY KEY (order_id), KEY vendor_id (vendor_id), KEY order_type (order_type) ) ENGINE

Safe to delete?

If you have uninstalled Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_dokan_order_stats`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy