WC Vendors - Version 2.4.2

Version Description

Download this release

Release Info

Developer digitalchild
Plugin Icon 128x128 WC Vendors
Version 2.4.2
Comparing to
See all releases

Code changes from version 2.4.1 to 2.4.2

.eslintrc.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module.exports = {
2
+ env: {
3
+ jquery: true,
4
+ es6: true,
5
+ node: true,
6
+ amd: true
7
+ },
8
+ parser: 'babel-eslint',
9
+ parserOptions: {
10
+ sourceType: 'module'
11
+ },
12
+ extends: ['wordpress', 'eslint:recommended', 'plugin:prettier/recommended'],
13
+ plugins: ['babel', 'prettier'],
14
+ rules: {
15
+ 'no-undef': 'off'
16
+ }
17
+ };
.stylelintrc ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ {
2
+ "extends": [
3
+ "@wordpress/stylelint-config",
4
+ "stylelint-config-prettier-scss"
5
+ ]
6
+ }
assets/css/wcv-store.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .wcv-shop-header-name { font-size: 2em; margin-bottom: 0.5em; }
2
+
3
+ @media screen and (max-width: 768px) { .wcv-shop-header-name { font-size: 1.5em; } }
assets/css/wcv-store.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .wcv-shop-header-name{font-size:2em;margin-bottom:.5em}@media screen and (max-width:768px){.wcv-shop-header-name{font-size:1.5em}}
assets/css/wcv-store.scss ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ .wcv-shop-header-name {
2
+ font-size: 2em;
3
+ margin-bottom: 0.5em;
4
+ @media screen and (max-width: 768px) {
5
+ font-size: 1.5em;
6
+ }
7
+ }
changelog.txt CHANGED
@@ -1,5 +1,12 @@
1
  Changelog for WC Vendors Marketplace
2
 
 
 
 
 
 
 
 
3
  Version 2.4.1 - 3rd March 2022
4
 
