Plugin Directory

Changeset 2103681


Ignore:
Timestamp:
06/11/2019 03:41:01 AM (7 years ago)
Author:
sabbir1991
Message:

Deploy version 2.9.16

Location:
dokan-lite/trunk
Files:
4 added
27 edited

Legend:

Unmodified
Added
Removed
  • dokan-lite/trunk/assets/css/style.css

    r2053968 r2103681  
    19321932  background-color: #242424;
    19331933}
    1934 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu {
     1934.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu {
    19351935  background: #242424;
    19361936  list-style: none;
     
    19381938  padding: 0;
    19391939}
    1940 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li {
     1940.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li {
    19411941  margin: 0;
    19421942  border-bottom: 1px solid #454545;
    19431943  position: relative;
    19441944}
    1945 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a {
     1945.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li a {
    19461946  padding: 10px 0 10px 18px;
    19471947  display: block;
     
    19511951  text-decoration: none;
    19521952}
    1953 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a i {
     1953.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li a i {
    19541954  font-size: 17px;
    19551955  padding-right: 15px;
    19561956}
    1957 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover {
     1957.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li:hover {
    19581958  background: #f05025;
    19591959  color: #fff;
    19601960}
    1961 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links:hover {
     1961.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.dokan-common-links:hover {
    19621962  background: none !important;
    19631963}
    1964 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a {
     1964.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.dokan-common-links a {
    19651965  display: inline-block !important;
    19661966  width: 33.333333%;
     
    19691969  border-right: 1px solid #454545;
    19701970}
    1971 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:hover {
     1971.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.dokan-common-links a:hover {
    19721972  background: #f05025;
    19731973  color: #fff;
    19741974}
    1975 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:last-child {
     1975.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.dokan-common-links a:last-child {
    19761976  border-right: none;
    19771977}
    1978 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active {
     1978.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.active {
    19791979  position: relative;
    19801980  background: #f05025;
    19811981}
    1982 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active:after {
     1982.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.active:after {
    19831983  left: 93%;
    19841984  top: 50%;
     
    19941994  margin-top: -16px;
    19951995}
    1996 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu {
     1996.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li ul.sub-menu {
    19971997  background: #fff;
    19981998  margin: 0;
     
    20092009  border-bottom: 1px solid #ECECEC;
    20102010}
    2011 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu a {
     2011.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li ul.sub-menu a {
    20122012  padding: 2px 0 2px 10px;
    20132013  font-size: 13px;
     
    20152015  font-weight: normal;
    20162016}
    2017 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu a:hover {
     2017.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li ul.sub-menu a:hover {
    20182018  background: #f37655;
    20192019  color: #fff;
    20202020}
    2021 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu li {
     2021.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li ul.sub-menu li {
    20222022  border-bottom: 1px solid #ccc;
    20232023}
    2024 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.sub-menu li:last-child {
     2024.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li ul.sub-menu li:last-child {
    20252025  border-bottom: none;
    20262026}
    2027 .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.settings i.pull-right {
     2027.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu li.settings i.pull-right {
    20282028  padding-top: 5px;
     2029}
     2030.dokan-dashboard .dokan-dash-sidebar #dokan-navigation #toggle-mobile-menu {
     2031  display: none;
     2032}
     2033#dokan-navigation > label {
     2034  display: block;
     2035  font-size: 17px;
     2036  color: #fff;
     2037  position: absolute;
     2038  top: 10px;
     2039  right: 15px;
     2040  width: 33px;
     2041  cursor: pointer;
     2042  -webkit-touch-callout: none;
     2043  -webkit-user-select: none;
     2044  -khtml-user-select: none;
     2045  -moz-user-select: none;
     2046  -ms-user-select: none;
     2047  user-select: none;
     2048  border: 1px solid #f0f0f0;
     2049  border-radius: 3px;
     2050  padding: 3px 8px;
     2051}
     2052#dokan-navigation > input:checked + ul.dokan-dashboard-menu {
     2053  display: block !important;
     2054  clear: both;
     2055  top: 48px;
     2056  position: absolute;
     2057  background: #000;
     2058  color: #fff;
     2059  z-index: 9999;
     2060  animation: showNav 350ms ease-in-out both;
     2061}
     2062@keyframes showNav {
     2063  from {
     2064    opacity: 0;
     2065  }
     2066  to {
     2067    opacity: 1;
     2068  }
     2069}
     2070@media only screen and (max-width: 450px) {
     2071  #dokan-navigation {
     2072    display: #303030;
     2073    background: #000;
     2074    height: 48px;
     2075  }
     2076  #dokan-navigation #toggle-mobile-menu {
     2077    display: block;
     2078  }
     2079  #dokan-navigation ul.dokan-dashboard-menu {
     2080    display: none;
     2081    height: auto !important;
     2082  }
    20292083}
    20302084html,
     
    45544608    overflow: scroll;
    45554609  }
     4610  .dokan-dashboard .dokan-dash-sidebar .dokan-settings-area .dokan-banner,
     4611  .dokan-dashboard .dokan-dashboard-content .dokan-settings-area .dokan-banner {
     4612    width: auto !important;
     4613    height: auto !important;
     4614    margin: 0 !important;
     4615    margin-bottom: 15px !important;
     4616  }
    45564617  .dokan-dashboard .dashboard-content-area .dokan-announcement-widget .dokan-right {
    45574618    float: right !important;
     
    45594620  .dokan-dashboard .dashboard-content-area .dokan-announcement-widget .dokan-left {
    45604621    float: left !important;
     4622  }
     4623  .dokan-dashboard .dashboard-content-area .dokan-dash-left {
     4624    padding-right: 0 !important;
    45614625  }
    45624626  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu:before,
     
    45754639    padding: 12px 18px;
    45764640  }
     4641  .dokan-dashboard .dokan-orders-area .dokan-order-filter-serach {
     4642    padding: 10px 0 10px 0;
     4643  }
     4644  .dokan-dashboard .dokan-orders-area .dokan-order-filter-serach .dokan-btn {
     4645    padding: 6px 13px;
     4646  }
     4647  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .product-listing-top {
     4648    border-bottom: 0;
     4649  }
    45774650  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .product-listing-top ul.dokan-listing-filter {
    45784651    width: 100%;
     4652  }
     4653  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .product-listing-top .dokan-add-product-link {
     4654    display: flex;
     4655    justify-content: space-between;
     4656    width: auto;
     4657    float: none;
     4658  }
     4659  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .dokan-product-date-filter {
     4660    display: flex;
     4661    justify-content: space-between;
     4662  }
     4663  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .dokan-product-date-filter .dokan-form-group {
     4664    margin-bottom: 0;
     4665  }
     4666  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .dokan-product-search-form {
     4667    display: flex;
     4668    justify-content: space-between;
     4669    margin-top: 15px;
     4670  }
     4671  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area .dokan-product-search-form .dokan-form-group {
     4672    margin-bottom: 0;
     4673    margin-right: 0;
     4674  }
     4675  .dokan-dashboard .dokan-product-listing .dokan-product-listing-area #product-filter .dokan-form-group {
     4676    margin-top: 15px;
    45794677  }
    45804678  .dokan-dashboard .dokan-right,
     
    46244722  }
    46254723}
     4724@media (max-width: 375px) {
     4725  .dokan-order-filter-serach form:first-child .dokan-form-group {
     4726    display: flex;
     4727  }
     4728}
    46264729@media (max-width: 360px) {
    46274730  .dokan-single-store .profile-frame .profile-info-box.profile-layout-layout1 .profile-info-summery-wrapper .profile-info-summery .profile-info .dokan-store-info {
  • dokan-lite/trunk/assets/js/dokan.js

    r2044318 r2103681  
    595595            });
    596596
    597             $('body').on('click', 'a.delete', function(){
     597            $('body').on('click', 'a.dokan-product-delete', function() {
    598598                $(this).closest('tr').remove();
    599599                return false;
  • dokan-lite/trunk/classes/admin-user-profile.php

    r2083300 r2103681  
    6363        $publishing            = get_user_meta( $user->ID, 'dokan_publishing', true );
    6464        $store_settings        = dokan_get_store_info( $user->ID );
    65         $banner_id             = ! empty( $store_settings['banner_id'] ) ? $store_settings['banner_id'] : 0;
    66         $banner                = ! empty( $store_settings['banner'] ) ? absint( $store_settings['banner'] ) : $banner_id;
     65        $banner                = ! empty( $store_settings['banner'] ) ? absint( $store_settings['banner'] ) : 0;
    6766        $admin_commission      = get_user_meta( $user->ID, 'dokan_admin_percentage', true );
    6867        $admin_commission_type = get_user_meta( $user->ID, 'dokan_admin_percentage_type', true );
     
    542541        $social_fields  = dokan_get_social_profile_fields();
    543542
    544         $store_settings['banner_id']  = intval( $post_data['dokan_banner'] );
     543        $store_settings['banner']     = intval( $post_data['dokan_banner'] );
    545544        $store_settings['store_name'] = sanitize_text_field( $post_data['dokan_store_name'] );
    546545        $store_settings['address']    = isset( $post_data['dokan_store_address'] ) ? array_map( 'sanitize_text_field', $post_data['dokan_store_address'] ) : array();
  • dokan-lite/trunk/classes/installer.php

    r1995740 r2103681  
    1818
    1919        // does it needs any update?
    20         $updater = new Dokan_Upgrade();
    21         $updater->perform_updates();
     20        if ( dokan()->has_woocommerce() ) {
     21            dokan()->include_backgorund_processing_files();
     22
     23            $updater = new Dokan_Upgrade();
     24            $updater->perform_updates();
     25        }
     26
     27        if ( ! dokan()->has_woocommerce() ) {
     28            set_transient( 'dokan_theme_version_for_updater', get_option( 'dokan_theme_version', false ) );
     29        }
    2230
    2331        if ( class_exists( 'Dokan_Rewrites' ) ) {
  • dokan-lite/trunk/classes/rewrites.php

    r2073700 r2103681  
    290290            $store_info    = dokan_get_store_info( $seller_info->data->ID );
    291291            $post_per_page = isset( $store_info['store_ppp'] ) && ! empty( $store_info['store_ppp'] ) ? $store_info['store_ppp'] : 12;
     292
    292293            set_query_var( 'posts_per_page', $post_per_page );
     294
    293295            $query->set( 'post_type', 'product' );
    294296            $query->set( 'author_name', $author );
     297
    295298            $query->query['term_section'] = isset( $query->query['term_section'] ) ? $query->query['term_section'] : array();
    296299
     
    306309                );
    307310            }
     311
     312            $product_visibility_terms  = wc_get_product_visibility_term_ids();
     313            $product_visibility_not_in = [ is_search() && $main_query ? $product_visibility_terms['exclude-from-search'] : $product_visibility_terms['exclude-from-catalog'] ];
     314
     315            // Hide out of stock products.
     316            if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) {
     317                $product_visibility_not_in[] = $product_visibility_terms['outofstock'];
     318            }
     319
     320            if ( ! empty( $product_visibility_not_in ) ) {
     321                $query->set( 'tax_query',
     322                    [
     323                        [
     324                            'taxonomy' => 'product_visibility',
     325                            'field'    => 'term_taxonomy_id',
     326                            'terms'    => $product_visibility_not_in,
     327                            'operator' => 'NOT IN'
     328                        ],
     329                    ]
     330                );
     331            }
     332
    308333        }
    309334    }
  • dokan-lite/trunk/classes/template-settings.php

    r2073700 r2103681  
    509509                'location'                 => sanitize_text_field( $post_data['location'] ),
    510510                'find_address'             => sanitize_text_field( $post_data['find_address'] ),
    511                 'banner_id'                => isset( $post_data['dokan_banner'] ) ? absint( $post_data['dokan_banner'] ) : 0,
     511                'banner'                   => isset( $post_data['dokan_banner'] ) ? absint( $post_data['dokan_banner'] ) : 0,
    512512                'phone'                    => sanitize_text_field( $post_data['setting_phone'] ),
    513513                'show_email'               => sanitize_text_field( $post_data['setting_show_email'] ),
    514514                'show_more_ptab'           => sanitize_text_field( $post_data['setting_show_more_ptab'] ),
    515                 'gravatar_id'              => isset( $post_data['dokan_gravatar'] ) ? absint( $post_data['dokan_gravatar'] ) : 0,
     515                'gravatar'                 => isset( $post_data['dokan_gravatar'] ) ? absint( $post_data['dokan_gravatar'] ) : 0,
    516516                'enable_tnc'               => isset( $post_data['dokan_store_tnc_enable'] ) && 'on' == $post_data['dokan_store_tnc_enable'] ? 'on' : 'off',
    517517                'store_tnc'                => isset( $post_data['dokan_store_tnc'] ) ? wp_kses_post( $post_data['dokan_store_tnc'] ) : '',
  • dokan-lite/trunk/classes/upgrade.php

    r2073700 r2103681  
    2727        '2.9.4'  => 'upgrades/dokan-upgrade-2.9.4.php',
    2828        '2.9.13' => 'upgrades/dokan-upgrade-2.9.13.php',
     29        '2.9.16' => 'upgrades/dokan-upgrade-2.9.16.php',
    2930    ];
    3031
     
    5455        if ( ! $installed_version ) {
    5556            return false;
     57        }
     58
     59        if ( get_transient( 'dokan_theme_version_for_updater' ) ) {
     60            return version_compare( get_transient( 'dokan_theme_version_for_updater' ), DOKAN_PLUGIN_VERSION, '<'  );
    5661        }
    5762
     
    111116    }
    112117
    113 
    114118    /**
    115119     * Perform all updates
     
    126130        $installed_version = get_option( 'dokan_theme_version' );
    127131
     132        if ( get_transient( 'dokan_theme_version_for_updater' ) ) {
     133            $installed_version = get_transient( 'dokan_theme_version_for_updater' );
     134        }
     135
    128136        foreach ( self::$updates as $version => $path ) {
    129137            if ( version_compare( $installed_version, $version, '<' ) ) {
     
    133141        }
    134142
     143        delete_transient( 'dokan_theme_version_for_updater' );
    135144        update_option( 'dokan_theme_version', DOKAN_PLUGIN_VERSION );
    136145
    137         $url = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
    138 
    139         $location = remove_query_arg( ['dokan_do_update'], esc_url( $url ) );
     146        $location = wp_unslash( add_query_arg( [ 'page' => 'dokan' ], admin_url( 'admin.php' ) ) );
    140147        wp_redirect( $location );
    141148        exit();
    142149    }
    143 
    144150}
  • dokan-lite/trunk/dokan.php

    r2083300 r2103681  
    44Plugin URI: https://wordpress.org/plugins/dokan-lite/
    55Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
    6 Version: 2.9.15
     6Version: 2.9.16
    77Author: weDevs, LLC
    88Author URI: https://wedevs.com/
    99Text Domain: dokan-lite
    1010WC requires at least: 3.0
    11 WC tested up to: 3.6.2
     11WC tested up to: 3.6.4
    1212Domain Path: /languages/
    1313License: GPL2
     
    7979     * @var string
    8080     */
    81     public $version = '2.9.15';
     81    public $version = '2.9.16';
    8282
    8383    /**
     
    112112    private function __construct() {
    113113        $this->define_constants();
     114        $this->include_exceptions();
    114115
    115116        register_activation_hook( __FILE__, array( $this, 'activate' ) );
     
    117118
    118119        add_action( 'woocommerce_loaded', array( $this, 'init_plugin' ) );
     120        add_action( 'admin_notices', array( $this, 'render_missing_woocommerce_notice' ) );
    119121
    120122        $this->init_appsero_tracker();
     
    185187
    186188    /**
     189     * Include custom throwable exceptions
     190     *
     191     * @since 2.9.16
     192     *
     193     * @return void
     194     */
     195    private function include_exceptions() {
     196        require_once DOKAN_INC_DIR . '/exceptions/class-dokan-exception.php';
     197    }
     198
     199    /**
    187200     * Placeholder for activation function
    188201     *
     
    190203     */
    191204    public function activate() {
    192         if ( ! function_exists( 'WC' ) ) {
    193             require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    194             deactivate_plugins( plugin_basename( __FILE__ ) );
    195 
    196             wp_die( '<div class="error"><p>' . sprintf( esc_html__( '<b>Dokan</b> requires <a href="%s">WooCommerce</a> to be installed & activated!', 'dokan-lite' ), '<a target="_blank" href="https://wordpress.org/plugins/woocommerce/">', '</a>' ) . '</p></div>' );
     205        if ( ! $this->has_woocommerce() ) {
     206            set_transient( 'dokan_wc_missing_notice', true );
    197207        }
    198208
     
    207217        require_once dirname( __FILE__ ) . '/includes/functions-compatibility.php';
    208218
    209         // Background Processes
    210         require_once dirname( __FILE__ ) . '/includes/background-processes/class-dokan-background-processes.php';
    211         require_once dirname( __FILE__ ) . '/includes/background-processes/abstract-class-dokan-background-processes.php';
    212 
    213219        $installer = new Dokan_Installer();
    214220        $installer->do_install();
     
    221227     */
    222228    public function deactivate() {
    223 
     229        delete_transient( 'dokan_wc_missing_notice', true );
    224230    }
    225231
     
    239245     */
    240246    public function define_constants() {
    241         define( 'DOKAN_PLUGIN_VERSION', $this->version );
    242         define( 'DOKAN_FILE', __FILE__ );
    243         define( 'DOKAN_DIR', dirname( __FILE__ ) );
    244         define( 'DOKAN_INC_DIR', dirname( __FILE__ ) . '/includes' );
    245         define( 'DOKAN_LIB_DIR', dirname( __FILE__ ) . '/lib' );
    246         define( 'DOKAN_PLUGIN_ASSEST', plugins_url( 'assets', __FILE__ ) );
     247        $this->define( 'DOKAN_PLUGIN_VERSION', $this->version );
     248        $this->define( 'DOKAN_FILE', __FILE__ );
     249        $this->define( 'DOKAN_DIR', dirname( __FILE__ ) );
     250        $this->define( 'DOKAN_INC_DIR', dirname( __FILE__ ) . '/includes' );
     251        $this->define( 'DOKAN_LIB_DIR', dirname( __FILE__ ) . '/lib' );
     252        $this->define( 'DOKAN_PLUGIN_ASSEST', plugins_url( 'assets', __FILE__ ) );
    247253
    248254        // give a way to turn off loading styles and scripts from parent theme
    249         if ( ! defined( 'DOKAN_LOAD_STYLE' ) ) {
    250             define( 'DOKAN_LOAD_STYLE', true );
    251         }
    252 
    253         if ( ! defined( 'DOKAN_LOAD_SCRIPTS' ) ) {
    254             define( 'DOKAN_LOAD_SCRIPTS', true );
     255        $this->define( 'DOKAN_LOAD_STYLE', true );
     256        $this->define( 'DOKAN_LOAD_SCRIPTS', true );
     257    }
     258
     259    /**
     260     * Define constant if not already defined
     261     *
     262     * @since 2.9.16
     263     *
     264     * @param string $name
     265     * @param string|bool $value
     266     *
     267     * @return void
     268     */
     269    private function define( $name, $value ) {
     270        if ( ! defined( $name ) ) {
     271            define( $name, $value );
    255272        }
    256273    }
     
    263280    public function init_plugin() {
    264281        $this->includes();
    265 
    266282        $this->init_hooks();
     283        $this->maybe_perform_updates();
    267284
    268285        do_action( 'dokan_loaded' );
     
    351368
    352369        // Background Processes
    353         require_once $inc_dir . 'background-processes/class-dokan-background-processes.php';
    354         require_once $inc_dir . 'background-processes/abstract-class-dokan-background-processes.php';
     370        $this->include_backgorund_processing_files();
    355371    }
    356372
     
    490506    }
    491507
     508    /**
     509     * Missing woocomerce notice
     510     *
     511     * @since 2.9.16
     512     *
     513     * @return void
     514     */
     515    public function render_missing_woocommerce_notice() {
     516        if ( ! get_transient( 'dokan_wc_missing_notice' ) ) {
     517            return;
     518        }
     519
     520        if ( $this->has_woocommerce() ) {
     521            return delete_transient( 'dokan_wc_missing_notice' );
     522        }
     523
     524        $plugin_url = self_admin_url( 'plugin-install.php?s=woocommerce&tab=search&type=term' );
     525        $message    = sprintf( esc_html__( 'Dokan requires WooCommerce to be installed and active. You can activate %s here.', 'dokan-lite' ), '<a href="' . $plugin_url . '">WooCommerce</a>' );
     526
     527        printf( '<div class="error"><p><strong>%1$s</strong></p></div>', $message );
     528    }
     529
     530    /**
     531     * Check whether woocommerce is installed or not
     532     *
     533     * @since 2.9.16
     534     *
     535     * @return boolean
     536     */
     537    public function has_woocommerce() {
     538        return class_exists( 'WooCommerce' );
     539    }
     540
     541    /**
     542     * Maybe perform updates (only runs when dokan was installed before
     543     * but wc wasn't installed)
     544     *
     545     * @since 2.9.16
     546     *
     547     * @return void
     548     */
     549    public function maybe_perform_updates() {
     550        if ( ! get_transient( 'dokan_theme_version_for_updater' ) ) {
     551            return;
     552        }
     553
     554        $updater = new Dokan_Upgrade;
     555        $updater->perform_updates();
     556    }
     557
     558    /**
     559     * Include background processing files
     560     *
     561     * @since 2.9.16
     562     *
     563     * @return void
     564     */
     565    public function include_backgorund_processing_files() {
     566        if ( ! class_exists( 'Abstract_Dokan_Background_Processes' ) ) {
     567            require_once DOKAN_INC_DIR . '/background-processes/abstract-class-dokan-background-processes.php';
     568        }
     569
     570        if ( ! class_exists( 'Dokan_Background_Processes' ) ) {
     571            require_once DOKAN_INC_DIR . '/background-processes/class-dokan-background-processes.php';
     572        }
     573    }
     574
    492575} // WeDevs_Dokan
    493576
  • dokan-lite/trunk/includes/admin-functions.php

    r2044318 r2103681  
    720720**/
    721721function dokan_override_product_author_by_admin( $product_id, $post ) {
    722     $product   = wc_get_product( $product_id );
    723     $seller_id = !empty( $_POST['dokan_product_author_override'] ) ? sanitize_text_field( wp_unslash( $_POST['dokan_product_author_override'] ) ): '-1'; // WPCS: CSRF ok.
    724 
    725     if ( $seller_id < 0 ) {
     722    $product          = wc_get_product( $product_id );
     723    $posted_vendor_id = ! empty( $_POST['dokan_product_author_override'] ) ? (int) $_POST['dokan_product_author_override'] : 0;
     724
     725    if ( ! $posted_vendor_id ) {
    726726        return;
    727727    }
    728728
    729     dokan_override_product_author( $product, $seller_id );
     729    $vendor = dokan_get_vendor_by_product( $product );
     730
     731    if ( $posted_vendor_id === $vendor->get_id() ) {
     732        return;
     733    }
     734
     735    dokan_override_product_author( $product, $posted_vendor_id );
    730736}
    731737
  • dokan-lite/trunk/includes/api/class-api-rest-controller.php

    r2044318 r2103681  
    9696            wp_update_post( array( 'ID' => $object->get_id(), 'post_author' => dokan_get_current_user_id() ) );
    9797
    98             // send email to admin on adding a new product
    99             do_action( 'dokan_new_product_added', $object->get_id(), $request );
     98            /**
     99             * Fires after a single object is created or updated via the REST API.
     100             *
     101             * @param WC_Data         $object    Inserted object.
     102             * @param WP_REST_Request $request   Request object.
     103             * @param boolean         $creating  True when creating object, false when updating.
     104             */
     105            do_action( "dokan_rest_insert_{$this->post_type}_object", $object, $request, true );
    100106
    101107            return $this->prepare_data_for_response( $this->get_object( $object->get_id() ), $request );
     
    130136            $object->save();
    131137            $this->update_additional_fields_for_object( $object, $request );
     138
     139            /**
     140             * Fires after a single object is created or updated via the REST API.
     141             *
     142             * @param WC_Data         $object    Inserted object.
     143             * @param WP_REST_Request $request   Request object.
     144             * @param boolean         $creating  True when creating object, false when updating.
     145             */
     146            do_action( "dokan_rest_insert_{$this->post_type}_object", $object, $request, false );
     147
    132148            return $this->prepare_data_for_response( $this->get_object( $object->get_id() ), $request );
    133149        } catch ( WC_Data_Exception $e ) {
  • dokan-lite/trunk/includes/class-api-manager.php

    r2073700 r2103681  
    4343        // populate admin commission data for admin
    4444        add_filter( 'dokan_rest_store_additional_fields', array( $this, 'populate_admin_commission' ), 10, 2 );
     45
     46        // Send email to admin on adding a new product
     47        add_action( 'dokan_rest_insert_product_object', array( $this, 'on_dokan_rest_insert_product' ), 10, 3 );
    4548    }
    4649
     
    129132        return $data;
    130133    }
     134
     135    /**
     136     * Send email to admin on adding a new product
     137     *
     138     * @param  WC_Data $object
     139     * @param  WP_REST_Request $request
     140     * @param  Boolean $creating
     141     *
     142     * @return void
     143     */
     144    public function on_dokan_rest_insert_product( $object, $request, $creating ) {
     145        // if not creating, meaning product is updating. So return early
     146        if ( ! $creating ) {
     147            return;
     148        }
     149
     150        do_action( 'dokan_new_product_added', $object->get_id(), $request );
     151    }
    131152}
  • dokan-lite/trunk/includes/class-order-manager.php

    r2073700 r2103681  
    1818
    1919        // prevent non-vendor coupons from being added
    20         add_filter( 'woocommerce_coupon_is_valid', array( $this, 'ensure_vendor_coupon' ), 10, 3 );
     20        add_filter( 'woocommerce_coupon_is_valid', array( $this, 'ensure_vendor_coupon' ), 10, 2 );
    2121
    2222        if ( is_admin() ) {
     
    464464        $available_vendors = array();
    465465
     466        if ( ! apply_filters( 'dokan_ensure_vendor_coupon', true ) ) {
     467            return $valid;
     468        }
     469
    466470        // a coupon must be bound with a product
    467471        if ( count( $coupon->get_product_ids() ) == 0 ) {
  • dokan-lite/trunk/includes/class-product-manager.php

    r1995740 r2103681  
    3030        $args = wp_parse_args( $args, $defaults );
    3131
    32         return new WP_Query( $args );
     32        return new WP_Query( apply_filters( 'dokan_all_products_query', $args ) );
    3333    }
    3434
     
    7171        }
    7272
    73         return $this->all( $args );
     73        return $this->all( apply_filters( 'dokan_featured_products_query', $args ) );
    7474    }
    7575
     
    102102        }
    103103
    104         return $this->all( $args );
     104        return $this->all( apply_filters( 'dokan_latest_products_query', $args ) );
    105105    }
    106106
     
    135135        }
    136136
    137         return $this->all( $args );
     137        return $this->all( apply_filters( 'dokan_best_selling_products_query', $args ) );
    138138    }
    139139
     
    166166
    167167        add_filter( 'posts_clauses', array( 'WC_Shortcodes', 'order_by_rating_post_clauses' ) );
    168         $products = $this->all( $args );
     168        $products = $this->all( apply_filters( 'dokan_top_rated_products_query', $args ) );
    169169        remove_filter( 'posts_clauses', array( 'WC_Shortcodes', 'order_by_rating_post_clauses' ) );
    170170
  • dokan-lite/trunk/includes/class-vendor-manager.php

    r2073700 r2103681  
    149149            'address'                 => ! empty( $data['address'] ) ? $data['address'] : [],
    150150            'location'                => ! empty( $data['location'] ) ? $data['location'] : '',
    151             'banner'                  => ! empty( $data['banner'] ) ? $data['banner'] : 0,
    152             'banner_id'               => ! empty( $data['banner_id'] ) ? $data['banner_id'] : 0,
     151            'banner'                  => ! empty( $data['banner_id'] ) ? $data['banner_id'] : 0,
    153152            'icon'                    => ! empty( $data['icon'] ) ? $data['icon'] : '',
    154             'gravatar'                => ! empty( $data['gravatar'] ) ? $data['gravatar'] : 0,
    155             'gravatar_id'             => ! empty( $data['gravatar_id'] ) ? $data['gravatar_id'] : 0,
     153            'gravatar'                => ! empty( $data['gravatar_id'] ) ? $data['gravatar_id'] : 0,
    156154            'show_more_ptab'          => ! empty( $data['show_more_ptab'] ) ? $data['show_more_ptab'] : 'yes',
    157155            'store_ppp'               => ! empty( $data['store_ppp'] ) ? $data['store_ppp'] : 10,
  • dokan-lite/trunk/includes/class-vendor.php

    r2075290 r2103681  
    190190            'location'                => '',
    191191            'banner'                  => 0,
    192             'banner_id'               => 0,
    193192            'icon'                    => 0,
    194193            'gravatar'                => 0,
    195             'gravatar_id'             => 0,
    196194            'show_more_ptab'          => 'yes',
    197195            'store_ppp'               => 10,
     
    405403        $banner_id = $this->get_banner_id();
    406404
    407         if ( ! $banner_id ) {
    408             $banner = $this->get_info_part( 'banner' );
    409 
    410             if ( $banner ) {
    411                 $banner_id = $banner;
    412             } else {
    413                 return false;
    414             }
    415         }
    416 
    417         return wp_get_attachment_url( $banner_id );
     405        return $banner_id ? wp_get_attachment_url( $banner_id ) : '';
    418406    }
    419407
     
    426414     */
    427415    public function get_banner_id() {
    428         $banner_id = (int) $this->get_info_part( 'banner_id' );
     416        $banner_id = (int) $this->get_info_part( 'banner' );
    429417
    430418        return $banner_id ? $banner_id : 0;
     
    441429        $avatar_id = $this->get_avatar_id();
    442430
    443         if ( ! $avatar_id ) {
    444             $avatar_id = $this->get_info_part( 'gravatar' );
    445         }
    446 
    447431        if ( ! $avatar_id && ! empty( $this->data->user_email ) ) {
    448432            return get_avatar_url( $this->data->user_email, 96 );
     
    460444     */
    461445    public function get_avatar_id() {
    462         $avatar_id = (int) $this->get_info_part( 'gravatar_id' );
     446        $avatar_id = (int) $this->get_info_part( 'gravatar' );
    463447
    464448        return $avatar_id ? $avatar_id : 0;
     
    832816     * Get store open notice
    833817     *
    834      * @return string|null on failure
    835      */
    836     public function get_store_open_notice() {
    837         return $this->get_info_part( 'dokan_store_open_notice' );
     818     * @param string $default_notice
     819     *
     820     * @return string
     821     */
     822    public function get_store_open_notice( $default_notice = '' ) {
     823        $notice         = $this->get_info_part( 'dokan_store_open_notice' );
     824        $default_notice = $default_notice ? $default_notice : __( 'Store is open', 'dokan' );
     825
     826        return $notice ? $notice : $default_notice;
    838827    }
    839828
     
    841830     * Get store close notice
    842831     *
    843      * @return string|null on failure
    844      */
    845     public function get_store_close_notice() {
    846         return $this->get_info_part( 'dokan_store_close_notice' );
     832     * @param string $default_notice
     833     *
     834     * @return string
     835     */
     836    public function get_store_close_notice( $default_notice = '' ) {
     837        $notice         = $this->get_info_part( 'dokan_store_close_notice' );
     838        $default_notice = $default_notice ? $default_notice : __( 'Store is closed', 'dokan' );
     839
     840        return $notice ? $notice : $default_notice;
    847841    }
    848842
     
    868862     */
    869863    public function set_gravatar_id( $value ) {
    870         $this->set_prop( 'gravatar_id', (int) $value );
     864        $this->set_prop( 'gravatar', (int) $value );
    871865    }
    872866
     
    877871     */
    878872    public function set_banner_id( $value ) {
    879         $this->set_prop( 'banner_id', (int) $value );
     873        $this->set_prop( 'banner', (int) $value );
    880874    }
    881875
  • dokan-lite/trunk/includes/functions.php

    r2083300 r2103681  
    149149
    150150    return false;
    151 
    152151}
    153152
     
    20092008    }
    20102009
    2011     // see if there is a user_avatar meta field
    2012     $user_avatar = get_user_meta( $user->ID, 'dokan_profile_settings', true );
    2013     $gravatar_id = ! empty( $user_avatar['gravatar_id'] ) ? $user_avatar['gravatar_id'] : 0;
    2014     $gravatar_id = ! empty( $user_avatar['gravatar'] ) ? $user_avatar['gravatar'] : $gravatar_id;
    2015 
    2016     if ( empty( $gravatar_id ) ) {
     2010    $vendor      = dokan()->vendor->get( $user->ID );
     2011    $gravatar_id = $vendor->get_avatar_id();
     2012
     2013    if ( ! $gravatar_id ) {
    20172014        return $url;
    20182015    }
     
    27922789 * @param int $seller_id
    27932790 *
    2794  * @return int $earning;
     2791 * @return float $earning | zero on failure or no price
    27952792 */
    27962793function dokan_get_earning_by_product( $product_id, $seller_id ) {
     
    28062803    $percentage_type    = dokan_get_commission_type( $seller_id, $product_id );
    28072804    $price              = $product->get_price();
    2808     $earning            = 'percentage' == $percentage_type ? (float) ( $price * $percentage ) / 100 : $price - $percentage;
     2805
     2806    if ( ! $price || 0 > $price ) {
     2807        return 0;
     2808    }
     2809
     2810    $earning = 'percentage' == $percentage_type ? (float) ( $price * $percentage ) / 100 : $price - $percentage;
    28092811
    28102812    return wc_format_decimal( $earning );
     
    35083510    return filter_var( $var, FILTER_VALIDATE_BOOLEAN );
    35093511}
     3512
     3513/**
     3514 * Dokan get terms and condition page url
     3515 *
     3516 * @since 2.9.16
     3517 *
     3518 * @return url | null on failure
     3519 */
     3520function dokan_get_terms_condition_url() {
     3521    $page_id = dokan_get_option( 'reg_tc_page', 'dokan_pages' );
     3522
     3523    if ( ! $page_id ) {
     3524        return null;
     3525    }
     3526
     3527    return apply_filters( 'dokan_get_terms_condition_url', get_permalink( $page_id ), $page_id );
     3528}
  • dokan-lite/trunk/includes/order-functions.php

    r2053968 r2103681  
    232232
    233233    if ( $counts === false ) {
    234         $counts = array('wc-pending' => 0, 'wc-completed' => 0, 'wc-on-hold' => 0, 'wc-processing' => 0, 'wc-refunded' => 0, 'wc-cancelled' => 0, 'total' => 0);
     234        $counts = [
     235            'wc-pending'    => 0,
     236            'wc-completed'  => 0,
     237            'wc-on-hold'    => 0,
     238            'wc-processing' => 0,
     239            'wc-refunded'   => 0,
     240            'wc-cancelled'  => 0,
     241            'wc-failed'     => 0,
     242            'total'         => 0
     243        ];
    235244
    236245        $results = $wpdb->get_results( $wpdb->prepare( "SELECT do.order_status
     
    379388 * @param int $order_id
    380389 *
    381  * @return int
     390 * @return int | 0 on failure
    382391 */
    383392function dokan_get_seller_id_by_order( $order_id ) {
     
    386395    $cache_key   = 'dokan_get_seller_id_' . $order_id;
    387396    $cache_group = 'dokan_get_seller_id_by_order';
    388     $sellers     = wp_cache_get( $cache_key, $cache_group );
    389 
    390     if ( false === $sellers ) {
    391         $sellers = $wpdb->get_results( $wpdb->prepare( "SELECT seller_id FROM {$wpdb->prefix}dokan_orders WHERE order_id = %d", $order_id ) );
    392         wp_cache_set( $cache_key, $sellers, $cache_group );
    393     }
    394 
    395     if ( count( $sellers ) == 1 ) {
    396         return absint( reset( $sellers )->seller_id );
     397    $seller      = wp_cache_get( $cache_key, $cache_group );
     398    $items       = [];
     399    $seller_id   = 0;
     400
     401    if ( false === $seller ) {
     402        $seller = $wpdb->get_results( $wpdb->prepare( "SELECT seller_id FROM {$wpdb->prefix}dokan_orders WHERE order_id = %d", $order_id ) );
     403        wp_cache_set( $cache_key, $seller, $cache_group );
     404    }
     405
     406    if ( count( $seller ) === 1 ) {
     407        $seller_id = absint( reset( $seller )->seller_id );
     408
     409        return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
    397410    }
    398411
    399412    // if seller is not found, try to retrieve it via line items
    400     if ( ! $sellers ) {
     413    if ( ! $seller ) {
    401414        $order = wc_get_order( $order_id );
    402415
     416        if ( ! $order instanceof WC_Order ) {
     417            return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
     418        }
     419
    403420        if ( $order->get_meta( 'has_sub_order' ) ) {
    404             return 0;
     421            return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
    405422        }
    406423
     
    408425
    409426        if ( ! $items ) {
    410             return 0;
     427            return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
    411428        }
    412429
    413430        $product_id = current( $items )->get_product_id();
    414431        $seller_id  = get_post_field( 'post_author', $product_id );
    415         $seller_id  = apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
    416 
    417         return $seller_id ? absint( $seller_id ) : 0;
    418     }
    419 
    420     return 0;
     432        $seller_id  = $seller_id ? absint( $seller_id ) : 0;
     433
     434        return apply_filters( 'dokan_get_seller_id_by_order', $seller_id, $items );
     435    }
    421436}
    422437
  • dokan-lite/trunk/includes/template-tags.php

    r2073700 r2103681  
    180180    $canceled_order_url   = array();
    181181    $refund_order_url     = array();
     182    $failed_order_url     = array();
    182183    ?>
    183184
     
    280281            <a href="<?php echo esc_url( add_query_arg( $refund_order_url, $orders_url ) ); ?>">
    281282                <?php printf( esc_html__( 'Refunded (%d)', 'dokan-lite' ), esc_attr( $orders_counts->{'wc-refunded'} ) ); ?></span>
     283            </a>
     284        </li>
     285        <li<?php echo $status_class == 'wc-failed' ? ' class="active"' : ''; ?>>
     286            <?php
     287                if ( $order_date ) {
     288                    $date_filter = array(
     289                        'order_date'         => $order_date,
     290                        'dokan_order_filter' => 'Filter',
     291                    );
     292                }
     293
     294                $failed_order_url = array_merge( $date_filter, array( 'order_status' => 'wc-failed' ) );
     295            ?>
     296            <a href="<?php echo esc_url( add_query_arg( $failed_order_url, $orders_url ) ); ?>">
     297                <?php printf( esc_html__( 'Failed (%d)', 'dokan-lite' ), esc_attr( $orders_counts->{'wc-failed'} ) ); ?></span>
    282298            </a>
    283299        </li>
  • dokan-lite/trunk/includes/wc-template.php

    r2075290 r2103681  
    218218    }
    219219
    220     if ( isset( $_REQUEST['dokan_product_author_override'] ) ) {
    221         $vendor_id = sanitize_text_field( wp_unslash( $_REQUEST['dokan_product_author_override'] ) );
    222 
    223         if ( ! $vendor_id ) {
    224             return;
    225         }
    226 
    227         wp_update_post( array( 'ID' => $product->get_id(), 'post_author' => $vendor_id  ) );
    228     }
     220    $posted_vendor_id = ! empty( $_REQUEST['dokan_product_author_override'] ) ? (int) $_REQUEST['dokan_product_author_override'] : 0;
     221
     222    if ( ! $posted_vendor_id ) {
     223        return;
     224    }
     225
     226    $vendor = dokan_get_vendor_by_product( $product );
     227
     228    if ( $posted_vendor_id === $vendor->get_id() ) {
     229        return;
     230    }
     231
     232    wp_update_post( array( 'ID' => $product->get_id(), 'post_author' => $posted_vendor_id  ) );
    229233}
    230234
     
    332336add_action( 'dokan_store_profile_saved', function( $store_id, $settings ) {
    333337    $store_info        = dokan_get_store_info( $store_id );
    334     $banner            = isset( $store_info['banner'] ) ? true : false;
    335     $gravatar          = isset( $store_info['gravatar'] ) ? true : false;
    336338    $all_times         = isset( $store_info['dokan_store_time'] ) ? $store_info['dokan_store_time'] : false;
    337339    $days              = [ 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' ];
    338340    $is_status_unsated = false;
    339 
    340     if ( $banner ) {
    341         unset( $store_info['banner'] );
    342     }
    343 
    344     if ( $gravatar ) {
    345         unset( $store_info['gravatar'] );
    346     }
    347341
    348342    if ( $all_times ) {
     
    356350    }
    357351
    358     if ( $banner || $gravatar || $is_status_unsated ) {
     352    if ( $is_status_unsated ) {
    359353        update_user_meta( $store_id, 'dokan_profile_settings', $store_info );
    360354    }
  • dokan-lite/trunk/includes/woo-views/html-product-download.php

    r1994959 r2103681  
    1212    <td>
    1313        <p>
    14             <a href="#" class="dokan-btn dokan-btn-sm dokan-btn-danger delete"><span><?php esc_html_e( 'Delete', 'dokan-lite' ); ?></span></a>
     14            <a href="#" class="dokan-btn dokan-btn-sm dokan-btn-danger dokan-product-delete"><span><?php esc_html_e( 'Delete', 'dokan-lite' ); ?></span></a>
    1515        </p>
    1616    </td>
  • dokan-lite/trunk/languages/dokan-lite.pot

    r2083300 r2103681  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Dokan 2.9.15\n"
     5"Project-Id-Version: Dokan 2.9.16\n"
    66"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
    7 "POT-Creation-Date: 2019-05-08 09:11:01+00:00\n"
     7"POT-Creation-Date: 2019-06-11 03:21:00+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    3838msgstr ""
    3939
    40 #: classes/admin-user-profile.php:87 classes/seller-setup-wizard.php:207
     40#: classes/admin-user-profile.php:86 classes/seller-setup-wizard.php:207
    4141#: includes/class-dokan-privacy.php:221
    4242msgid "Country"
    4343msgstr ""
    4444
    45 #: classes/admin-user-profile.php:91
     45#: classes/admin-user-profile.php:90
    4646msgid "Select a country&hellip;"
    4747msgstr ""
    4848
     49#: classes/admin-user-profile.php:93
     50msgid "State/County"
     51msgstr ""
     52
    4953#: classes/admin-user-profile.php:94
    50 msgid "State/County"
    51 msgstr ""
    52 
    53 #: classes/admin-user-profile.php:95
    5454msgid "State/County or state code"
    5555msgstr ""
    5656
    57 #: classes/admin-user-profile.php:100
     57#: classes/admin-user-profile.php:99
    5858msgid "Dokan Options"
    5959msgstr ""
    6060
    61 #: classes/admin-user-profile.php:105
     61#: classes/admin-user-profile.php:104
    6262msgid "Banner"
    6363msgstr ""
    6464
    65 #: classes/admin-user-profile.php:117 templates/settings/store-form.php:78
     65#: classes/admin-user-profile.php:116 templates/settings/store-form.php:76
    6666msgid "Upload banner"
    6767msgstr ""
    6868
    69 #: classes/admin-user-profile.php:121
     69#: classes/admin-user-profile.php:120
    7070msgid "Upload a banner for your store. Banner size is (%1$sx%2$s) pixels."
    7171msgstr ""
    7272
    73 #: classes/admin-user-profile.php:133
     73#: classes/admin-user-profile.php:132
    7474msgid "Store name"
    7575msgstr ""
    7676
    77 #: classes/admin-user-profile.php:140
     77#: classes/admin-user-profile.php:139
    7878msgid "Store URL"
    7979msgstr ""
    8080
    81 #: classes/admin-user-profile.php:148 includes/class-dokan-privacy.php:217
     81#: classes/admin-user-profile.php:147 includes/class-dokan-privacy.php:217
    8282msgid "Address 1"
    8383msgstr ""
    8484
    85 #: classes/admin-user-profile.php:155 includes/class-dokan-privacy.php:218
     85#: classes/admin-user-profile.php:154 includes/class-dokan-privacy.php:218
    8686msgid "Address 2"
    8787msgstr ""
    8888
    89 #: classes/admin-user-profile.php:162
     89#: classes/admin-user-profile.php:161
    9090msgid "Town/City"
    9191msgstr ""
    9292
    93 #: classes/admin-user-profile.php:169
     93#: classes/admin-user-profile.php:168
    9494msgid "Zip Code"
    9595msgstr ""
    9696
    97 #: classes/admin-user-profile.php:210
     97#: classes/admin-user-profile.php:209
    9898#: templates/account/vendor-registration.php:33
    9999#: templates/global/seller-registration-form.php:38
     
    101101msgstr ""
    102102
    103 #: classes/admin-user-profile.php:228
     103#: classes/admin-user-profile.php:227
    104104msgid "Payment Options : "
    105105msgstr ""
    106106
    107 #: classes/admin-user-profile.php:233
     107#: classes/admin-user-profile.php:232
    108108msgid "Paypal Email "
    109109msgstr ""
    110110
    111 #: classes/admin-user-profile.php:241
     111#: classes/admin-user-profile.php:240
    112112msgid "Skrill Email "
    113113msgstr ""
    114114
    115 #: classes/admin-user-profile.php:250
     115#: classes/admin-user-profile.php:249
    116116msgid "Bank name "
    117117msgstr ""
    118118
    119 #: classes/admin-user-profile.php:256
     119#: classes/admin-user-profile.php:255
    120120msgid "Account Name "
    121121msgstr ""
    122122
    123 #: classes/admin-user-profile.php:262
     123#: classes/admin-user-profile.php:261
    124124msgid "Account Number "
    125125msgstr ""
    126126
    127 #: classes/admin-user-profile.php:268
     127#: classes/admin-user-profile.php:267
    128128msgid "Bank Address "
    129129msgstr ""
    130130
    131 #: classes/admin-user-profile.php:274 includes/class-dokan-privacy.php:278
     131#: classes/admin-user-profile.php:273 includes/class-dokan-privacy.php:278
    132132msgid "Routing Number"
    133133msgstr ""
    134134
    135 #: classes/admin-user-profile.php:280
     135#: classes/admin-user-profile.php:279
    136136msgid "Bank IBAN "
    137137msgstr ""
    138138
    139 #: classes/admin-user-profile.php:286
     139#: classes/admin-user-profile.php:285
    140140msgid "Bank Swift "
    141141msgstr ""
    142142
    143 #: classes/admin-user-profile.php:293 includes/admin/setup-wizard.php:109
     143#: classes/admin-user-profile.php:292 includes/admin/setup-wizard.php:109
    144144msgid "Selling"
    145145msgstr ""
    146146
    147 #: classes/admin-user-profile.php:298
     147#: classes/admin-user-profile.php:297
    148148msgid "Enable Adding Products"
    149149msgstr ""
    150150
    151 #: classes/admin-user-profile.php:301
     151#: classes/admin-user-profile.php:300
    152152msgid "Enable or disable product adding capability"
    153153msgstr ""
    154154
    155 #: classes/admin-user-profile.php:306
     155#: classes/admin-user-profile.php:305
    156156msgid "Publishing"
    157157msgstr ""
    158158
    159 #: classes/admin-user-profile.php:311
     159#: classes/admin-user-profile.php:310
    160160msgid "Publish product directly"
    161161msgstr ""
    162162
    163 #: classes/admin-user-profile.php:314
     163#: classes/admin-user-profile.php:313
    164164msgid "Bypass pending, publish products directly"
    165165msgstr ""
    166166
    167 #: classes/admin-user-profile.php:319
     167#: classes/admin-user-profile.php:318
    168168msgid "Admin Commission Type "
    169169msgstr ""
    170170
    171 #: classes/admin-user-profile.php:322 includes/admin/class-settings.php:258
     171#: classes/admin-user-profile.php:321 includes/admin/class-settings.php:258
    172172msgid "Percentage"
    173173msgstr ""
    174174
    175 #: classes/admin-user-profile.php:323 includes/admin/class-settings.php:257
     175#: classes/admin-user-profile.php:322 includes/admin/class-settings.php:257
    176176msgid "Flat"
    177177msgstr ""
    178178
    179 #: classes/admin-user-profile.php:325
     179#: classes/admin-user-profile.php:324
    180180msgid "Set the commmission type admin gets from this seller"
    181181msgstr ""
    182182
    183 #: classes/admin-user-profile.php:329
     183#: classes/admin-user-profile.php:328
    184184msgid "Admin Commission "
    185185msgstr ""
    186186
    187 #: classes/admin-user-profile.php:333
     187#: classes/admin-user-profile.php:332
    188188msgid "It will override the default commission admin gets from each sales"
    189189msgstr ""
    190190
    191 #: classes/admin-user-profile.php:338
     191#: classes/admin-user-profile.php:337
    192192msgid "Featured vendor"
    193193msgstr ""
    194194
    195 #: classes/admin-user-profile.php:343
     195#: classes/admin-user-profile.php:342
    196196msgid "Mark as featured vendor"
    197197msgstr ""
    198198
    199 #: classes/admin-user-profile.php:346
     199#: classes/admin-user-profile.php:345
    200200msgid "This vendor will be marked as a featured vendor."
    201201msgstr ""
     
    302302msgstr ""
    303303
    304 #: classes/installer.php:114 includes/admin/class-settings.php:289
     304#: classes/installer.php:122 includes/admin/class-settings.php:289
    305305#: includes/admin/class-settings.php:297 includes/admin/setup-wizard.php:254
    306306#: includes/admin-functions.php:44 includes/admin-functions.php:50
    307307#: includes/admin-functions.php:685 includes/admin-functions.php:709
    308308#: includes/wc-template.php:13 includes/wc-template.php:146
    309 #: includes/wc-template.php:280 templates/my-orders.php:31
     309#: includes/wc-template.php:284 templates/my-orders.php:31
    310310msgid "Vendor"
    311311msgstr ""
    312312
    313 #: classes/installer.php:178 includes/admin/class-admin.php:134
     313#: classes/installer.php:186 includes/admin/class-admin.php:134
    314314#: includes/admin/class-admin.php:186 includes/admin/class-settings.php:402
    315 #: includes/template-tags.php:307 src/admin/pages/Dashboard.vue:3
     315#: includes/template-tags.php:323 src/admin/pages/Dashboard.vue:3
    316316msgid "Dashboard"
    317317msgstr ""
    318318
    319 #: classes/installer.php:184
     319#: classes/installer.php:192
    320320msgid "Store List"
    321321msgstr ""
    322322
    323 #: classes/installer.php:190 includes/admin/class-settings.php:408
     323#: classes/installer.php:198 includes/admin/class-settings.php:408
    324324#: templates/global/header-menu.php:46
    325325msgid "My Orders"
     
    331331
    332332#: classes/seller-setup-wizard.php:69 includes/admin/setup-wizard.php:104
    333 #: includes/template-tags.php:352
     333#: includes/template-tags.php:368
    334334msgid "Store"
    335335msgstr ""
    336336
    337 #: classes/seller-setup-wizard.php:74 includes/template-tags.php:359
     337#: classes/seller-setup-wizard.php:74 includes/template-tags.php:375
    338338msgid "Payment"
    339339msgstr ""
     
    380380msgstr ""
    381381
    382 #: classes/seller-setup-wizard.php:179 templates/settings/store-form.php:130
     382#: classes/seller-setup-wizard.php:179 templates/settings/store-form.php:128
    383383msgid "Store Product Per Page"
    384384msgstr ""
     
    409409msgstr ""
    410410
    411 #: classes/seller-setup-wizard.php:224 templates/settings/store-form.php:160
     411#: classes/seller-setup-wizard.php:224 templates/settings/store-form.php:158
    412412msgid "Email"
    413413msgstr ""
    414414
    415 #: classes/seller-setup-wizard.php:228 templates/settings/store-form.php:165
     415#: classes/seller-setup-wizard.php:228 templates/settings/store-form.php:163
    416416msgid "Show email address in store"
    417417msgstr ""
     
    446446
    447447#: classes/template-dashboard.php:105 includes/admin/setup-wizard.php:530
    448 #: includes/order-functions.php:482 templates/dashboard/orders-widget.php:26
     448#: includes/order-functions.php:497 templates/dashboard/orders-widget.php:26
    449449msgid "Completed"
    450450msgstr ""
     
    455455
    456456#: classes/template-dashboard.php:115 includes/admin/setup-wizard.php:536
    457 #: includes/order-functions.php:497 templates/dashboard/orders-widget.php:36
     457#: includes/order-functions.php:512 templates/dashboard/orders-widget.php:36
    458458#: templates/orders/listing.php:137
    459459msgid "Processing"
    460460msgstr ""
    461461
    462 #: classes/template-dashboard.php:120 includes/order-functions.php:507
     462#: classes/template-dashboard.php:120 includes/order-functions.php:522
    463463#: templates/dashboard/orders-widget.php:41
    464464msgid "Cancelled"
    465465msgstr ""
    466466
    467 #: classes/template-dashboard.php:125 includes/order-functions.php:502
     467#: classes/template-dashboard.php:125 includes/order-functions.php:517
    468468#: templates/dashboard/orders-widget.php:46
    469469msgid "Refunded"
     
    520520
    521521#: classes/template-settings.php:70 classes/template-settings.php:74
    522 #: dokan.php:477 includes/admin/class-admin.php:146
    523 #: includes/admin/class-admin.php:207 includes/template-tags.php:338
     522#: dokan.php:493 includes/admin/class-admin.php:146
     523#: includes/admin/class-admin.php:207 includes/template-tags.php:354
    524524#: src/admin/pages/Settings.vue:3
    525525msgid "Settings"
     
    649649msgstr ""
    650650
    651 #: classes/upgrade.php:84 includes/admin/class-admin.php:268
     651#: classes/upgrade.php:89 includes/admin/class-admin.php:268
    652652msgid "Dokan Data Update Required"
    653653msgstr ""
    654654
    655 #: classes/upgrade.php:84 includes/admin/class-admin.php:268
     655#: classes/upgrade.php:89 includes/admin/class-admin.php:268
    656656msgid "We need to update your install to the latest version"
    657657msgstr ""
    658658
    659 #: classes/upgrade.php:85 includes/admin/class-admin.php:269
     659#: classes/upgrade.php:90 includes/admin/class-admin.php:269
    660660msgid "Run the updater"
    661661msgstr ""
    662662
    663 #: classes/upgrade.php:90 includes/admin/class-admin.php:274
     663#: classes/upgrade.php:95 includes/admin/class-admin.php:274
    664664msgid ""
    665665"It is strongly recommended that you backup your database before proceeding. "
     
    675675msgstr ""
    676676
    677 #: dokan.php:196
    678 msgid ""
    679 "<b>Dokan</b> requires <a href=\"%s\">WooCommerce</a> to be installed & "
    680 "activated!"
    681 msgstr ""
    682 
    683 #: dokan.php:202
     677#: dokan.php:212
    684678msgid ""
    685679"The Minimum PHP Version Requirement for <b>Dokan</b> is %s. You are Running "
     
    687681msgstr ""
    688682
    689 #: dokan.php:474
     683#: dokan.php:490
    690684msgid "Get Pro"
    691685msgstr ""
    692686
    693 #: dokan.php:478
     687#: dokan.php:494
    694688msgid "Documentation"
     689msgstr ""
     690
     691#: dokan.php:525
     692msgid ""
     693"Dokan requires WooCommerce to be installed and active. You can activate %s "
     694"here."
    695695msgstr ""
    696696
     
    773773#: includes/admin/class-admin.php:124 includes/admin/class-admin.php:135
    774774#: includes/admin/class-admin.php:193 includes/admin/setup-wizard.php:114
    775 #: includes/template-tags.php:329 templates/withdraw/header.php:11
     775#: includes/template-tags.php:345 templates/withdraw/header.php:11
    776776msgid "Withdraw"
    777777msgstr ""
     
    849849msgstr ""
    850850
    851 #: includes/admin/class-settings.php:279 includes/functions.php:1211
    852 #: templates/settings/store-form.php:207
     851#: includes/admin/class-settings.php:279 includes/functions.php:1210
     852#: templates/settings/store-form.php:205
    853853msgid "Terms and Conditions"
    854854msgstr ""
     
    10271027msgstr ""
    10281028
    1029 #: includes/admin/class-settings.php:460 includes/functions.php:3460
     1029#: includes/admin/class-settings.php:460 includes/functions.php:3462
    10301030msgid ""
    10311031"Your personal data will be used to support your experience throughout this "
     
    12511251msgstr ""
    12521252
    1253 #: includes/admin/setup-wizard.php:542 includes/order-functions.php:492
     1253#: includes/admin/setup-wizard.php:542 includes/order-functions.php:507
    12541254msgid "On-hold"
    12551255msgstr ""
     
    13371337msgstr ""
    13381338
    1339 #: includes/admin-functions.php:495 includes/admin-functions.php:872
     1339#: includes/admin-functions.php:495 includes/admin-functions.php:878
    13401340#: includes/api/admin/class-report-controller.php:129
    13411341msgid "Total Sales"
    13421342msgstr ""
    13431343
    1344 #: includes/admin-functions.php:502 includes/admin-functions.php:879
     1344#: includes/admin-functions.php:502 includes/admin-functions.php:885
    13451345msgid "Total: "
    13461346msgstr ""
    13471347
    1348 #: includes/admin-functions.php:505 includes/admin-functions.php:882
     1348#: includes/admin-functions.php:505 includes/admin-functions.php:888
    13491349#: includes/api/admin/class-report-controller.php:137 includes/reports.php:359
    13501350msgid "Number of orders"
    13511351msgstr ""
    13521352
    1353 #: includes/admin-functions.php:512 includes/admin-functions.php:889
     1353#: includes/admin-functions.php:512 includes/admin-functions.php:895
    13541354msgid "sales"
    13551355msgstr ""
    13561356
    1357 #: includes/admin-functions.php:515 includes/admin-functions.php:892
     1357#: includes/admin-functions.php:515 includes/admin-functions.php:898
    13581358#: includes/api/admin/class-report-controller.php:144
    13591359msgid "Commision"
    13601360msgstr ""
    13611361
    1362 #: includes/admin-functions.php:522 includes/admin-functions.php:899
     1362#: includes/admin-functions.php:522 includes/admin-functions.php:905
    13631363msgid "Commision: "
    13641364msgstr ""
     
    13981398
    13991399#: includes/api/admin/class-report-controller.php:141
    1400 #: includes/template-tags.php:321 templates/dashboard/orders-widget.php:15
     1400#: includes/template-tags.php:337 templates/dashboard/orders-widget.php:15
    14011401msgid "Orders"
    14021402msgstr ""
    14031403
    14041404#: includes/api/class-api-rest-controller.php:19
    1405 #: includes/api/class-api-rest-controller.php:180
    1406 #: includes/api/class-api-rest-controller.php:254
     1405#: includes/api/class-api-rest-controller.php:196
     1406#: includes/api/class-api-rest-controller.php:270
    14071407msgid "Method '%s' not implemented. Must be overridden in subclass."
    14081408msgstr ""
     
    14221422msgstr ""
    14231423
    1424 #: includes/api/class-api-rest-controller.php:164
     1424#: includes/api/class-api-rest-controller.php:180
    14251425#: includes/api/class-order-controller.php:657
    14261426msgid "The %s cannot be deleted."
     
    14431443msgstr ""
    14441444
    1445 #: includes/api/class-order-controller.php:93 includes/order-functions.php:762
     1445#: includes/api/class-order-controller.php:93 includes/order-functions.php:777
    14461446msgid "Order Status"
    14471447msgstr ""
     
    29362936msgstr ""
    29372937
    2938 #: includes/class-dokan-privacy.php:174 templates/settings/store-form.php:120
     2938#: includes/class-dokan-privacy.php:174 templates/settings/store-form.php:118
    29392939msgid "Store Name"
    29402940msgstr ""
     
    29642964msgstr ""
    29652965
    2966 #: includes/class-dokan-privacy.php:195 includes/functions.php:2326
     2966#: includes/class-dokan-privacy.php:195 includes/functions.php:2323
    29672967msgid "Facebook"
    29682968msgstr ""
    29692969
    2970 #: includes/class-dokan-privacy.php:196 includes/functions.php:2330
     2970#: includes/class-dokan-privacy.php:196 includes/functions.php:2327
    29712971msgid "Google Plus"
    29722972msgstr ""
    29732973
    2974 #: includes/class-dokan-privacy.php:197 includes/functions.php:2334
     2974#: includes/class-dokan-privacy.php:197 includes/functions.php:2331
    29752975msgid "Twitter"
    29762976msgstr ""
    29772977
    2978 #: includes/class-dokan-privacy.php:198 includes/functions.php:2338
     2978#: includes/class-dokan-privacy.php:198 includes/functions.php:2335
    29792979msgid "Pinterest"
    29802980msgstr ""
     
    29842984msgstr ""
    29852985
    2986 #: includes/class-dokan-privacy.php:200 includes/functions.php:2346
     2986#: includes/class-dokan-privacy.php:200 includes/functions.php:2343
    29872987msgid "Youtube"
    29882988msgstr ""
    29892989
    2990 #: includes/class-dokan-privacy.php:201 includes/functions.php:2350
     2990#: includes/class-dokan-privacy.php:201 includes/functions.php:2347
    29912991msgid "Instagram"
    29922992msgstr ""
    29932993
    2994 #: includes/class-dokan-privacy.php:202 includes/functions.php:2354
     2994#: includes/class-dokan-privacy.php:202 includes/functions.php:2351
    29952995msgid "Flickr"
    29962996msgstr ""
     
    30803080msgstr ""
    30813081
    3082 #: includes/class-order-manager.php:468
     3082#: includes/class-order-manager.php:472
    30833083msgid "A coupon must be restricted with a vendor product."
    30843084msgstr ""
    30853085
    3086 #: includes/class-order-manager.php:524
     3086#: includes/class-order-manager.php:528
    30873087#. translators: %s item name.
    30883088msgid "Unable to restore stock for item %s."
     
    30933093msgstr ""
    30943094
    3095 #: includes/class-registration.php:73
     3095#: includes/class-registration.php:75
    30963096msgid "Nonce verification failed"
    30973097msgstr ""
    30983098
    3099 #: includes/class-registration.php:80
     3099#: includes/class-registration.php:83
    31003100msgid "Cheating, eh?"
    31013101msgstr ""
    31023102
    3103 #: includes/class-registration.php:86
     3103#: includes/class-registration.php:89
    31043104msgid "Please enter your first name."
    31053105msgstr ""
    31063106
    3107 #: includes/class-registration.php:87
     3107#: includes/class-registration.php:90
    31083108msgid "Please enter your last name."
    31093109msgstr ""
    31103110
    3111 #: includes/class-registration.php:88
     3111#: includes/class-registration.php:91
    31123112msgid "Please enter your phone number."
    31133113msgstr ""
    31143114
    3115 #: includes/class-registration.php:89
     3115#: includes/class-registration.php:92
    31163116msgid "Please provide a shop name."
    31173117msgstr ""
     
    31213121msgstr ""
    31223122
    3123 #: includes/class-vendor-manager.php:244
     3123#: includes/class-vendor-manager.php:242
    31243124msgid "Email is not valid"
    31253125msgstr ""
    31263126
    3127 #: includes/class-vendor.php:708
     3127#: includes/class-vendor.php:692
    31283128msgid "No ratings found yet!"
    31293129msgstr ""
    31303130
    3131 #: includes/class-vendor.php:710
     3131#: includes/class-vendor.php:694
    31323132msgid "%s rating from %d review"
    31333133msgid_plural "%s rating from %d reviews"
     
    31353135msgstr[1] ""
    31363136
    3137 #: includes/class-vendor.php:711
     3137#: includes/class-vendor.php:695
    31383138msgid "Rated %s out of %d"
     3139msgstr ""
     3140
     3141#: includes/class-vendor.php:824 templates/settings/store-form.php:286
     3142msgid "Store is open"
     3143msgstr ""
     3144
     3145#: includes/class-vendor.php:838 templates/settings/store-form.php:296
     3146msgid "Store is closed"
    31393147msgstr ""
    31403148
     
    33813389msgstr ""
    33823390
    3383 #: includes/functions.php:765 templates/products/others.php:16
     3391#: includes/functions.php:764 templates/products/others.php:16
    33843392msgid "Online"
    33853393msgstr ""
    33863394
    3387 #: includes/functions.php:766 templates/products/others.php:17
     3395#: includes/functions.php:765 templates/products/others.php:17
    33883396msgid "Draft"
    33893397msgstr ""
    33903398
    3391 #: includes/functions.php:767 templates/dashboard/products-widget.php:41
     3399#: includes/functions.php:766 templates/dashboard/products-widget.php:41
    33923400#: templates/withdraw/pending-request-listing.php:41
    33933401msgid "Pending Review"
    33943402msgstr ""
    33953403
    3396 #: includes/functions.php:768 templates/products/products-listing-row.php:157
     3404#: includes/functions.php:767 templates/products/products-listing-row.php:157
    33973405msgid "Scheduled"
    33983406msgstr ""
    33993407
     3408#: includes/functions.php:810
     3409msgid "Simple Product"
     3410msgstr ""
     3411
    34003412#: includes/functions.php:811
    3401 msgid "Simple Product"
     3413msgid "Variable Product"
    34023414msgstr ""
    34033415
    34043416#: includes/functions.php:812
    3405 msgid "Variable Product"
     3417msgid "Grouped Product"
    34063418msgstr ""
    34073419
    34083420#: includes/functions.php:813
    3409 msgid "Grouped Product"
    3410 msgstr ""
    3411 
    3412 #: includes/functions.php:814
    34133421msgid "Scheduled Product"
    34143422msgstr ""
    34153423
    3416 #: includes/functions.php:1019
     3424#: includes/functions.php:1018
    34173425msgid "Author"
    34183426msgstr ""
    34193427
    3420 #: includes/functions.php:1207 includes/template-tags.php:314
     3428#: includes/functions.php:1206 includes/template-tags.php:330
    34213429#: templates/dashboard/products-widget.php:16
    34223430msgid "Products"
    34233431msgstr ""
    34243432
    3425 #: includes/functions.php:1248
     3433#: includes/functions.php:1247
    34263434msgid "Account Name: %s"
    34273435msgstr ""
    34283436
    3429 #: includes/functions.php:1252
     3437#: includes/functions.php:1251
    34303438msgid "Account Number: %s"
    34313439msgstr ""
    34323440
    3433 #: includes/functions.php:1256
     3441#: includes/functions.php:1255
    34343442msgid "Bank Name: %s"
    34353443msgstr ""
    34363444
    3437 #: includes/functions.php:1260
     3445#: includes/functions.php:1259
    34383446msgid "Address: %s"
    34393447msgstr ""
    34403448
    3441 #: includes/functions.php:1264
     3449#: includes/functions.php:1263
    34423450msgid "Routing Number: %s"
    34433451msgstr ""
    34443452
    3445 #: includes/functions.php:1268
     3453#: includes/functions.php:1267
    34463454msgid "IBAN: %s"
    34473455msgstr ""
    34483456
    3449 #: includes/functions.php:1272
     3457#: includes/functions.php:1271
    34503458msgid "SWIFT: %s"
    34513459msgstr ""
    34523460
    3453 #: includes/functions.php:1630
     3461#: includes/functions.php:1629
    34543462msgid "Date is not valid"
    34553463msgstr ""
    34563464
    3457 #: includes/functions.php:2062
     3465#: includes/functions.php:2059
    34583466msgid "- Select a location -"
    34593467msgstr ""
    34603468
    3461 #: includes/functions.php:2066 includes/functions.php:2089
     3469#: includes/functions.php:2063 includes/functions.php:2086
    34623470msgid "Everywhere Else"
    34633471msgstr ""
    34643472
    3465 #: includes/functions.php:2085
     3473#: includes/functions.php:2082
    34663474msgid "- Select a State -"
    34673475msgstr ""
    34683476
     3477#: includes/functions.php:2104
     3478msgid "Ready to ship in..."
     3479msgstr ""
     3480
     3481#: includes/functions.php:2105
     3482msgid "1 business day"
     3483msgstr ""
     3484
     3485#: includes/functions.php:2106
     3486msgid "1-2 business day"
     3487msgstr ""
     3488
    34693489#: includes/functions.php:2107
    3470 msgid "Ready to ship in..."
     3490msgid "1-3 business day"
    34713491msgstr ""
    34723492
    34733493#: includes/functions.php:2108
    3474 msgid "1 business day"
     3494msgid "3-5 business day"
    34753495msgstr ""
    34763496
    34773497#: includes/functions.php:2109
    3478 msgid "1-2 business day"
     3498msgid "1-2 weeks"
    34793499msgstr ""
    34803500
    34813501#: includes/functions.php:2110
    3482 msgid "1-3 business day"
     3502msgid "2-3 weeks"
    34833503msgstr ""
    34843504
    34853505#: includes/functions.php:2111
    3486 msgid "3-5 business day"
     3506msgid "3-4 weeks"
    34873507msgstr ""
    34883508
    34893509#: includes/functions.php:2112
    3490 msgid "1-2 weeks"
     3510msgid "4-6 weeks"
    34913511msgstr ""
    34923512
    34933513#: includes/functions.php:2113
    3494 msgid "2-3 weeks"
    3495 msgstr ""
    3496 
    3497 #: includes/functions.php:2114
    3498 msgid "3-4 weeks"
    3499 msgstr ""
    3500 
    3501 #: includes/functions.php:2115
    3502 msgid "4-6 weeks"
    3503 msgstr ""
    3504 
    3505 #: includes/functions.php:2116
    35063514msgid "6-8 weeks"
    35073515msgstr ""
    35083516
    3509 #: includes/functions.php:2235
     3517#: includes/functions.php:2232
    35103518msgid "All dates"
    35113519msgstr ""
    35123520
    3513 #: includes/functions.php:2250
     3521#: includes/functions.php:2247
    35143522#. translators: 1: month name, 2: 4-digit year
    35153523msgid "%1$s %2$d"
    35163524msgstr ""
    35173525
    3518 #: includes/functions.php:2342
     3526#: includes/functions.php:2339
    35193527msgid "LinkedIn"
    35203528msgstr ""
    35213529
    3522 #: includes/functions.php:2620
     3530#: includes/functions.php:2617
    35233531msgid "Dokan Store Sidebar"
    35243532msgstr ""
    35253533
    3526 #: includes/functions.php:2881
     3534#: includes/functions.php:2883
    35273535msgid "View sales overview"
    35283536msgstr ""
    35293537
    3530 #: includes/functions.php:2882
     3538#: includes/functions.php:2884
    35313539msgid "View sales report chart"
    35323540msgstr ""
    35333541
    3534 #: includes/functions.php:2883
     3542#: includes/functions.php:2885
    35353543msgid "View announcement"
    35363544msgstr ""
    35373545
    3538 #: includes/functions.php:2884
     3546#: includes/functions.php:2886
    35393547msgid "View order report"
    35403548msgstr ""
    35413549
    3542 #: includes/functions.php:2885
     3550#: includes/functions.php:2887
    35433551msgid "View review report"
    35443552msgstr ""
    35453553
    3546 #: includes/functions.php:2886
     3554#: includes/functions.php:2888
    35473555msgid "View product status report"
    35483556msgstr ""
    35493557
    3550 #: includes/functions.php:2889
     3558#: includes/functions.php:2891
    35513559msgid "View overview report"
    35523560msgstr ""
    35533561
    3554 #: includes/functions.php:2890
     3562#: includes/functions.php:2892
    35553563msgid "View daily sales report"
    35563564msgstr ""
    35573565
    3558 #: includes/functions.php:2891
     3566#: includes/functions.php:2893
    35593567msgid "View top selling report"
    35603568msgstr ""
    35613569
    3562 #: includes/functions.php:2892
     3570#: includes/functions.php:2894
    35633571msgid "View top earning report"
    35643572msgstr ""
    35653573
    3566 #: includes/functions.php:2893
     3574#: includes/functions.php:2895
    35673575msgid "View statement report"
    35683576msgstr ""
    35693577
    3570 #: includes/functions.php:2896
     3578#: includes/functions.php:2898
    35713579msgid "View order"
    35723580msgstr ""
    35733581
    3574 #: includes/functions.php:2897
     3582#: includes/functions.php:2899
    35753583msgid "Manage order"
    35763584msgstr ""
    35773585
    3578 #: includes/functions.php:2898
     3586#: includes/functions.php:2900
    35793587msgid "Manage order note"
    35803588msgstr ""
    35813589
    3582 #: includes/functions.php:2899
     3590#: includes/functions.php:2901
    35833591msgid "Manage refund"
    35843592msgstr ""
    35853593
    3586 #: includes/functions.php:2903
     3594#: includes/functions.php:2905
    35873595msgid "Add coupon"
    35883596msgstr ""
    35893597
    3590 #: includes/functions.php:2904
     3598#: includes/functions.php:2906
    35913599msgid "Edit coupon"
    35923600msgstr ""
    35933601
    3594 #: includes/functions.php:2905
     3602#: includes/functions.php:2907
    35953603msgid "Delete coupon"
    35963604msgstr ""
    35973605
    3598 #: includes/functions.php:2908
     3606#: includes/functions.php:2910
    35993607msgid "View reviews"
    36003608msgstr ""
    36013609
    3602 #: includes/functions.php:2909
     3610#: includes/functions.php:2911
    36033611msgid "Manage reviews"
    36043612msgstr ""
    36053613
    3606 #: includes/functions.php:2913
     3614#: includes/functions.php:2915
    36073615msgid "Manage withdraw"
    36083616msgstr ""
    36093617
    3610 #: includes/functions.php:2916
     3618#: includes/functions.php:2918
    36113619msgid "Add product"
    36123620msgstr ""
    36133621
    3614 #: includes/functions.php:2917
     3622#: includes/functions.php:2919
    36153623msgid "Edit product"
    36163624msgstr ""
    36173625
    3618 #: includes/functions.php:2918
     3626#: includes/functions.php:2920
    36193627msgid "Delete product"
    36203628msgstr ""
    36213629
    3622 #: includes/functions.php:2919
     3630#: includes/functions.php:2921
    36233631msgid "View product"
    36243632msgstr ""
    36253633
    3626 #: includes/functions.php:2920
     3634#: includes/functions.php:2922
    36273635msgid "Duplicate product"
    36283636msgstr ""
    36293637
    3630 #: includes/functions.php:2921
     3638#: includes/functions.php:2923
    36313639msgid "Import product"
    36323640msgstr ""
    36333641
    3634 #: includes/functions.php:2922
     3642#: includes/functions.php:2924
    36353643msgid "Export product"
    36363644msgstr ""
    36373645
    3638 #: includes/functions.php:2925
     3646#: includes/functions.php:2927
    36393647msgid "View overview menu"
    36403648msgstr ""
    36413649
    3642 #: includes/functions.php:2926
     3650#: includes/functions.php:2928
    36433651msgid "View product menu"
    36443652msgstr ""
    36453653
    3646 #: includes/functions.php:2927
     3654#: includes/functions.php:2929
    36473655msgid "View order menu"
    36483656msgstr ""
    36493657
    3650 #: includes/functions.php:2928
     3658#: includes/functions.php:2930
    36513659msgid "View coupon menu"
    36523660msgstr ""
    36533661
    3654 #: includes/functions.php:2929
     3662#: includes/functions.php:2931
    36553663msgid "View report menu"
    36563664msgstr ""
    36573665
    3658 #: includes/functions.php:2930
     3666#: includes/functions.php:2932
    36593667msgid "Vuew review menu"
    36603668msgstr ""
    36613669
    3662 #: includes/functions.php:2931
     3670#: includes/functions.php:2933
    36633671msgid "View withdraw menu"
    36643672msgstr ""
    36653673
    3666 #: includes/functions.php:2932
     3674#: includes/functions.php:2934
    36673675msgid "View store settings menu"
    36683676msgstr ""
    36693677
    3670 #: includes/functions.php:2933
     3678#: includes/functions.php:2935
    36713679msgid "View payment settings menu"
    36723680msgstr ""
    36733681
    3674 #: includes/functions.php:2934
     3682#: includes/functions.php:2936
    36753683msgid "View shipping settings menu"
    36763684msgstr ""
    36773685
    3678 #: includes/functions.php:2935
     3686#: includes/functions.php:2937
    36793687msgid "View social settings menu"
    36803688msgstr ""
    36813689
    3682 #: includes/functions.php:2936
     3690#: includes/functions.php:2938
    36833691msgid "View seo settings menu"
    36843692msgstr ""
    36853693
    3686 #: includes/functions.php:3113
     3694#: includes/functions.php:3115
    36873695msgid "Saturday"
    36883696msgstr ""
    36893697
    3690 #: includes/functions.php:3116
     3698#: includes/functions.php:3118
    36913699msgid "Sunday"
    36923700msgstr ""
    36933701
    3694 #: includes/functions.php:3119
     3702#: includes/functions.php:3121
    36953703msgid "Monday"
    36963704msgstr ""
    36973705
    3698 #: includes/functions.php:3122
     3706#: includes/functions.php:3124
    36993707msgid "Tuesday"
    37003708msgstr ""
    37013709
    3702 #: includes/functions.php:3125
     3710#: includes/functions.php:3127
    37033711msgid "Wednesday"
    37043712msgstr ""
    37053713
    3706 #: includes/functions.php:3128
     3714#: includes/functions.php:3130
    37073715msgid "Thursday"
    37083716msgstr ""
    37093717
    3710 #: includes/functions.php:3131
     3718#: includes/functions.php:3133
    37113719msgid "Friday"
    37123720msgstr ""
    37133721
    3714 #: includes/functions.php:3134
     3722#: includes/functions.php:3136
    37153723msgid "Off Day"
    37163724msgstr ""
    37173725
    3718 #: includes/functions.php:3441
     3726#: includes/functions.php:3443
    37193727msgid "privacy policy"
    37203728msgstr ""
    37213729
    3722 #: includes/functions.php:3481
     3730#: includes/functions.php:3483
    37233731msgid "Please Login to Continue"
    37243732msgstr ""
    37253733
    3726 #: includes/order-functions.php:487
     3734#: includes/order-functions.php:502
    37273735msgid "Pending Payment"
    37283736msgstr ""
    37293737
    3730 #: includes/order-functions.php:512
     3738#: includes/order-functions.php:527
    37313739msgid "Failed"
    37323740msgstr ""
    37333741
    3734 #: includes/order-functions.php:756
     3742#: includes/order-functions.php:771
    37353743msgid "Order No"
    37363744msgstr ""
    37373745
    3738 #: includes/order-functions.php:757 templates/orders/details.php:21
     3746#: includes/order-functions.php:772 templates/orders/details.php:21
    37393747msgid "Order Items"
    37403748msgstr ""
    37413749
    3742 #: includes/order-functions.php:758
     3750#: includes/order-functions.php:773
    37433751msgid "Shipping method"
    37443752msgstr ""
    37453753
    3746 #: includes/order-functions.php:759
     3754#: includes/order-functions.php:774
    37473755msgid "Shipping Cost"
    37483756msgstr ""
    37493757
    3750 #: includes/order-functions.php:760
     3758#: includes/order-functions.php:775
    37513759msgid "Payment method"
    37523760msgstr ""
    37533761
    3754 #: includes/order-functions.php:761 templates/orders/listing.php:48
     3762#: includes/order-functions.php:776 templates/orders/listing.php:48
    37553763#: templates/orders/listing.php:74
    37563764msgid "Order Total"
    37573765msgstr ""
    37583766
    3759 #: includes/order-functions.php:763
     3767#: includes/order-functions.php:778
    37603768msgid "Order Date"
    37613769msgstr ""
    37623770
    3763 #: includes/order-functions.php:765
     3771#: includes/order-functions.php:780
    37643772msgid "Billing Company"
    37653773msgstr ""
    37663774
    3767 #: includes/order-functions.php:766
     3775#: includes/order-functions.php:781
    37683776msgid "Billing First Name"
    37693777msgstr ""
    37703778
    3771 #: includes/order-functions.php:767
     3779#: includes/order-functions.php:782
    37723780msgid "Billing Last Name"
    37733781msgstr ""
    37743782
    3775 #: includes/order-functions.php:768
     3783#: includes/order-functions.php:783
    37763784msgid "Billing Full Name"
    37773785msgstr ""
    37783786
    3779 #: includes/order-functions.php:769
     3787#: includes/order-functions.php:784
    37803788msgid "Billing Email"
    37813789msgstr ""
    37823790
    3783 #: includes/order-functions.php:770
     3791#: includes/order-functions.php:785
    37843792msgid "Billing Phone"
    37853793msgstr ""
    37863794
    3787 #: includes/order-functions.php:771
     3795#: includes/order-functions.php:786
    37883796msgid "Billing Address 1"
    37893797msgstr ""
    37903798
    3791 #: includes/order-functions.php:772
     3799#: includes/order-functions.php:787
    37923800msgid "Billing Address 2"
    37933801msgstr ""
    37943802
    3795 #: includes/order-functions.php:773
     3803#: includes/order-functions.php:788
    37963804msgid "Billing City"
    37973805msgstr ""
    37983806
    3799 #: includes/order-functions.php:774
     3807#: includes/order-functions.php:789
    38003808msgid "Billing State"
    38013809msgstr ""
    38023810
    3803 #: includes/order-functions.php:775
     3811#: includes/order-functions.php:790
    38043812msgid "Billing Postcode"
    38053813msgstr ""
    38063814
    3807 #: includes/order-functions.php:776
     3815#: includes/order-functions.php:791
    38083816msgid "Billing Country"
    38093817msgstr ""
    38103818
    3811 #: includes/order-functions.php:778
     3819#: includes/order-functions.php:793
    38123820msgid "Shipping Company"
    38133821msgstr ""
    38143822
    3815 #: includes/order-functions.php:779
     3823#: includes/order-functions.php:794
    38163824msgid "Shipping First Name"
    38173825msgstr ""
    38183826
    3819 #: includes/order-functions.php:780
     3827#: includes/order-functions.php:795
    38203828msgid "Shipping Last Name"
    38213829msgstr ""
    38223830
    3823 #: includes/order-functions.php:781
     3831#: includes/order-functions.php:796
    38243832msgid "Shipping Full Name"
    38253833msgstr ""
    38263834
    3827 #: includes/order-functions.php:782
     3835#: includes/order-functions.php:797
    38283836msgid "Shipping Address 1"
    38293837msgstr ""
    38303838
    3831 #: includes/order-functions.php:783
     3839#: includes/order-functions.php:798
    38323840msgid "Shipping Address 2"
    38333841msgstr ""
    38343842
    3835 #: includes/order-functions.php:784
     3843#: includes/order-functions.php:799
    38363844msgid "Shipping City"
    38373845msgstr ""
    38383846
    3839 #: includes/order-functions.php:785
     3847#: includes/order-functions.php:800
    38403848msgid "Shipping State"
    38413849msgstr ""
    38423850
    3843 #: includes/order-functions.php:786
     3851#: includes/order-functions.php:801
    38443852msgid "Shipping Postcode"
    38453853msgstr ""
    38463854
    3847 #: includes/order-functions.php:787
     3855#: includes/order-functions.php:802
    38483856msgid "Shipping Country"
    38493857msgstr ""
    38503858
    3851 #: includes/order-functions.php:789
     3859#: includes/order-functions.php:804
    38523860msgid "Customer IP"
    38533861msgstr ""
    38543862
    3855 #: includes/order-functions.php:790
     3863#: includes/order-functions.php:805
    38563864msgid "Customer Note"
    38573865msgstr ""
     
    40124020
    40134021#: includes/product-functions.php:328 src/admin/components/ColorPicker.vue:31
    4014 #: templates/orders/details.php:348 templates/settings/store-form.php:264
     4022#: templates/orders/details.php:348 templates/settings/store-form.php:262
    40154023msgid "Close"
    40164024msgstr ""
     
    40754083
    40764084#: includes/template-tags.php:105 includes/template-tags.php:109
    4077 #: templates/store-lists-loop.php:93
     4085#: templates/store-lists-loop.php:94
    40784086msgid "&larr; Previous"
    40794087msgstr ""
    40804088
    4081 #: includes/template-tags.php:120 templates/store-lists-loop.php:94
     4089#: includes/template-tags.php:120 templates/store-lists-loop.php:95
    40824090msgid "Next &rarr;"
    40834091msgstr ""
     
    40874095msgstr ""
    40884096
    4089 #: includes/template-tags.php:197
     4097#: includes/template-tags.php:198
    40904098#: templates/products/listing-status-filter.php:13
    40914099msgid "All (%d)"
    40924100msgstr ""
    40934101
    4094 #: includes/template-tags.php:211
     4102#: includes/template-tags.php:212
    40954103msgid "Completed (%d)"
    40964104msgstr ""
    40974105
    4098 #: includes/template-tags.php:225
     4106#: includes/template-tags.php:226
    40994107msgid "Processing (%d)"
    41004108msgstr ""
    41014109
    4102 #: includes/template-tags.php:239
     4110#: includes/template-tags.php:240
    41034111msgid "On-hold (%d)"
    41044112msgstr ""
    41054113
    4106 #: includes/template-tags.php:253
     4114#: includes/template-tags.php:254
    41074115msgid "Pending (%d)"
    41084116msgstr ""
    41094117
    4110 #: includes/template-tags.php:267
     4118#: includes/template-tags.php:268
    41114119msgid "Cancelled (%d)"
    41124120msgstr ""
    41134121
    4114 #: includes/template-tags.php:281
     4122#: includes/template-tags.php:282
    41154123msgid "Refunded (%d)"
    41164124msgstr ""
    41174125
    4118 #: includes/template-tags.php:346
     4126#: includes/template-tags.php:297
     4127msgid "Failed (%d)"
     4128msgstr ""
     4129
     4130#: includes/template-tags.php:362
    41194131msgid "Back to Dashboard"
    41204132msgstr ""
    41214133
    4122 #: includes/template-tags.php:465 templates/settings/header.php:13
    4123 #: templates/store-lists-loop.php:70
     4134#: includes/template-tags.php:481 templates/settings/header.php:13
     4135#: templates/store-lists-loop.php:71
    41244136msgid "Visit Store"
    41254137msgstr ""
    41264138
    4127 #: includes/template-tags.php:466 templates/global/header-menu.php:48
     4139#: includes/template-tags.php:482 templates/global/header-menu.php:48
    41284140msgid "Edit Account"
    41294141msgstr ""
    41304142
    4131 #: includes/template-tags.php:467
     4143#: includes/template-tags.php:483
    41324144msgid "Log out"
    41334145msgstr ""
     
    42124224msgstr ""
    42134225
    4214 #: includes/wc-template.php:249
     4226#: includes/wc-template.php:253
    42154227msgid "Go to Vendor Dashboard"
    42164228msgstr ""
     
    46004612msgstr ""
    46014613
    4602 #: templates/account/vendor-registration.php:70
    4603 #: templates/global/seller-registration-form.php:52
     4614#: templates/account/vendor-registration.php:67
     4615#: templates/global/seller-registration-form.php:49
    46044616msgid ""
    46054617"I have read and agree to the <a target=\"_blank\" href=\"%s\">Terms &amp; "
     
    46074619msgstr ""
    46084620
    4609 #: templates/account/vendor-registration.php:80
     4621#: templates/account/vendor-registration.php:77
    46104622msgid "Register"
    46114623msgstr ""
     
    49134925msgstr ""
    49144926
    4915 #: templates/global/seller-registration-form.php:65
     4927#: templates/global/seller-registration-form.php:62
    49164928msgid "I am a customer"
    49174929msgstr ""
    49184930
    4919 #: templates/global/seller-registration-form.php:70
     4931#: templates/global/seller-registration-form.php:67
    49204932msgid "I am a vendor"
    49214933msgstr ""
     
    52175229msgstr ""
    52185230
    5219 #: templates/orders/order-tax-html.php:8 templates/store-lists-loop.php:10
     5231#: templates/orders/order-tax-html.php:8
    52205232msgid "N/A"
    52215233msgstr ""
     
    57145726msgstr ""
    57155727
    5716 #: templates/settings/payment.php:39 templates/settings/store-form.php:309
     5728#: templates/settings/payment.php:39 templates/settings/store-form.php:307
    57175729msgid "Update Settings"
    57185730msgstr ""
    57195731
    5720 #: templates/settings/store-form.php:91
     5732#: templates/settings/store-form.php:89
    57215733msgid "Upload a banner for your store. Banner size is (%sx%s) pixels."
    57225734msgstr ""
    57235735
    5724 #: templates/settings/store-form.php:104
     5736#: templates/settings/store-form.php:102
    57255737msgid "Profile Picture"
    57265738msgstr ""
    57275739
    5728 #: templates/settings/store-form.php:114
     5740#: templates/settings/store-form.php:112
    57295741msgid "Upload Photo"
    57305742msgstr ""
    57315743
    5732 #: templates/settings/store-form.php:123
     5744#: templates/settings/store-form.php:121
    57335745msgid "store name"
    57345746msgstr ""
    57355747
     5748#: templates/settings/store-form.php:151
     5749msgid "Phone No"
     5750msgstr ""
     5751
    57365752#: templates/settings/store-form.php:153
    5737 msgid "Phone No"
    5738 msgstr ""
    5739 
    5740 #: templates/settings/store-form.php:155
    57415753msgid "+123456.."
    57425754msgstr ""
    57435755
    5744 #: templates/settings/store-form.php:172
     5756#: templates/settings/store-form.php:170
    57455757msgid "More products"
    57465758msgstr ""
    57475759
    5748 #: templates/settings/store-form.php:177
     5760#: templates/settings/store-form.php:175
    57495761msgid "Enable tab on product single page view"
    57505762msgstr ""
    57515763
    5752 #: templates/settings/store-form.php:185
     5764#: templates/settings/store-form.php:183
    57535765msgid "Map"
    57545766msgstr ""
    57555767
    5756 #: templates/settings/store-form.php:192
     5768#: templates/settings/store-form.php:190
    57575769msgid "Type an address to find"
    57585770msgstr ""
    57595771
    5760 #: templates/settings/store-form.php:193
     5772#: templates/settings/store-form.php:191
    57615773msgid "Find Address"
    57625774msgstr ""
    57635775
    5764 #: templates/settings/store-form.php:211
     5776#: templates/settings/store-form.php:209
    57655777msgid "Show terms and conditions in store page"
    57665778msgstr ""
    57675779
    5768 #: templates/settings/store-form.php:217
     5780#: templates/settings/store-form.php:215
    57695781msgid "TOC Details"
    57705782msgstr ""
    57715783
    5772 #: templates/settings/store-form.php:236
     5784#: templates/settings/store-form.php:234
    57735785msgid "Store Opening Closing Time"
    57745786msgstr ""
    57755787
    5776 #: templates/settings/store-form.php:243
     5788#: templates/settings/store-form.php:241
    57775789msgid "Show store opening closing time widget in store page"
    57785790msgstr ""
    57795791
    5780 #: templates/settings/store-form.php:267
     5792#: templates/settings/store-form.php:265
    57815793msgid "Open"
    57825794msgstr ""
    57835795
    5784 #: templates/settings/store-form.php:284
     5796#: templates/settings/store-form.php:282
    57855797msgid "Store Open Notice"
    57865798msgstr ""
    57875799
    5788 #: templates/settings/store-form.php:288
    5789 msgid "Store is open"
    5790 msgstr ""
    5791 
    5792 #: templates/settings/store-form.php:294
     5800#: templates/settings/store-form.php:292
    57935801msgid "Store Close Notice"
    5794 msgstr ""
    5795 
    5796 #: templates/settings/store-form.php:298
    5797 msgid "Store is closed"
    57985802msgstr ""
    57995803
     
    58065810msgstr ""
    58075811
    5808 #: templates/store-lists-loop.php:25
     5812#: templates/store-lists-loop.php:26
    58095813msgid "Featured"
    58105814msgstr ""
    58115815
    5812 #: templates/store-lists-loop.php:35
     5816#: templates/store-lists-loop.php:36
    58135817msgid "Rated %s out of 5"
    58145818msgstr ""
    58155819
    5816 #: templates/store-lists-loop.php:120
     5820#: templates/store-lists-loop.php:38
     5821msgid "out of 5"
     5822msgstr ""
     5823
     5824#: templates/store-lists-loop.php:121
    58175825msgid "No vendor found!"
    58185826msgstr ""
  • dokan-lite/trunk/readme.txt

    r2083300 r2103681  
    44Tags: WooCommerce multivendor marketplace, multi vendor marketplace, multi seller store, product vendors, woocommerce vendor, commission rate, e-commerce, ebay, ecommerce, yith, yithemes
    55Requires at least: 4.4
    6 Tested up to: 5.1.1
     6Tested up to: 5.2.1
    77WC requires at least: 3.0
    8 WC tested up to: 3.6.2
     8WC tested up to: 3.6.4
    99Requires PHP: 5.6
    1010Stable tag: trunk
     
    275275== Changelog ==
    276276
     277v2.9.16 -> June 11, 2019
     278------------------------------------
     279-   **Fix***   Hide hidden and out of stock products in vendor store page
     280-   **Fix***   A non-numeric value encountered warning in vendor product listing page, if product price is not given
     281-   **Fix***   Add failed order in vendor order listing page
     282-   **Fix***   Creating product from admin backend returns 2 instance of the product author
     283-   **Tweak*** Ensure dokan_get_seller_id_by_order filter is always taking effect
     284-   **Tweak*** Make dokan vendor dashboard responsive
     285-   **Tweak*** Show admin notice stating WooCommerce is required if not found on dokan installation
     286-   **Tweak*** Add hook after creating and updating object via dokan REST API
     287-   **Tweak*** Add dokan_ensure_vendor_coupon filter while ensuring vendor coupon restriction
     288-   **Tweak*** Add updater class to fix banner issue where store settings and listing template was overridden
     289-   **Tweak*** Add filter hook while fetching vendor products
     290-   **Tweak*** Add define method to define plugin constants
     291
    277292v2.9.15 -> May 08, 2019
    278293------------------------------------
  • dokan-lite/trunk/templates/account/vendor-registration.php

    r2073700 r2103681  
    5959
    6060    <?php
    61     $show_toc = dokan_get_option( 'enable_tc_on_reg', 'dokan_general' );
     61    $show_terms_condition = dokan_get_option( 'enable_tc_on_reg', 'dokan_general' );
     62    $terms_condition_url  = dokan_get_terms_condition_url();
    6263
    63     if ( $show_toc == 'on' ) {
    64         $toc_page_id = dokan_get_option( 'reg_tc_page', 'dokan_pages' );
     64    if ( 'on' === $show_terms_condition && $terms_condition_url ) { ?>
     65        <p class="form-row form-group form-row-wide">
     66            <input class="tc_check_box" type="checkbox" id="tc_agree" name="tc_agree" required="required">
     67            <label style="display: inline" for="tc_agree"><?php echo sprintf( __( 'I have read and agree to the <a target="_blank" href="%s">Terms &amp; Conditions</a>.', 'dokan-lite' ), esc_url( $terms_condition_url ) ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped  ?></label>
     68        </p>
     69    <?php }
    6570
    66         if ( $toc_page_id != -1 ) {
    67             $toc_page_url = get_permalink( $toc_page_id ); ?>
    68             <p class="form-row form-group form-row-wide">
    69                 <input class="tc_check_box" type="checkbox" id="tc_agree" name="tc_agree" required="required">
    70                 <label style="display: inline" for="tc_agree"><?php echo sprintf( __( 'I have read and agree to the <a target="_blank" href="%s">Terms &amp; Conditions</a>.', 'dokan-lite' ), $toc_page_url ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped  ?></label>
    71             </p>
    72         <?php } ?>
    73     <?php } ?>
    74 
    75     <?php do_action( 'dokan_seller_registration_field_after' ); ?>
     71    do_action( 'dokan_seller_registration_field_after' );
     72    ?>
    7673
    7774    <p class="form-row">
  • dokan-lite/trunk/templates/global/dashboard-nav.php

    r1210842 r2103681  
    55
    66<div class="dokan-dash-sidebar">
    7     <?php echo dokan_dashboard_nav( $active_menu ); ?>
     7    <nav id="dokan-navigation" area-label="Menu">
     8        <label for="toggle-mobile-menu" aria-label="Menu">&#9776;</label>
     9        <input id="toggle-mobile-menu" type="checkbox" />
     10
     11        <?php echo dokan_dashboard_nav( $active_menu ); ?>
     12    </nav>
    813</div>
  • dokan-lite/trunk/templates/global/seller-registration-form.php

    r1997957 r2103681  
    3939        <input type="text" class="input-text form-control" name="phone" id="shop-phone" value="<?php if ( ! empty( $postdata['phone'] ) ) echo esc_attr($postdata['phone']); ?>" required="required" />
    4040    </p>
     41
    4142    <?php
     43    $show_terms_condition = dokan_get_option( 'enable_tc_on_reg', 'dokan_general' );
     44    $terms_condition_url  = dokan_get_terms_condition_url();
    4245
    43         $show_toc = dokan_get_option( 'enable_tc_on_reg', 'dokan_general' );
     46    if ( 'on' === $show_terms_condition && $terms_condition_url ) { ?>
     47        <p class="form-row form-group form-row-wide">
     48            <input class="tc_check_box" type="checkbox" id="tc_agree" name="tc_agree" required="required">
     49            <label style="display: inline" for="tc_agree"><?php echo sprintf( __( 'I have read and agree to the <a target="_blank" href="%s">Terms &amp; Conditions</a>.', 'dokan-lite' ), esc_url( $terms_condition_url ) ); ?></label>
     50        </p>
     51    <?php }
    4452
    45         if ( $show_toc == 'on' ) {
    46             $toc_page_id = dokan_get_option( 'reg_tc_page', 'dokan_pages' );
    47             if ( $toc_page_id != -1 ) {
    48                 $toc_page_url = get_permalink( $toc_page_id );
     53    do_action( 'dokan_seller_registration_field_after' );
    4954    ?>
    50             <p class="form-row form-group form-row-wide">
    51                 <input class="tc_check_box" type="checkbox" id="tc_agree" name="tc_agree" required="required">
    52                 <label style="display: inline" for="tc_agree"><?php echo sprintf( __( 'I have read and agree to the <a target="_blank" href="%s">Terms &amp; Conditions</a>.', 'dokan-lite' ), esc_url( $toc_page_url ) ); ?></label>
    53             </p>
    54             <?php } ?>
    55         <?php } ?>
    56     <?php  do_action( 'dokan_seller_registration_field_after' ); ?>
    57 
    5855</div>
    5956
  • dokan-lite/trunk/templates/settings/store-form.php

    r2075290 r2103681  
    77?>
    88<?php
    9     $gravatar_id    = ! empty( $profile_info['gravatar_id'] ) ? $profile_info['gravatar_id'] : 0;
    10     $gravatar_id    = ! empty( $profile_info['gravatar'] ) ? $profile_info['gravatar'] : $gravatar_id;
    11     $banner_id      = ! empty( $profile_info['banner_id'] ) ? $profile_info['banner_id'] : 0;
    12     $banner_id      = ! empty( $profile_info['banner'] ) ? $profile_info['banner'] : $banner_id;
     9    $gravatar_id    = ! empty( $profile_info['gravatar'] ) ? $profile_info['gravatar'] : 0;
     10    $banner_id      = ! empty( $profile_info['banner'] ) ? $profile_info['banner'] : 0;
    1311    $storename      = isset( $profile_info['store_name'] ) ? $profile_info['store_name'] : '';
    1412    $store_ppp      = isset( $profile_info['store_ppp'] ) ? $profile_info['store_ppp'] : '';
     
    339337        width: auto;
    340338    }
    341     @media only screen and ( max-width: 400px ) {
     339    @media only screen and ( max-width: 415px ) {
    342340        .store-open-close label:first-child {
    343341            width: 100%;
  • dokan-lite/trunk/templates/store-lists-loop.php

    r2075290 r2103681  
    55                <?php
    66                foreach ( $sellers['users'] as $seller ) {
    7                     $store_info      = dokan_get_store_info( $seller->ID );
    8                     $banner_id       = ! empty( $store_info['banner_id'] ) ? $store_info['banner_id'] : 0;
    9                     $banner_id       = ! empty( $store_info['banner'] ) ? $store_info['banner'] : $banner_id;
    10                     $store_name      = isset( $store_info['store_name'] ) ? esc_html( $store_info['store_name'] ) : __( 'N/A', 'dokan-lite' );
    11                     $store_url       = dokan_get_store_url( $seller->ID );
    12                     $store_address   = dokan_get_seller_short_address( $seller->ID );
    13                     $seller_rating   = dokan_get_seller_rating( $seller->ID );
    14                     $banner_url      = ( $banner_id ) ? wp_get_attachment_image_src( $banner_id, $image_size ) : DOKAN_PLUGIN_ASSEST . '/images/default-store-banner.png';
    15                     $featured_seller = get_user_meta( $seller->ID, 'dokan_feature_seller', true );
     7                    $vendor            = dokan()->vendor->get( $seller->ID );
     8                    $store_banner_id   = $vendor->get_banner_id();
     9                    $store_name        = $vendor->get_shop_name();
     10                    $store_url         = $vendor->get_shop_url();
     11                    $store_rating      = $vendor->get_rating();
     12                    $is_store_featured = $vendor->is_featured();
     13                    $store_phone       = $vendor->get_phone();
     14                    $store_info        = dokan_get_store_info( $seller->ID );
     15                    $store_address     = dokan_get_seller_short_address( $seller->ID );
     16                    $store_banner_url  = $store_banner_id ? wp_get_attachment_image_src( $store_banner_id, $image_size ) : DOKAN_PLUGIN_ASSEST . '/images/default-store-banner.png';
    1617                    ?>
    1718
    18                     <li class="dokan-single-seller woocommerce coloum-<?php echo esc_attr( $per_row ); ?> <?php echo ( ! $banner_id ) ? 'no-banner-img' : ''; ?>">
     19                    <li class="dokan-single-seller woocommerce coloum-<?php echo esc_attr( $per_row ); ?> <?php echo ( ! $store_banner_id ) ? 'no-banner-img' : ''; ?>">
    1920                        <div class="store-wrapper">
    2021                            <div class="store-content">
    21                                 <div class="store-info" style="background-image: url( '<?php echo is_array( $banner_url ) ? esc_attr( $banner_url[0] ) : esc_attr( $banner_url ); ?>');">
     22                                <div class="store-info" style="background-image: url( '<?php echo is_array( $store_banner_url ) ? esc_attr( $store_banner_url[0] ) : esc_attr( $store_banner_url ); ?>');">
    2223                                    <div class="store-data-container">
    2324                                        <div class="featured-favourite">
    24                                             <?php if ( ! empty( $featured_seller ) && 'yes' == $featured_seller ): ?>
     25                                            <?php if ( $is_store_featured ) : ?>
    2526                                                <div class="featured-label"><?php esc_html_e( 'Featured', 'dokan-lite' ); ?></div>
    2627                                            <?php endif ?>
     
    3031
    3132                                        <div class="store-data">
    32                                             <h2><a href="<?php echo esc_attr($store_url); ?>"><?php echo esc_html($store_name); ?></a></h2>
     33                                            <h2><a href="<?php echo esc_attr( $store_url ); ?>"><?php echo esc_html( $store_name ); ?></a></h2>
    3334
    34                                             <?php if ( !empty( $seller_rating['count'] ) ): ?>
    35                                                 <div class="star-rating dokan-seller-rating" title="<?php echo sprintf( esc_attr__( 'Rated %s out of 5', 'dokan-lite' ), esc_attr( $seller_rating['rating'] ) ) ?>">
    36                                                     <span style="width: <?php echo ( esc_attr( ($seller_rating['rating']/5) ) * 100 - 1 ); ?>%">
    37                                                         <strong class="rating"><?php echo esc_html( $seller_rating['rating'] ); ?></strong> out of 5
     35                                            <?php if ( !empty( $store_rating['count'] ) ): ?>
     36                                                <div class="star-rating dokan-seller-rating" title="<?php echo sprintf( esc_attr__( 'Rated %s out of 5', 'dokan-lite' ), esc_attr( $store_rating['rating'] ) ) ?>">
     37                                                    <span style="width: <?php echo ( esc_attr( ( $store_rating['rating'] / 5 ) ) * 100 - 1 ); ?>%">
     38                                                        <strong class="rating"><?php echo esc_html( $store_rating['rating'] ); ?></strong> <?php _e( 'out of 5', 'dokan-lite' ); ?>
    3839                                                    </span>
    3940                                                </div>
     
    5253                                            <?php endif ?>
    5354
    54                                             <?php if ( !empty( $store_info['phone'] ) ) { ?>
     55                                            <?php if ( $store_phone ) { ?>
    5556                                                <p class="store-phone">
    56                                                     <i class="fa fa-phone" aria-hidden="true"></i> <?php echo esc_html( $store_info['phone'] ); ?>
     57                                                    <i class="fa fa-phone" aria-hidden="true"></i> <?php echo esc_html( $store_phone ); ?>
    5758                                                </p>
    5859                                            <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.