Exemplo n.º 1
0
 /**
  * Show Seller Enable Error Message
  *
  * @since 2.4
  *
  * @return void
  */
 public function show_seller_enable_message()
 {
     $user_id = get_current_user_id();
     if (!dokan_is_seller_enabled($user_id)) {
         echo dokan_seller_not_enabled_notice();
     }
 }
Exemplo n.º 2
0
$earning = dokan_author_total_sales($user_id);
$products_url = dokan_get_navigation_url('products');
$orders_url = dokan_get_navigation_url('orders');
$reviews_url = dokan_get_navigation_url('reviews');
?>

<div class="dokan-dashboard-wrap">
    <?php 
dokan_get_template('dashboard-nav.php', array('active_menu' => 'dashboard'));
?>

    <div class="dokan-dashboard-content">

        <?php 
if (!dokan_is_seller_enabled($user_id)) {
    dokan_seller_not_enabled_notice();
}
?>

        <article class="dashboard-content-area">
            <?php 
echo dokan_get_profile_progressbar();
?>
            <div class="dokan-w6 dokan-dash-left">
                <div class="dashboard-widget big-counter">
                    <ul class="list-inline">
                        <li>
                            <div class="title"><?php 
_e('Pageview', 'dokan');
?>
</div>
Exemplo n.º 3
0
 /**
  * Render Coupon Content
  *
  * @since 2.4
  *
  * @return void
  */
 public function dokan_coupon_content_render()
 {
     if (!dokan_is_seller_enabled(get_current_user_id())) {
         echo dokan_seller_not_enabled_notice();
     } else {
         $this->list_user_coupons();
         if (is_wp_error(self::$validated)) {
             $messages = self::$validated->get_error_messages();
             foreach ($messages as $message) {
                 dokan_get_template_part('global/dokan-error', '', array('deleted' => true, 'message' => $message));
             }
         }
         $this->add_coupons_form(self::$validated);
     }
 }