5
  * Updated: Sales report with refund details (#822)
1
  Changelog for WC Vendors Marketplace
2
 
3
+ Version 2.4.2 - 19th May 2022
4
+
5
+ * Updated: Dev tools (#842)
6
+ * Fixed: Vendor menu shows on Admin dashboard (#844)
7
+ * Fixed: Duplicate H1 tag on products (#840)
8
+ * Fixed: The colspan does not match in vendor dashboard (#838)
9
+
10
  Version 2.4.1 - 3rd March 2022
11
 
12
  * Updated: Sales report with refund details (#822)
class-wc-vendors.php CHANGED
@@ -7,11 +7,11 @@
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
- * Version: 2.4.1
11
  * Requires at least: 5.3.0
12
  * Tested up to: 6.0
13
  * WC requires at least: 5.0
14
- * WC tested up to: 6.2.1
15
  *
16
  * Text Domain: wc-vendors
17
  * Domain Path: /languages/
@@ -106,7 +106,7 @@ if ( wcv_is_woocommerce_activated() ) {
106
  */
107
  class WC_Vendors {
108
 
109
- public $version = '2.4.1';
110
 
111
  /**
112
  * @var
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
+ * Version: 2.4.2
11
  * Requires at least: 5.3.0
12
  * Tested up to: 6.0
13
  * WC requires at least: 5.0
14
+ * WC tested up to: 6.5
15
  *
16
  * Text Domain: wc-vendors
17
  * Domain Path: /languages/
106
  */
107
  class WC_Vendors {
108
 
109
+ public $version = '2.4.2';
110
 
111
  /**
112
  * @var
classes/admin/class-vendor-admin-dashboard.php CHANGED
@@ -19,7 +19,14 @@ class WCV_Vendor_Admin_Dashboard {
19
  add_action( 'admin_head', array( $this, 'admin_enqueue_order_style' ) );
20
  }
21
 
22
- function vendor_dashboard_pages() {
 
 
 
 
 
 
 
23
 
24
  add_menu_page(
25
  __( 'Shop Settings', 'wc-vendors' ),
19
  add_action( 'admin_head', array( $this, 'admin_enqueue_order_style' ) );
20
  }
21
 
22
+ /**
23
+ * Add the vendor dashboard pages menu exclude admin.
24
+ */
25
+ public function vendor_dashboard_pages() {
26
+
27
+ if ( current_user_can( 'administrator' ) ) {
28
+ return;
29
+ }
30
 
31
  add_menu_page(
32
  __( 'Shop Settings', 'wc-vendors' ),
classes/front/dashboard/class-vendor-dashboard.php CHANGED
@@ -46,6 +46,8 @@ class WCV_Vendor_Dashboard {
46
  ) {
47
  wp_enqueue_style( 'wcv_frontend_style', wcv_assets_url . 'css/wcv-frontend.css' );
48
  }
 
 
49
  }
50
 
51
  public function save_vendor_settings() {
46
  ) {
47
  wp_enqueue_style( 'wcv_frontend_style', wcv_assets_url . 'css/wcv-frontend.css' );
48
  }
49
+
50
+ wp_enqueue_style( 'wcv_vendor_store_style', wcv_assets_url . 'css/wcv-store.css' );
51
  }
52
 
53
  public function save_vendor_settings() {
readme.txt CHANGED
@@ -8,8 +8,8 @@ Requires at least: 5.3.0
8
  Requires PHP: 7.4
9
  Tested up to: 6.0
10
  WC requires at least: 5.0.0
11
- WC tested up to: 6.2.1
12
- Stable tag: 2.4.1
13
  License: GPLv2 or later
14
 
15
  The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best support available.
@@ -264,6 +264,13 @@ WC Vendors Marketplace does not work with multisite WordPress. There are no plan
264
 
265
  == Changelog ==
266
 
 
 
 
 
 
 
 
267
  = Version 2.4.1 - 3rd March 2022 =
268
 
269
  * Updated: Sales report with refund details (#822)
8
  Requires PHP: 7.4
9
  Tested up to: 6.0
10
  WC requires at least: 5.0.0
11
+ WC tested up to: 6.5
12
+ Stable tag: 2.4.2
13
  License: GPLv2 or later
14
 
15
  The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best support available.
264
 
265
  == Changelog ==
266
 
267
+ == Version 2.4.2 - 19th May 2022 ==
268
+
269
+ * Updated: Dev tools (#842)
270
+ * Fixed: Vendor menu shows on Admin dashboard (#844)
271
+ * Fixed: Duplicate H1 tag on products (#840)
272
+ * Fixed: The colspan does not match in vendor dashboard (#838)
273
+
274
  = Version 2.4.1 - 3rd March 2022 =
275
 
276
  * Updated: Sales report with refund details (#822)
templates/dashboard/reports.php CHANGED
@@ -90,7 +90,7 @@ if ( $datepicker !== 'false' ) {
90
  <?php else : ?>
91
 
92
  <tr>
93
- <td colspan="4"
94
  style="text-align:center;"><?php _e( 'You have no sales during this period.', 'wc-vendors' ); ?></td>
95
  </tr>
96
 
@@ -100,7 +100,7 @@ if ( $datepicker !== 'false' ) {
100
  <?php else : ?>
101
 
102
  <tr>
103
- <td colspan="4"
104
  style="text-align:center;"><?php _e( 'You haven\'t made any sales yet.', 'wc-vendors' ); ?></td>
105
  </tr>
106
 
90
  <?php else : ?>
91
 
92
  <tr>
93
+ <td colspan="5"
94
  style="text-align:center;"><?php _e( 'You have no sales during this period.', 'wc-vendors' ); ?></td>
95
  </tr>
96
 
100
  <?php else : ?>
101
 
102
  <tr>
103
+ <td colspan="5"
104
  style="text-align:center;"><?php _e( 'You haven\'t made any sales yet.', 'wc-vendors' ); ?></td>
105
  </tr>
106
 
templates/front/vendor-main-header.php CHANGED
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
27
  }
28
  ?>
29
 
30
- <h1><?php echo $shop_name; ?></h1>
31
  <div class="wcv_shop_description">
32
  <?php echo $shop_description; ?>
33
  </div>
27
  }
28
  ?>
29
 
30
+ <div class="wcv-shop-header-name"><?php echo $shop_name; ?></div>
31
  <div class="wcv_shop_description">
32
  <?php echo $shop_description; ?>
33
  </div>
templates/front/vendor-mini-header.php CHANGED
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
27
  }
28
  ?>
29
 
30
- <h1><?php echo $shop_name; ?></h1>
31
  <div class="wcv_shop_description">
32
  <?php echo $shop_description; ?>
33
  </div>
27
  }
28
  ?>
29
 
30
+ <div class="wcv-shop-header-name"><?php echo $shop_name; ?></div>
31
  <div class="wcv_shop_description">
32
  <?php echo $shop_description; ?>
33
  </div>