Skip to content

Commit

Permalink
Fix commission upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunshon committed Nov 15, 2024
1 parent ac4cf67 commit 2fe60df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion includes/Upgrade/Upgrades.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 = [
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 2fe60df

Please sign in to comment.