From 2fe60df34be9fa7400dcc2c5626ca6b8dc35158a Mon Sep 17 00:00:00 2001 From: Aunshon <32583103+Aunshon@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:39:08 +0600 Subject: [PATCH] Fix commission upgrade version --- includes/Upgrade/Upgrades.php | 2 +- ...eCommissions.php => V_3_14_0_UpdateCommissions.php} | 2 +- .../Upgrade/Upgrades/{V_4_0_0.php => V_3_14_0.php} | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) rename includes/Upgrade/Upgrades/BackgroundProcesses/{V_4_0_0_UpdateCommissions.php => V_3_14_0_UpdateCommissions.php} (98%) rename includes/Upgrade/Upgrades/{V_4_0_0.php => V_3_14_0.php} (92%) diff --git a/includes/Upgrade/Upgrades.php b/includes/Upgrade/Upgrades.php index 8f40c6b2c7..68b999e47e 100644 --- a/includes/Upgrade/Upgrades.php +++ b/includes/Upgrade/Upgrades.php @@ -44,7 +44,7 @@ class Upgrades { '3.7.10' => Upgrades\V_3_7_10::class, '3.7.19' => Upgrades\V_3_7_19::class, '3.13.0' => Upgrades\V_3_13_0::class, - '4.0.0' => Upgrades\V_4_0_0::class, + '3.14.0' => Upgrades\V_3_14_0::class, ]; /** diff --git a/includes/Upgrade/Upgrades/BackgroundProcesses/V_4_0_0_UpdateCommissions.php b/includes/Upgrade/Upgrades/BackgroundProcesses/V_3_14_0_UpdateCommissions.php similarity index 98% rename from includes/Upgrade/Upgrades/BackgroundProcesses/V_4_0_0_UpdateCommissions.php rename to includes/Upgrade/Upgrades/BackgroundProcesses/V_3_14_0_UpdateCommissions.php index 618e62ea01..bd3238f51f 100644 --- a/includes/Upgrade/Upgrades/BackgroundProcesses/V_4_0_0_UpdateCommissions.php +++ b/includes/Upgrade/Upgrades/BackgroundProcesses/V_3_14_0_UpdateCommissions.php @@ -11,7 +11,7 @@ * * @since DOKAN_SINCE */ -class V_4_0_0_UpdateCommissions extends DokanBackgroundProcesses { +class V_3_14_0_UpdateCommissions extends DokanBackgroundProcesses { /** * Update commission data. diff --git a/includes/Upgrade/Upgrades/V_4_0_0.php b/includes/Upgrade/Upgrades/V_3_14_0.php similarity index 92% rename from includes/Upgrade/Upgrades/V_4_0_0.php rename to includes/Upgrade/Upgrades/V_3_14_0.php index 5994cce255..bdaefbc903 100644 --- a/includes/Upgrade/Upgrades/V_4_0_0.php +++ b/includes/Upgrade/Upgrades/V_3_14_0.php @@ -4,9 +4,9 @@ use WeDevs\Dokan\Abstracts\DokanUpgrader; use WeDevs\Dokan\Commission\Formula\Fixed; -use WeDevs\Dokan\Upgrade\Upgrades\BackgroundProcesses\V_4_0_0_UpdateCommissions; +use WeDevs\Dokan\Upgrade\Upgrades\BackgroundProcesses\V_3_14_0_UpdateCommissions; -class V_4_0_0 extends DokanUpgrader { +class V_3_14_0 extends DokanUpgrader { /** * Update global commission settings. @@ -35,7 +35,7 @@ public static function update_global_commission_type() { public static function update_global_category_commission_types() { $has_categories = true; $page_number = 1; - $processor = new V_4_0_0_UpdateCommissions(); + $processor = new V_3_14_0_UpdateCommissions(); while ( $has_categories ) { $args = [ @@ -75,7 +75,7 @@ public static function update_global_category_commission_types() { public static function update_category_commission_of_vendors() { $page_number = 1; $has_vendors = true; - $processor = new V_4_0_0_UpdateCommissions(); + $processor = new V_3_14_0_UpdateCommissions(); while ( $has_vendors ) { $vendors = dokan()->vendor->all( @@ -110,7 +110,7 @@ public static function update_category_commission_of_vendors() { public static function update_category_commission_of_products() { $page_number = 1; $has_products = true; - $processor = new V_4_0_0_UpdateCommissions(); + $processor = new V_3_14_0_UpdateCommissions(); while ( $has_products ) { $products = dokan()->product->all(