Skip to content

Commit

Permalink
fix: store support issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Jan 3, 2020
1 parent 8871b5d commit a98d698
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions depricated/class-dokan-email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* Fallback for depricated
* Dokan Email Class
*/
class Dokan_Email {

public static function init() {
return dokan()->email;
}
}
2 changes: 1 addition & 1 deletion depricated/depricated-classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct() {
require_once $dir_path . '/class-dokan-rest-store-controller.php';
require_once $dir_path . '/class-abstrct-dokan-rest-store-controller.php';
require_once $dir_path . '/class-dokan-vendor.php';
// require_once $dir_path . '/class-dokan-taxonomy-walker.php';
require_once $dir_path . '/class-dokan-email.php';
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/Order/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ function dokan_get_customer_orders_by_seller( $customer_id, $seller_id ) {
'numberposts' => -1,
];

$orders = dokan()->order->get( apply_filters( 'dokan_get_customer_orders_by_seller', $args ) );
$orders = wc_get_orders( apply_filters( 'dokan_get_customer_orders_by_seller', $args ) );

return $orders ? $orders : null;
}
Expand Down

0 comments on commit a98d698

Please sign in to comment.