Example #1
0
<?php

$user_id = get_current_user_id();
$orders_counts = dokan_count_orders($user_id);
$post_counts = dokan_count_posts('product', $user_id);
$comment_counts = dokan_count_comments('product', $user_id);
$pageviews = (int) dokan_author_pageviews($user_id);
$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">
Example #2
0
$user_id = get_current_user_id();
$processing_time = dokan_get_shipping_processing_times();
$dps_enable_shipping = get_user_meta($user_id, '_dps_shipping_enable', true);
$dps_shipping_type_price = get_user_meta($user_id, '_dps_shipping_type_price', true);
$dps_additional_product = get_user_meta($user_id, '_dps_additional_product', true);
$dps_additional_qty = get_user_meta($user_id, '_dps_additional_qty', true);
$dps_form_location = get_user_meta($user_id, '_dps_form_location', true);
$dps_country_rates = get_user_meta($user_id, '_dps_country_rates', true);
$dps_state_rates = get_user_meta($user_id, '_dps_state_rates', true);
$dps_pt = get_user_meta($user_id, '_dps_pt', true);
$dps_shipping_policy = get_user_meta($user_id, '_dps_ship_policy', true);
$dps_refund_policy = get_user_meta($user_id, '_dps_refund_policy', true);
?>
<div class="dokan-dashboard-wrap">
    <?php 
dokan_get_template('dashboard-nav.php', array('active_menu' => 'settings/shipping'));
?>

    <div class="dokan-dashboard-content dokan-settings-content">
        <article class="dokan-settings-area">
            <header class="dokan-dashboard-header">
                <h1 class="entry-title">
                    <?php 
_e('Shipping Settings', 'dokan');
?>
                    <small>&rarr; <a href="<?php 
echo dokan_get_store_url(get_current_user_id());
?>
"><?php 
_e('Visit Store', 'dokan');
?>
Example #3
0
$_width = get_post_meta($post_id, '_width', true);
$_height = get_post_meta($post_id, '_height', true);
$_downloadable = get_post_meta($post_id, '_downloadable', true);
$_stock_status = get_post_meta($post_id, '_stock_status', true);
$_visibility = get_post_meta($post_id, '_visibility', true);
$_enable_reviews = $post->comment_status;
get_header();
dokan_frontend_dashboard_scripts();
?>

<div id="primary" class="content-area col-md-12">
    <div id="content" class="site-content" role="main">

        <div class="row">
            <?php 
dokan_get_template(dirname(__FILE__) . '/dashboard-nav.php', array('active_menu' => 'product'));
?>

            <form class="form" role="form" method="post">

                <div class="product-edit-container">

                    <div class="col-md-7">

                        <?php 
if (isset($_GET['message']) && $_GET['message'] == 'success') {
    ?>
                            <div class="dokan-message">
                                <button type="button" class="close" data-dismiss="alert">&times;</button>
                                <strong><?php 
    _e('Success!', 'dokan');
Example #4
0
<?php

$announcement = Dokan_Template_Notice::init();
?>

<div class="dokan-dashboard-wrap">
    <?php 
dokan_get_template('dashboard-nav.php', array('active_menu' => 'announcement'));
?>
    <?php 
//var_dump( $urls = dokan_get_dashboard_nav() );
?>

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

        <?php 
do_action('dokan_before_listing_notice');
?>

            <article class="dokan-notice-listing-area">
                <header class="dokan-dashboard-header dokan-clearfix">
                    <span class="left-header-content">
                        <h1 class="entry-title"><?php 
_e('Announcement', 'dokan');
?>
</h1>
                    </span>
                </header>

                <div class="notice-listing-top dokan-clearfix">
                    <!-- Listing filters -->