WC Vendors - Version 2.3.0

Version Description

Download this release

Release Info

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

Code changes from version 2.2.4 to 2.3.0

Files changed (33) hide show
  1. assets/js/admin/wcv-admin-commissions.js +20 -0
  2. changelog.txt +13 -0
  3. class-wc-vendors.php +26 -14
  4. classes/admin/class-admin-reports.php +5 -5
  5. classes/admin/class-admin-users.php +4 -2
  6. classes/admin/class-product-meta.php +9 -4
  7. classes/admin/class-setup-wizard.php +5 -2
  8. classes/admin/class-vendor-admin-dashboard.php +1 -1
  9. classes/admin/class-wcv-admin-import-export.php +2 -1
  10. classes/admin/class-wcv-commissions-csv-exporter.php +2 -1
  11. classes/admin/class-wcv-commissions-page.php +85 -16
  12. classes/admin/class-wcv-commissions-sum-csv-exporter.php +2 -1
  13. classes/admin/emails/class-wc-notify-vendor.php +4 -2
  14. classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php +26 -2
  15. classes/admin/settings/class-wcv-settings-advanced.php +4 -4
  16. classes/admin/settings/class-wcv-settings-capabilities.php +1 -1
  17. classes/admin/settings/class-wcv-settings-display.php +8 -8
  18. classes/class-commission.php +6 -3
  19. classes/class-cron.php +9 -5
  20. classes/class-install.php +2 -1
  21. classes/class-queries.php +2 -0
  22. classes/class-vendors.php +2 -1
  23. classes/front/class-vendor-shop.php +12 -6
  24. classes/front/dashboard/class-vendor-dashboard.php +7 -3
  25. classes/includes/class-functions.php +6 -3
  26. classes/includes/class-wcv-shortcodes.php +14 -7
  27. classes/includes/wcv-template-functions.php +2 -1
  28. languages/wc-vendors.pot +134 -117
  29. readme.txt +19 -6
  30. templates/dashboard/orders.php +8 -6
  31. templates/emails/plain/vendor-order-details.php +10 -5
  32. templates/emails/vendor-new-order.php +4 -2
  33. templates/emails/vendor-order-details.php +10 -5
assets/js/admin/wcv-admin-commissions.js CHANGED
@@ -6,5 +6,25 @@
6
  e.preventDefault();
7
  }
8
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  })( jQuery );
6
  e.preventDefault();
7
  }
8
  });
9
+ $( '.delete_commission' ).each( function( i, commission) {
10
+ $(commission).on( 'click', function(e) {
11
+ if( ! window.confirm( wcv_admin_commissions_params.confirm_delete_commission ) ){
12
+ e.preventDefault();
13
+ }
14
+ });
15
+ });
16
+
17
+ $( '#posts-filter' ).on( 'submit', function(e) {
18
+
19
+ const action = document.getElementById( 'bulk-action-selector-top' );
20
+ const action_value = action.value;
21
+
22
+ if( 'delete' === action_value ) {
23
+ if( ! window.confirm( wcv_admin_commissions_params.confirm_bulk_delete_commission ) ) {
24
+
25
+ e.preventDefault();
26
+ }
27
+ }
28
+ });
29
 
30
  })( jQuery );
changelog.txt CHANGED
@@ -1,5 +1,18 @@
1
  Changelog for WC Vendors Marketplace
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  Version 2.2.4 - 25th March 2021
4
 
5
  * Added: New column on commissions page for shipped (#743)
1
  Changelog for WC Vendors Marketplace
2
 
3
+ Verison 2.3.0 - 19th July 2021
4
+
5
+ * Added: New filter to allow custom order visibilities (#754)
6
+ * Added: Ability to delete commission rows (#765)
7
+ * Updated: UI titles to use title case (#768)
8
+ * Updated: Various strings in the codebase (#767)
9
+ * Updated: Disabled cron system if deprecated PayPal settings not active (#769)
10
+ * Updated: Action/Filter names need to be made consistent #716 (#760)
11
+ * Fixed: Orders in order template #757 (#761)
12
+ * Fixed: Vendor sales report table should get hidden as per permission set by admin. #756 (#758)
13
+ * Fixed: Wordpress REST API (Pages asset) & WC Vendors Marketplace (#770)
14
+ * Fixed: Call to a member function get_id() on boolean #745 (#755)
15
+
16
  Version 2.2.4 - 25th March 2021
17
 
18
  * Added: New column on commissions page for shipped (#743)
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.2.4
11
  * Requires at least: 5.3.0
12
- * Tested up to: 5.7
13
  * WC requires at least: 4.0
14
- * WC tested up to: 5.2
15
  *
16
  * Text Domain: wc-vendors
17
  * Domain Path: /languages/
@@ -45,7 +45,7 @@
45
  */
46
  function wc_vendors_wc_missing_notice() {
47
  /* translators: %s WooCommerce download URL link. */
48
- echo '<div class="error"><p><strong>' . sprintf( esc_html__( 'WC Vendors Marketplace requires WooCommerce to run. You can download %s here.', 'wc-vendors' ), '<a href="https://wordpress.org/plugins/woocommerce/" target="_blank">WooCommerce</a>' ) . '</strong></p></div>';
49
  }
50
 
51
  /**
@@ -107,7 +107,7 @@ if ( wcv_is_woocommerce_activated() ) {
107
  */
108
  class WC_Vendors {
109
 
110
- public $version = '2.2.4';
111
 
112
  /**
113
  * @var
@@ -129,19 +129,19 @@ if ( wcv_is_woocommerce_activated() ) {
129
 
130
  // Install & upgrade
131
  add_action( 'admin_init', array( $this, 'check_install' ) );
132
- add_action( 'init' , array( $this, 'maybe_flush_permalinks' ), 99 );
133
  add_action( 'admin_init', array( $this, 'wcv_required_ignore_notices' ) );
134
 
135
  add_action( 'wcvendors_flush_rewrite_rules', array( $this, 'flush_rewrite_rules' ) );
136
 
137
  add_action( 'plugins_loaded', array( $this, 'include_gateways' ) );
138
  add_action( 'plugins_loaded', array( $this, 'include_core' ) );
139
- add_action( 'init' , array( $this, 'include_init' ) );
140
  add_action( 'current_screen', array( $this, 'include_assets' ) );
141
 
142
  // // Legacy settings
143
- add_action( 'admin_init' , array( 'WCVendors_Install', 'check_pro_version' ) );
144
- add_action( 'plugins_loaded', array( $this , 'load_legacy_settings' ) );
145
 
146
  // Show update notices
147
  $file = basename( __FILE__ );
@@ -150,7 +150,7 @@ if ( wcv_is_woocommerce_activated() ) {
150
  add_action( $hook, array( $this, 'show_upgrade_notification' ), 10, 2 );
151
 
152
  // Add become a vendor rewrite endpoint
153
- add_action( 'init' , array( $this, 'add_rewrite_endpoint' ) );
154
  add_action( 'after_switch_theme', array( $this, 'flush_rewrite_rules' ) );
155
  }
156
 
@@ -329,13 +329,25 @@ if ( wcv_is_woocommerce_activated() ) {
329
  );
330
  break;
331
  case 'wc-vendors_page_wcv-commissions':
332
- wp_register_script( 'wcv_admin_commissions', wcv_assets_url . 'js/admin/wcv-admin-commissions.js', array( 'jquery' ), WCV_VERSION , true );
333
- $param_args = apply_filters( 'wcv_admin_commissions_params', array( 'confirm_prompt' => __( 'Are you sure you want mark all commissions paid?', 'wc-vendors' ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
334
  wp_localize_script( 'wcv_admin_commissions', 'wcv_admin_commissions_params', $param_args );
335
  wp_enqueue_script( 'wcv_admin_commissions' );
336
  break;
337
  default:
338
- # code...
339
  break;
340
  }
341
 
@@ -461,7 +473,7 @@ if ( wcv_is_woocommerce_activated() ) {
461
 
462
  $wc_vendors = new WC_Vendors();
463
 
464
- } else {
465
  if ( ! class_exists( 'WooCommerce' ) ) {
466
  add_action( 'admin_notices', 'wc_vendors_wc_missing_notice' );
467
  return;
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
+ * Version: 2.3.0
11
  * Requires at least: 5.3.0
12
+ * Tested up to: 5.8
13
  * WC requires at least: 4.0
14
+ * WC tested up to: 5.5.1
15
  *
16
  * Text Domain: wc-vendors
17
  * Domain Path: /languages/
45
  */
46
  function wc_vendors_wc_missing_notice() {
47
  /* translators: %s WooCommerce download URL link. */
48
+ echo '<div class="error"><p><strong>' . sprintf( esc_html__( 'WC Vendors Marketplace requires WooCommerce to run. You can download %s here.', 'wc-vendors' ), '<a href="https://wordpress.org/plugins/woocommerce/" target="_blank">WooCommerce</a>' ) . '</strong></p></div>';
49
  }
50
 
51
  /**
107
  */
108
  class WC_Vendors {
109
 
110
+ public $version = '2.3.0';
111
 
112
  /**
113
  * @var
129
 
130
  // Install & upgrade
131
  add_action( 'admin_init', array( $this, 'check_install' ) );
132
+ add_action( 'init', array( $this, 'maybe_flush_permalinks' ), 99 );
133
  add_action( 'admin_init', array( $this, 'wcv_required_ignore_notices' ) );
134
 
135
  add_action( 'wcvendors_flush_rewrite_rules', array( $this, 'flush_rewrite_rules' ) );
136
 
137
  add_action( 'plugins_loaded', array( $this, 'include_gateways' ) );
138
  add_action( 'plugins_loaded', array( $this, 'include_core' ) );
139
+ add_action( 'init', array( $this, 'include_init' ) );
140
  add_action( 'current_screen', array( $this, 'include_assets' ) );
141
 
142
  // // Legacy settings
143
+ add_action( 'admin_init', array( 'WCVendors_Install', 'check_pro_version' ) );
144
+ add_action( 'plugins_loaded', array( $this, 'load_legacy_settings' ) );
145
 
146
  // Show update notices
147
  $file = basename( __FILE__ );
150
  add_action( $hook, array( $this, 'show_upgrade_notification' ), 10, 2 );
151
 
152
  // Add become a vendor rewrite endpoint
153
+ add_action( 'init', array( $this, 'add_rewrite_endpoint' ) );
154
  add_action( 'after_switch_theme', array( $this, 'flush_rewrite_rules' ) );
155
  }
156
 
329
  );
330
  break;
331
  case 'wc-vendors_page_wcv-commissions':
332
+ wp_register_script( 'wcv_admin_commissions', wcv_assets_url . 'js/admin/wcv-admin-commissions.js', array( 'jquery' ), WCV_VERSION, true );
333
+ $param_args = apply_filters_deprecated(
334
+ 'wcv_admin_commissions_params',
335
+ array(
336
+ array(
337
+ 'confirm_prompt' => __( 'Are you sure you want mark all commissions paid?', 'wc-vendors' ),
338
+ 'confirm_delete_commission' => __( 'Are you sure delete this commission?', 'wc-vendors' ),
339
+ 'confirm_bulk_delete_commission' => __( 'Are you sure delete these commissions?', 'wc-vendors' ),
340
+ ),
341
+ ),
342
+ '2.3.0',
343
+ 'wcvendors_admin_commissions_params',
344
+ );
345
+ $param_args = apply_filters( 'wcvendors_admin_commissions_params', $param_args );
346
  wp_localize_script( 'wcv_admin_commissions', 'wcv_admin_commissions_params', $param_args );
347
  wp_enqueue_script( 'wcv_admin_commissions' );
348
  break;
349
  default:
350
+ // code...
351
  break;
352
  }
353
 
473
 
474
  $wc_vendors = new WC_Vendors();
475
 
476
+ } else {
477
  if ( ! class_exists( 'WooCommerce' ) ) {
478
  add_action( 'admin_notices', 'wc_vendors_wc_missing_notice' );
479
  return;
classes/admin/class-admin-reports.php CHANGED
@@ -46,13 +46,13 @@ class WCV_Admin_Reports {
46
  'function' => array( $this, 'sales' ),
47
  ),
48
  array(
49
- 'title' => sprintf( __( 'Commission by %s', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
50
  'description' => '',
51
  'hide_title' => true,
52
  'function' => array( $this, 'commission' ),
53
  ),
54
  array(
55
- 'title' => __( 'Commission by product', 'wc-vendors' ),
56
  'description' => '',
57
  'hide_title' => true,
58
  'function' => array( $this, 'commission' ),
@@ -134,7 +134,7 @@ class WCV_Admin_Reports {
134
  <div id="poststuff" class="woocommerce-reports-wrap">
135
  <div class="woocommerce-reports-sidebar">
136
  <div class="postbox">
137
- <h3><span><?php _e( 'Total paid in range', 'wc-vendors' ); ?></span></h3>
138
 
139
  <div class="inside">
140
  <p class="stat">
@@ -149,7 +149,7 @@ class WCV_Admin_Reports {
149
  </div>
150
  </div>
151
  <div class="postbox">
152
- <h3><span><?php _e( 'Total due in range', 'wc-vendors' ); ?></span></h3>
153
 
154
  <div class="inside">
155
  <p class="stat">
@@ -164,7 +164,7 @@ class WCV_Admin_Reports {
164
  </div>
165
  </div>
166
  <div class="postbox">
167
- <h3><span><?php _e( 'Total reversed in range', 'wc-vendors' ); ?></span></h3>
168
 
169
  <div class="inside">
170
  <p class="stat">
46
  'function' => array( $this, 'sales' ),
47
  ),
48
  array(
49
+ 'title' => sprintf( __( 'Commission By %s', 'wc-vendors' ), wcv_get_vendor_name( true, true ) ),
50
  'description' => '',
51
  'hide_title' => true,
52
  'function' => array( $this, 'commission' ),
53
  ),
54
  array(
55
+ 'title' => __( 'Commission By Product', 'wc-vendors' ),
56
  'description' => '',
57
  'hide_title' => true,
58
  'function' => array( $this, 'commission' ),
134
  <div id="poststuff" class="woocommerce-reports-wrap">
135
  <div class="woocommerce-reports-sidebar">
136
  <div class="postbox">
137
+ <h3><span><?php _e( 'Total Paid In Range', 'wc-vendors' ); ?></span></h3>
138
 
139
  <div class="inside">
140
  <p class="stat">
149
  </div>
150
  </div>
151
  <div class="postbox">
152
+ <h3><span><?php _e( 'Total Due In Range', 'wc-vendors' ); ?></span></h3>
153
 
154
  <div class="inside">
155
  <p class="stat">
164
  </div>
165
  </div>
166
  <div class="postbox">
167
+ <h3><span><?php _e( 'Total Reversed In Range', 'wc-vendors' ); ?></span></h3>
168
 
169
  <div class="inside">
170
  <p class="stat">
classes/admin/class-admin-users.php CHANGED
@@ -494,8 +494,10 @@ class WCV_Admin_Users {
494
  $shop_name = WCV_Vendors::get_vendor_sold_by( $user_id );
495
  $display_name = empty( $shop_name ) ? get_the_author() : $shop_name;
496
  $store_url = WCV_Vendors::get_vendor_shop_page( $user_id );
497
- $target = apply_filters( 'wcv_users_view_store_url_target', 'target="_blank"' );
498
- $class = apply_filters( 'wcv_users_view_store_url_class', 'class=""' );
 
 
499
  return sprintf(
500
  '<a href="%s"%s%s>%s</a>',
501
  $store_url,
494
  $shop_name = WCV_Vendors::get_vendor_sold_by( $user_id );
495
  $display_name = empty( $shop_name ) ? get_the_author() : $shop_name;
496
  $store_url = WCV_Vendors::get_vendor_shop_page( $user_id );
497
+ $target = apply_filters_deprecated( 'wcv_users_view_store_url_target', array( 'target="_blank"' ), '2.3.0', 'wcvendors_users_view_store_url_target' );
498
+ $target = apply_filters( 'wcvendors_users_view_store_url_target', $target );
499
+ $class = apply_filters_deprecated( 'wcv_users_view_store_url_class', array( 'class=""' ), '2.3.0', 'wcvendors_users_view_store_url_class' );
500
+ $class = apply_filters( 'wcvendors_users_view_store_url_class', $class );
501
  return sprintf(
502
  '<a href="%s"%s%s>%s</a>',
503
  $store_url,
classes/admin/class-product-meta.php CHANGED
@@ -30,7 +30,9 @@ class WCV_Product_Meta {
30
  add_action( 'wp_dropdown_users', array( $this, 'author_vendor_roles' ), 0, 1 );
31
  add_action( 'restrict_manage_posts', array( $this, 'restrict_manage_posts' ), 12 );
32
 
33
- if ( apply_filters( 'wcv_product_commission_tab', true ) ) {
 
 
34
  add_action( 'woocommerce_product_write_panel_tabs', array( $this, 'add_tab' ) );
35
  add_action( 'woocommerce_product_data_panels' , array( $this, 'add_panel' ) );
36
  add_action( 'woocommerce_process_product_meta' , array( $this, 'save_panel' ) );
@@ -213,7 +215,8 @@ class WCV_Product_Meta {
213
  *
214
  * @param array $args The arguments to be filtered.
215
  */
216
- $args = apply_filters( 'wcv_vendor_selectbox_args', $args );
 
217
 
218
  extract( $args );
219
 
@@ -232,7 +235,8 @@ class WCV_Product_Meta {
232
  *
233
  * @param array $user_args The arguments to be filtered.
234
  */
235
- $user_args = apply_filters( 'wcv_vendor_selectbox_user_args', $user_args );
 
236
  $users = get_users( $user_args );
237
 
238
  $output = "<select style='width:200px;' name='$id' id='$id' class='wcv-vendor-select $class'>\n";
@@ -250,7 +254,8 @@ class WCV_Product_Meta {
250
  $output .= '</label></p>';
251
  }
252
 
253
- return apply_filters( 'wcv_vendor_selectbox', $output, $user_args, $media );
 
254
  }
255
 
256
  /**
30
  add_action( 'wp_dropdown_users', array( $this, 'author_vendor_roles' ), 0, 1 );
31
  add_action( 'restrict_manage_posts', array( $this, 'restrict_manage_posts' ), 12 );
32
 
33
+ $product_commission_tab = apply_filters_deprecated( 'wcv_product_commission_tab', array( true ), '2.3.0', 'wcvendors_product_commission_tab' );
34
+ $product_commission_tab = apply_filters( 'wcvendors_product_commission_tab', $product_commission_tab );
35
+ if ( $product_commission_tab ) {
36
  add_action( 'woocommerce_product_write_panel_tabs', array( $this, 'add_tab' ) );
37
  add_action( 'woocommerce_product_data_panels' , array( $this, 'add_panel' ) );
38
  add_action( 'woocommerce_process_product_meta' , array( $this, 'save_panel' ) );
215
  *
216
  * @param array $args The arguments to be filtered.
217
  */
218
+ $args = apply_filters_deprecated( 'wcv_vendor_selectbox_args', array( $args ), '2.3.0', 'wcvendors_vendor_selectbox_args' );
219
+ $args = apply_filters( 'wcvendors_vendor_selectbox_args', $args );
220
 
221
  extract( $args );
222
 
235
  *
236
  * @param array $user_args The arguments to be filtered.
237
  */
238
+ $user_args = apply_filters_deprecated( 'wcv_vendor_selectbox_user_args', array( $user_args ), '2.3.0', 'wcvendors_vendor_selectbox_user_args' );
239
+ $user_args = apply_filters( 'wcvendors_vendor_selectbox_user_args', $user_args );
240
  $users = get_users( $user_args );
241
 
242
  $output = "<select style='width:200px;' name='$id' id='$id' class='wcv-vendor-select $class'>\n";
254
  $output .= '</label></p>';
255
  }
256
 
257
+ $output = apply_filters_deprecated( 'wcv_vendor_selectbox', array( $output, $user_args, $media ), '2.3.0', 'wcvendors_vendor_selectbox' );
258
+ return apply_filters( 'wcvendors_vendor_selectbox', $output, $user_args, $media );
259
  }
260
 
261
  /**
classes/admin/class-setup-wizard.php CHANGED
@@ -43,7 +43,9 @@ class WCVendors_Admin_Setup_Wizard {
43
  */
44
  public function __construct() {
45
 
46
- if ( apply_filters( 'wcv_enable_setup_wizard', true ) && current_user_can( 'manage_woocommerce' ) ) {
 
 
47
  add_action( 'admin_menu', array( $this, 'admin_menus' ) );
48
  add_action( 'admin_init', array( $this, 'setup_wizard' ) );
49
  add_action( 'admin_head', array( $this, 'hide_setup_wizard' ) );
@@ -97,7 +99,8 @@ class WCVendors_Admin_Setup_Wizard {
97
  ),
98
  );
99
 
100
- $this->steps = apply_filters( 'wcv_setup_wizard_steps', $default_steps );
 
101
  $this->step = isset( $_GET['step'] ) ? sanitize_key( $_GET['step'] ) : current( array_keys( $this->steps ) );
102
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
103
 
43
  */
44
  public function __construct() {
45
 
46
+ $enable_setup_wizard = apply_filters_deprecated( 'wcv_enable_setup_wizard', array( true ), '2.3.0', 'wcvendors_enable_setup_wizard' );
47
+ $enable_setup_wizard = apply_filters( 'wcvendors_enable_setup_wizard', $enable_setup_wizard );
48
+ if ( $enable_setup_wizard && current_user_can( 'manage_woocommerce' ) ) {
49
  add_action( 'admin_menu', array( $this, 'admin_menus' ) );
50
  add_action( 'admin_init', array( $this, 'setup_wizard' ) );
51
  add_action( 'admin_head', array( $this, 'hide_setup_wizard' ) );
99
  ),
100
  );
101
 
102
+ $this->steps = apply_filters_deprecated( 'wcv_setup_wizard_steps', array( $default_steps ), '2.3.0', 'wcvendors_setup_wizard_steps' );
103
+ $this->steps = apply_filters( 'wcvendors_setup_wizard_steps', $this->steps );
104
  $this->step = isset( $_GET['step'] ) ? sanitize_key( $_GET['step'] ) : current( array_keys( $this->steps ) );
105
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
106
 
classes/admin/class-vendor-admin-dashboard.php CHANGED
@@ -711,7 +711,7 @@ class WCV_Vendor_Order_Page extends WP_List_Table {
711
  )
712
  );
713
  }
714
-
715
  return $vendor_products;
716
  }
717
 
711
  )
712
  );
713
  }
714
+ $vendor_products = apply_filters('wcvendors_get_vendor_products', $vendor_products);
715
  return $vendor_products;
716
  }
717
 
classes/admin/class-wcv-admin-import-export.php CHANGED
@@ -70,7 +70,8 @@ class WCV_Admin_Import_Export {
70
  // column slug => column name
71
  $options['vendor_id'] = __( 'Vendor ID', 'wc-vendors');
72
 
73
- return apply_filters( 'wcv_csv_product_import_mapping_options', $options );
 
74
  }
75
 
76
  /**
70
  // column slug => column name
71
  $options['vendor_id'] = __( 'Vendor ID', 'wc-vendors');
72
 
73
+ $options = apply_filters_deprecated( 'wcv_csv_product_import_mapping_options', array( $options ), '2.3.0', 'wcvendors_csv_product_import_mapping_options' );
74
+ return apply_filters( 'wcvendors_csv_product_import_mapping_options', $options );
75
  }
76
 
77
  /**
classes/admin/class-wcv-commissions-csv-exporter.php CHANGED
@@ -195,7 +195,8 @@ class WCV_Commissions_CSV_Export extends WC_CSV_Exporter {
195
  $row[ $column_id ] = $value;
196
  }
197
 
198
- $this->row_data[] = apply_filters( 'wcv_commissions_export_row_data', $row, $commission );
 
199
  }
200
 
201
  }
195
  $row[ $column_id ] = $value;
196
  }
197
 
198
+ $row = apply_filters_deprecated( 'wcv_commissions_export_row_data', array( $row, $commission ), '2.3.0', 'wcvendors_commissions_export_row_data' );
199
+ $this->row_data[] = apply_filters( 'wcvendors_commissions_export_row_data', $row, $commission );
200
  }
201
 
202
  }
classes/admin/class-wcv-commissions-page.php CHANGED
@@ -94,10 +94,14 @@ class WCVendors_Commissions_Page extends WP_List_Table {
94
  $product_url = '<a href="' . admin_url( 'post.php?post=' . $product_id . '&action=edit' ) . '">' . get_the_title( $product_id ) . '</a> (<span title="' . get_the_title( $product_id ) . ' has sold ' . $wcv_total_sales . ' times total.">' . $wcv_total_sales . '</span>)';
95
  } else {
96
  $order = wc_get_order( $item->order_id );
97
- foreach ( $order->get_items() as $item_id => $items ) {
98
- if( $product_id == wc_get_order_item_meta( $item_id, '_product_id', true) ) {
99
- $product_url = $items->get_name();
 
 
100
  }
 
 
101
  }
102
  }
103
  return $product_url;
@@ -112,13 +116,17 @@ class WCVendors_Commissions_Page extends WP_List_Table {
112
  return $item->status;
113
  case 'time':
114
  return date_i18n( get_option( 'date_format' ), strtotime( $item->time ) );
115
- case 'shipped':
116
  $order = wc_get_order( $item->order_id );
117
- $shipped = get_post_meta( $order->get_id(), 'wc_pv_shipped', true );
118
- $has_shipped = ! empty( $shipped ) && in_array( $item->vendor_id, $shipped ) ? __( 'Yes', 'wc-vendors' ) : __( 'No', 'wc-vendors');
119
- return $has_shipped;
120
- default:
121
- $value = '';
 
 
 
 
122
  return apply_filters( 'wcvendors_commissions_column_default_' . $column_name, $value, $item, $column_name );
123
  }
124
  }
@@ -144,6 +152,42 @@ class WCVendors_Commissions_Page extends WP_List_Table {
144
  );
145
  }
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
 
148
  /**
149
  * The get_columns function.
@@ -217,10 +261,11 @@ class WCVendors_Commissions_Page extends WP_List_Table {
217
  'mark_paid' => __( 'Mark paid', 'wc-vendors' ),
218
  'mark_due' => __( 'Mark due', 'wc-vendors' ),
219
  'mark_reversed' => __( 'Mark reversed', 'wc-vendors' ),
220
- // 'delete' => __( 'Delete', 'wc-vendors'),
221
  );
222
 
223
- return apply_filters( 'wcv_edit_bulk_actions', $actions, '2.2.2', 'wcvendors_edit_bulk_actions' );
 
224
  }
225
 
226
 
@@ -366,8 +411,8 @@ class WCVendors_Commissions_Page extends WP_List_Table {
366
  public function vendor_dropdown( $post_type ) {
367
 
368
  $selectbox_args = array(
369
- 'id' => 'vendor_id',
370
- 'placeholder' => sprintf( __( 'Filer by %s', 'wc-vendors' ), wcv_get_vendor_name() ),
371
  );
372
 
373
  if ( isset( $_GET['vendor_id'] ) ) {
@@ -419,10 +464,16 @@ class WCVendors_Commissions_Page extends WP_List_Table {
419
  echo '<div class="updated"><p>' . esc_attr__( 'Commission marked reversed.', 'wc-vendors' ) . '</p></div>';
420
  }
421
  break;
422
-
 
 
 
 
 
423
  default:
424
  // code...
425
- do_action( 'wcv_edit_process_bulk_actions', $this->current_action(), $ids );
 
426
  break;
427
  }
428
 
@@ -488,6 +539,23 @@ class WCVendors_Commissions_Page extends WP_List_Table {
488
  return $result;
489
  }
490
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
491
 
492
  /**
493
  * The function to prepare_items.
@@ -605,7 +673,8 @@ class WCVendors_Commissions_Page extends WP_List_Table {
605
  'comm_status' => $com_status,
606
  'vendor_id' => $vendor_id,
607
  );
608
- $sql = apply_filters_deprecated( 'wcv_get_commissions_sql', array( $sql, $sql_args ), '2.2.2', 'wcvendors_get_commissions_sql' );
 
609
 
610
  $this->items = $wpdb->get_results( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
611
 
94
  $product_url = '<a href="' . admin_url( 'post.php?post=' . $product_id . '&action=edit' ) . '">' . get_the_title( $product_id ) . '</a> (<span title="' . get_the_title( $product_id ) . ' has sold ' . $wcv_total_sales . ' times total.">' . $wcv_total_sales . '</span>)';
95
  } else {
96
  $order = wc_get_order( $item->order_id );
97
+ if ( $order ) {
98
+ foreach ( $order->get_items() as $item_id => $items ) {
99
+ if ( $product_id == wc_get_order_item_meta( $item_id, '_product_id', true ) ) {
100
+ $product_url = $items->get_name();
101
+ }
102
  }
103
+ } else {
104
+ $product_url = '-';
105
  }
106
  }
107
  return $product_url;
116
  return $item->status;
117
  case 'time':
118
  return date_i18n( get_option( 'date_format' ), strtotime( $item->time ) );
119
+ case 'shipped':
120
  $order = wc_get_order( $item->order_id );
121
+ if ( $order ) {
122
+ $shipped = get_post_meta( $order->get_id(), 'wc_pv_shipped', true );
123
+ $has_shipped = ! empty( $shipped ) && in_array( $item->vendor_id, $shipped ) ? __( 'Yes', 'wc-vendors' ) : __( 'No', 'wc-vendors' );
124
+ return $has_shipped;
125
+ } else {
126
+ return '-';
127
+ }
128
+ default:
129
+ $value = '';
130
  return apply_filters( 'wcvendors_commissions_column_default_' . $column_name, $value, $item, $column_name );
131
  }
132
  }
152
  );
153
  }
154
 
155
+ /**
156
+ * Add delete action to commission row .
157
+ *
158
+ * @param Object $item .
159
+ * @return String
160
+ */
161
+ public function column_order_id( $item ) {
162
+
163
+ $order = wc_get_order( $item->order_id );
164
+ $order_edit_link = $order ? $order->get_edit_order_url() : $item->order_id;
165
+
166
+ $action_nonce = wp_create_nonce( 'delete_commission_nonce' );
167
+ $page = isset( $_GET['page'] ) ? filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING ) : '';
168
+ $paged = isset( $_GET['paged'] ) ? filter_input( INPUT_GET, 'paged', FILTER_SANITIZE_STRING ) : 1;
169
+ $actions = array(
170
+ 'delete' => sprintf(
171
+ '<a class="delete_commission" href="?page=%s&action=%s&id[]=%s&_wpnonce=%s&paged=%s">Delete</a>',
172
+ esc_attr( $page ),
173
+ 'delete',
174
+ absint( $item->id ),
175
+ $action_nonce,
176
+ $paged
177
+ ),
178
+ );
179
+ if ( $order ) {
180
+ return sprintf(
181
+ '<a href="%s">%s</a>%s',
182
+ esc_attr( $order_edit_link ),
183
+ $item->order_id,
184
+ $this->row_actions( $actions )
185
+ );
186
+ } else {
187
+ return $item->order_id . $this->row_actions( $actions );
188
+ }
189
+
190
+ }
191
 
192
  /**
193
  * The get_columns function.
261
  'mark_paid' => __( 'Mark paid', 'wc-vendors' ),
262
  'mark_due' => __( 'Mark due', 'wc-vendors' ),
263
  'mark_reversed' => __( 'Mark reversed', 'wc-vendors' ),
264
+ 'delete' => __( 'Delete', 'wc-vendors' ),
265
  );
266
 
267
+ $actions = apply_filters_deprecated( 'wcv_edit_bulk_actions', array( $actions, '2.2.2', 'wcvendors_edit_bulk_actions' ), '2.3.0', 'wcvendors_edit_bulk_actions' );
268
+ return apply_filters( 'wcvendors_edit_bulk_actions', $actions, '2.2.2', 'wcvendors_edit_bulk_actions' );
269
  }
270
 
271
 
411
  public function vendor_dropdown( $post_type ) {
412
 
413
  $selectbox_args = array(
414
+ 'id' => 'vendor_id', /* translators: Filter by terms*/
415
+ 'placeholder' => sprintf( __( 'Filter by %s', 'wc-vendors' ), wcv_get_vendor_name() ),
416
  );
417
 
418
  if ( isset( $_GET['vendor_id'] ) ) {
464
  echo '<div class="updated"><p>' . esc_attr__( 'Commission marked reversed.', 'wc-vendors' ) . '</p></div>';
465
  }
466
  break;
467
+ case 'delete':
468
+ $result = $this->delete_commissions( $ids );
469
+ if ( $result ) {
470
+ echo '<div class="updated"><p>' . esc_attr__( 'Commission(s) deleted.', 'wc-vendors' ) . '</p></div>';
471
+ }
472
+ break;
473
  default:
474
  // code...
475
+ do_action_deprecated( 'wcv_edit_process_bulk_actions', array( $this->current_action(), $ids ), '2.3.0', 'wcvendors_edit_process_bulk_actions' );
476
+ do_action( 'wcvendors_edit_process_bulk_actions', $this->current_action(), $ids );
477
  break;
478
  }
479
 
539
  return $result;
540
  }
541
 
542
+ /**
543
+ * Handle delete commission(s).
544
+ *
545
+ * @param Array $ids .
546
+ * @return Bool
547
+ */
548
+ public function delete_commissions( $ids = array() ) {
549
+
550
+ global $wpdb;
551
+ $table_name = $wpdb->prefix . 'pv_commission';
552
+
553
+ $query = "DELETE FROM `{$table_name}` WHERE id IN($ids)";
554
+
555
+ $result = $wpdb->query( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
556
+
557
+ return $result;
558
+ }
559
 
560
  /**
561
  * The function to prepare_items.
673
  'comm_status' => $com_status,
674
  'vendor_id' => $vendor_id,
675
  );
676
+ $sql = apply_filters_deprecated( 'wcv_get_commissions_sql', array( $sql, $sql_args ), '2.2.2', 'wcvendors_get_commissions_sql' );
677
+ $sql = apply_filters( 'wcvendors_get_commissions_sql', $sql, $sql_args );
678
 
679
  $this->items = $wpdb->get_results( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
680
 
classes/admin/class-wcv-commissions-sum-csv-exporter.php CHANGED
@@ -115,7 +115,8 @@ class WCV_Commissions_Sum_CSV_Export extends WC_CSV_Exporter {
115
  $row[ $column_id ] = $value;
116
  }
117
 
118
- $this->row_data[] = apply_filters( 'wcv_sum_commissions_export_row_data', $row, $vendor_id, $total, $status );
 
119
  }
120
  }
121
 
115
  $row[ $column_id ] = $value;
116
  }
117
 
118
+ $row = apply_filters_deprecated( 'wcv_sum_commissions_export_row_data', array( $row, $vendor_id, $total, $status ), '2.3.0', 'wcvendors_sum_commissions_export_row_data' );
119
+ $this->row_data[] = apply_filters( 'wcvendors_sum_commissions_export_row_data', $row, $vendor_id, $total, $status );
120
  }
121
  }
122
 
classes/admin/emails/class-wc-notify-vendor.php CHANGED
@@ -121,7 +121,8 @@ class WC_Email_Notify_Vendor extends WC_Email {
121
  */
122
  function check_order_totals( $total_rows, $order ) {
123
 
124
- $commission_label = apply_filters( 'wcv_notify_vendor_commission_label', __( 'Commission Subtotal:', 'wc-vendors' ) );
 
125
  $return['cart_subtotal'] = $total_rows['cart_subtotal'];
126
  $return['cart_subtotal']['label'] = $commission_label;
127
 
@@ -130,7 +131,8 @@ class WC_Email_Notify_Vendor extends WC_Email {
130
  'label' => '',
131
  'value' => '',
132
  );
133
- $return['tax_subtotal']['label'] = apply_filters( 'wcv_notify_vendor_tax_label', __( 'Tax Subtotal:', 'wc-vendors' ) );
 
134
  }
135
 
136
  $dues = WCV_Vendors::get_vendor_dues_from_order( $order );
121
  */
122
  function check_order_totals( $total_rows, $order ) {
123
 
124
+ $commission_label = apply_filters_deprecated( 'wcv_notify_vendor_commission_label', array( __( 'Commission Subtotal:', 'wc-vendors' ) ), '2.3.0', 'wcvendors_notify_vendor_commission_label');
125
+ $commission_label = apply_filters( 'wcvendors_notify_vendor_commission_label', $commission_label );
126
  $return['cart_subtotal'] = $total_rows['cart_subtotal'];
127
  $return['cart_subtotal']['label'] = $commission_label;
128
 
131
  'label' => '',
132
  'value' => '',
133
  );
134
+ $return['tax_subtotal']['label'] = apply_filters_deprecated( 'wcv_notify_vendor_tax_label', array( __( 'Tax Subtotal:', 'wc-vendors' ) ), '2.3.0', 'wcvendors_notify_vendor_tax_label' );
135
+ $return['tax_subtotal']['label'] = apply_filters( 'wcvendors_notify_vendor_tax_label', $return['tax_subtotal']['label'] );
136
  }
137
 
138
  $dues = WCV_Vendors::get_vendor_dues_from_order( $order );
classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php CHANGED
@@ -118,7 +118,19 @@ if ( ! class_exists( 'WCVendors_Vendor_Notify_Cancelled_Order' ) ) :
118
  */
119
  public function get_content_html() {
120
 
121
- return apply_filters( 'wcv_vendor_notify_order_get_content_html', wc_get_template_html( $this->template_html, array(
 
 
 
 
 
 
 
 
 
 
 
 
122
  'order' => $this->object,
123
  'vendor_id' => $this->vendor_id,
124
  'vendor_items' => $this->order_items,
@@ -140,7 +152,19 @@ if ( ! class_exists( 'WCVendors_Vendor_Notify_Cancelled_Order' ) ) :
140
  */
141
  public function get_content_plain() {
142
 
143
- return apply_filters( 'wcv_vendor_notify_order_get_content_plain', wc_get_template_html( $this->template_plain, array(
 
 
 
 
 
 
 
 
 
 
 
 
144
  'order' => $this->object,
145
  'vendor_id' => $this->vendor_id,
146
  'vendor_items' => $this->order_items,
118
  */
119
  public function get_content_html() {
120
 
121
+ $this->template_html = apply_filters_deprecated( 'wcv_vendor_notify_order_get_content_html', array( wc_get_template_html( $this->template_html, array(
122
+ 'order' => $this->object,
123
+ 'vendor_id' => $this->vendor_id,
124
+ 'vendor_items' => $this->order_items,
125
+ 'email_heading' => $this->get_heading(),
126
+ 'totals_display' => $this->totals_display,
127
+ 'sent_to_admin' => false,
128
+ 'sent_to_vendor' => true,
129
+ 'plain_text' => false,
130
+ 'email' => $this,
131
+ ), 'woocommerce', $this->template_base ), $this ), '2.3.0', 'wcvendors_vendor_notify_order_get_content_html' );
132
+
133
+ return apply_filters( 'wcvendors_vendor_notify_order_get_content_html', wc_get_template_html( $this->template_html, array(
134
  'order' => $this->object,
135
  'vendor_id' => $this->vendor_id,
136
  'vendor_items' => $this->order_items,
152
  */
153
  public function get_content_plain() {
154
 
155
+ $this->template_plain = apply_filters_deprecated( 'wcv_vendor_notify_order_get_content_plain', array( wc_get_template_html( $this->template_plain, array(
156
+ 'order' => $this->object,
157
+ 'vendor_id' => $this->vendor_id,
158
+ 'vendor_items' => $this->order_items,
159
+ 'email_heading' => $this->get_heading(),
160
+ 'sent_to_admin' => false,
161
+ 'sent_to_vendor' => true,
162
+ 'totals_display' => $this->totals_display,
163
+ 'plain_text' => true,
164
+ 'email' => $this,
165
+ ), 'woocommerce', $this->template_base ), $this ), '2.3.0', 'wcvendors_vendor_notify_order_get_content_plain' );
166
+
167
+ return apply_filters( 'wcvendors_vendor_notify_order_get_content_plain', wc_get_template_html( $this->template_plain, array(
168
  'order' => $this->object,
169
  'vendor_id' => $this->vendor_id,
170
  'vendor_items' => $this->order_items,
classes/admin/settings/class-wcv-settings-advanced.php CHANGED
@@ -69,21 +69,21 @@ if ( ! class_exists( 'WCVendors_Settings_Advanced', false ) ) :
69
  'id' => 'advanced_options',
70
  ),
71
  array(
72
- 'title' => __( 'Delete all data', 'wc-vendors' ),
73
  'desc' => __( 'Delete all WC Vendors data when deactivating the plugin.', 'wc-vendors' ),
74
  'id' => 'wcvendors_uninstall_delete_all_data',
75
  'default' => 'no',
76
  'type' => 'checkbox',
77
  ),
78
  array(
79
- 'title' => __( 'Delete custom table', 'wc-vendors' ),
80
  'desc' => __( 'Delete all data included in the custom tables. This will delete all commissions', 'wc-vendors' ),
81
  'id' => 'wcvendors_uninstall_delete_custom_table',
82
  'default' => 'no',
83
  'type' => 'checkbox',
84
  ),
85
  array(
86
- 'title' => __( 'Delete settings options', 'wc-vendors' ),
87
  'desc' => __( 'Delete all plugin options when uninstalling the plugin.', 'wc-vendors' ),
88
  'id' => 'wcvendors_uninstall_delete_settings_options',
89
  'default' => 'no',
@@ -97,7 +97,7 @@ if ( ! class_exists( 'WCVendors_Settings_Advanced', false ) ) :
97
  'type' => 'checkbox',
98
  ),
99
  array(
100
- 'title' => __( 'Remove custom Roles', 'wc-vendors' ),
101
  'desc' => __( 'Remove custom roles registered by WC Vendors.', 'wc-vendors' ),
102
  'id' => 'wcvendors_uninstall_delete_vendor_roles',
103
  'default' => 'no',
69
  'id' => 'advanced_options',
70
  ),
71
  array(
72
+ 'title' => __( 'Delete All Data', 'wc-vendors' ),
73
  'desc' => __( 'Delete all WC Vendors data when deactivating the plugin.', 'wc-vendors' ),
74
  'id' => 'wcvendors_uninstall_delete_all_data',
75
  'default' => 'no',
76
  'type' => 'checkbox',
77
  ),
78
  array(
79
+ 'title' => __( 'Delete Custom Table', 'wc-vendors' ),
80
  'desc' => __( 'Delete all data included in the custom tables. This will delete all commissions', 'wc-vendors' ),
81
  'id' => 'wcvendors_uninstall_delete_custom_table',
82
  'default' => 'no',
83
  'type' => 'checkbox',
84
  ),
85
  array(
86
+ 'title' => __( 'Delete Settings Options', 'wc-vendors' ),
87
  'desc' => __( 'Delete all plugin options when uninstalling the plugin.', 'wc-vendors' ),
88
  'id' => 'wcvendors_uninstall_delete_settings_options',
89
  'default' => 'no',
97
  'type' => 'checkbox',
98
  ),
99
  array(
100
+ 'title' => __( 'Remove Custom Roles', 'wc-vendors' ),
101
  'desc' => __( 'Remove custom roles registered by WC Vendors.', 'wc-vendors' ),
102
  'id' => 'wcvendors_uninstall_delete_vendor_roles',
103
  'default' => 'no',
classes/admin/settings/class-wcv-settings-capabilities.php CHANGED
@@ -173,7 +173,7 @@ if ( ! class_exists( 'WCVendors_Settings_Capabilities', false ) ) :
173
  ),
174
 
175
  array(
176
- 'title' => __( 'Add Order notes', 'wc-vendors' ),
177
  'desc' => sprintf( __( 'Allow %s to add order notes.', 'wc-vendors' ), wcv_get_vendor_name( false, false ) ),
178
  'id' => 'wcvendors_capability_order_update_notes',
179
  'default' => 'yes',
173
  ),
174
 
175
  array(
176
+ 'title' => __( 'Add Order Notes', 'wc-vendors' ),
177
  'desc' => sprintf( __( 'Allow %s to add order notes.', 'wc-vendors' ), wcv_get_vendor_name( false, false ) ),
178
  'id' => 'wcvendors_capability_order_update_notes',
179
  'default' => 'yes',
classes/admin/settings/class-wcv-settings-display.php CHANGED
@@ -70,8 +70,8 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
70
  ),
71
  array(
72
  'title' => __( 'Product Page Stylesheet', 'wc-vendors' ),
73
- 'desc' => sprintf( __( 'You can add CSS in this textarea, which will be loaded on the product add/edit page for %s', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
74
- 'desc_tip' => sprintf( __( 'This enables the sold by labels used to show which %s shop the product belongs to', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
75
  'id' => 'wcvendors_display_advanced_stylesheet',
76
  'css' => 'width: 700px;min-height:100px',
77
  'default' => '',
@@ -122,7 +122,7 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
122
  ),
123
 
124
  array(
125
- 'title' => __( 'Sold by', 'wc-vendors' ),
126
  'desc' => __( 'Enable sold by labels', 'wc-vendors' ),
127
  'desc_tip' => sprintf( __( 'This enables the sold by labels used to show which %s shop the product belongs to', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
128
  'id' => 'wcvendors_display_label_sold_by_enable',
@@ -131,7 +131,7 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
131
  ),
132
 
133
  array(
134
- 'title' => __( 'Sold by separator', 'wc-vendors' ),
135
  'desc_tip' => __( 'The sold by separator', 'wc-vendors' ),
136
  'id' => 'wcvendors_label_sold_by_separator',
137
  'type' => 'text',
@@ -139,7 +139,7 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
139
  ),
140
 
141
  array(
142
- 'title' => __( 'Sold by label', 'wc-vendors' ),
143
  'desc_tip' => __( 'The sold by label', 'wc-vendors' ),
144
  'id' => 'wcvendors_label_sold_by',
145
  'type' => 'text',
@@ -147,7 +147,7 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
147
  ),
148
 
149
  array(
150
- 'title' => sprintf( __( 'Become a %s', 'wc-vendors' ), wcv_get_vendor_name() ),
151
  'desc' => sprintf( __( 'Show the "Become a %s" link on WooCommerce my-account page', 'wc-vendors' ), wcv_get_vendor_name() ),
152
  'id' => 'wcvendors_become_a_vendor_my_account_link_visibility',
153
  'default' => 'yes',
@@ -155,7 +155,7 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
155
  ),
156
 
157
  array(
158
- 'title' => sprintf( __( 'Become a %s label', 'wc-vendors' ), wcv_get_vendor_name() ),
159
  'desc_tip' => sprintf( __( 'The become a %s label', 'wc-vendors' ), wcv_get_vendor_name() ),
160
  'id' => 'wcvendors_label_become_a_vendor',
161
  'type' => 'text',
@@ -171,7 +171,7 @@ if ( ! class_exists( 'WCVendors_Settings_Display', false ) ) :
171
  ),
172
 
173
  array(
174
- 'title' => sprintf( __( '%s store info label', 'wc-vendors' ), wcv_get_vendor_name() ),
175
  'desc' => sprintf( __( 'The %s store info label', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
176
  'id' => 'wcvendors_display_label_store_info',
177
  'type' => 'text',
70
  ),
71
  array(
72
  'title' => __( 'Product Page Stylesheet', 'wc-vendors' ),
73
+ 'desc' => sprintf( __( 'You can add CSS in this textarea, which will be loaded on the WooCommerce product edit page for %s in the WordPress admin.', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
74
+ 'desc_tip' => sprintf( __( 'This will output custom CSS on the product edit page ', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
75
  'id' => 'wcvendors_display_advanced_stylesheet',
76
  'css' => 'width: 700px;min-height:100px',
77
  'default' => '',
122
  ),
123
 
124
  array(
125
+ 'title' => __( 'Sold By', 'wc-vendors' ),
126
  'desc' => __( 'Enable sold by labels', 'wc-vendors' ),
127
  'desc_tip' => sprintf( __( 'This enables the sold by labels used to show which %s shop the product belongs to', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
128
  'id' => 'wcvendors_display_label_sold_by_enable',
131
  ),
132
 
133
  array(
134
+ 'title' => __( 'Sold By Separator', 'wc-vendors' ),
135
  'desc_tip' => __( 'The sold by separator', 'wc-vendors' ),
136
  'id' => 'wcvendors_label_sold_by_separator',
137
  'type' => 'text',
139
  ),
140
 
141
  array(
142
+ 'title' => __( 'Sold By Label', 'wc-vendors' ),
143
  'desc_tip' => __( 'The sold by label', 'wc-vendors' ),
144
  'id' => 'wcvendors_label_sold_by',
145
  'type' => 'text',
147
  ),
148
 
149
  array(
150
+ 'title' => sprintf( __( 'Become A %s', 'wc-vendors' ), wcv_get_vendor_name() ),
151
  'desc' => sprintf( __( 'Show the "Become a %s" link on WooCommerce my-account page', 'wc-vendors' ), wcv_get_vendor_name() ),
152
  'id' => 'wcvendors_become_a_vendor_my_account_link_visibility',
153
  'default' => 'yes',
155
  ),
156
 
157
  array(
158
+ 'title' => sprintf( __( 'Become A %s Label', 'wc-vendors' ), wcv_get_vendor_name() ),
159
  'desc_tip' => sprintf( __( 'The become a %s label', 'wc-vendors' ), wcv_get_vendor_name() ),
160
  'id' => 'wcvendors_label_become_a_vendor',
161
  'type' => 'text',
171
  ),
172
 
173
  array(
174
+ 'title' => sprintf( __( '%s Store Info Label', 'wc-vendors' ), wcv_get_vendor_name() ),
175
  'desc' => sprintf( __( 'The %s store info label', 'wc-vendors' ), wcv_get_vendor_name( true, false ) ),
176
  'id' => 'wcvendors_display_label_store_info',
177
  'type' => 'text',
classes/class-commission.php CHANGED
@@ -328,7 +328,8 @@ class WCV_Commission {
328
  $commission = $default_commission;
329
  }
330
 
331
- return apply_filters( 'wcv_commission_rate_percent', $commission, $product_id );
 
332
  }
333
 
334
 
@@ -350,7 +351,8 @@ class WCV_Commission {
350
  $commission = $product_price * ( $commission_rate / 100 );
351
  $commission = round( $commission, 2 );
352
 
353
- return apply_filters( 'wcv_commission_rate', $commission, $product_id, $product_price, $order, $qty, $item );
 
354
  }
355
 
356
 
@@ -399,7 +401,8 @@ class WCV_Commission {
399
  }
400
  }
401
 
402
- do_action( 'wcv_commissions_inserted', $orders );
 
403
  }
404
 
405
 
328
  $commission = $default_commission;
329
  }
330
 
331
+ $commission = apply_filters_deprecated( 'wcv_commission_rate_percent', array( $commission, $product_id ), '2.3.0', 'wcvendors_commission_rate_percent' );
332
+ return apply_filters( 'wcvendors_commission_rate_percent', $commission, $product_id );
333
  }
334
 
335
 
351
  $commission = $product_price * ( $commission_rate / 100 );
352
  $commission = round( $commission, 2 );
353
 
354
+ $commission = apply_filters_deprecated( 'wcv_commission_rate', array( $commission, $product_id, $product_price, $order, $qty, $item ), '2.3.0', 'wcvendors_commission_rate' );
355
+ return apply_filters( 'wcvendors_commission_rate', $commission, $product_id, $product_price, $order, $qty, $item );
356
  }
357
 
358
 
401
  }
402
  }
403
 
404
+ do_action_deprecated( 'wcv_commissions_inserted', array( $orders ), '2.3.0', 'wcvendors_commissions_inserted' );
405
+ do_action( 'wcvendors_commissions_inserted', $orders );
406
  }
407
 
408
 
classes/class-cron.php CHANGED
@@ -3,6 +3,8 @@
3
  * Cron class
4
  *
5
  * @package WC_Vendors
 
 
6
  */
7
 
8
 
@@ -14,11 +16,13 @@ class WCV_Cron {
14
  */
15
  function __construct() {
16
 
17
- add_filter( 'cron_schedules' , array( 'WCV_Cron', 'custom_cron_intervals' ) );
18
- add_action( 'wcvendors_settings_save_payments', array( 'WCV_Cron', 'check_schedule' ) );
19
-
20
- add_filter( 'wcvendors_admin_settings_sanitize_option_wcvendors_payments_paypal_schedule', array( 'WCV_Cron', 'check_schedule_now' ) );
21
- // add_filter( WC_Vendors::$id . '_options_on_update', array( 'WCV_Cron', 'check_schedule_now' ) );
 
 
22
  }
23
 
24
 
3
  * Cron class
4
  *
5
  * @package WC_Vendors
6
+ * @deprecated 1.9
7
+ *
8
  */
9
 
10
 
16
  */
17
  function __construct() {
18
 
19
+ $settings = get_option( 'woocommerce_paypalap_settings', false );
20
+ if ( $settings && array_key_exists('username_live', $settings ) && $settings[ 'username_live' ] !== '' ) {
21
+ add_filter( 'cron_schedules' , array( 'WCV_Cron', 'custom_cron_intervals' ) );
22
+ add_action( 'wcvendors_settings_save_payments', array( 'WCV_Cron', 'check_schedule' ) );
23
+ add_filter( 'wcvendors_admin_settings_sanitize_option_wcvendors_payments_paypal_schedule', array( 'WCV_Cron', 'check_schedule_now' ) );
24
+ }
25
+
26
  }
27
 
28
 
classes/class-install.php CHANGED
@@ -614,7 +614,8 @@ class WCVendors_Install {
614
  ),
615
  );
616
 
617
- return apply_filters( 'wcv_get_vendor_caps', $capabilities );
 
618
 
619
  }
620
  }
614
  ),
615
  );
616
 
617
+ $capabilities = apply_filters_deprecated( 'wcv_get_vendor_caps', array( $capabilities ), '2.3.0', 'wcvendors_get_vendor_caps' );
618
+ return apply_filters( 'wcvendors_get_vendor_caps', $capabilities );
619
 
620
  }
621
  }
classes/class-queries.php CHANGED
@@ -70,6 +70,8 @@ class WCV_Queries {
70
  GROUP BY product_id'
71
  );
72
 
 
 
73
  foreach ( $results as $value ) {
74
  $ids[] = $value->product_id;
75
  }
70
  GROUP BY product_id'
71
  );
72
 
73
+ $results = apply_filters('wcvendors_get_vendor_products', $results);
74
+
75
  foreach ( $results as $value ) {
76
  $ids[] = $value->product_id;
77
  }
classes/class-vendors.php CHANGED
@@ -237,7 +237,8 @@ class WCV_Vendors {
237
 
238
  // Reset the array keys
239
  // $receivers = array_values( $receiver );
240
- return apply_filters( 'wcv_vendor_dues', $receiver, $order, $group );
 
241
  }
242
 
243
 
237
 
238
  // Reset the array keys
239
  // $receivers = array_values( $receiver );
240
+ $receiver = apply_filters_deprecated( 'wcv_vendor_dues', array( $receiver, $order, $group ), '2.3.0', 'wcvendors_vendor_dues' );
241
+ return apply_filters( 'wcvendors_vendor_dues', $receiver, $order, $group );
242
  }
243
 
244
 
classes/front/class-vendor-shop.php CHANGED
@@ -128,9 +128,11 @@ class WCV_Vendor_Shop {
128
 
129
  $seller_info = do_shortcode( $seller_info );
130
  self::$seller_info = '<div class="pv_seller_info">';
131
- self::$seller_info .= apply_filters( 'wcv_before_seller_info_tab', '' );
 
132
  self::$seller_info .= ( $global_html || $has_html ) ? wpautop( wptexturize( $seller_info ) ) : sanitize_text_field( $seller_info );
133
- self::$seller_info .= apply_filters( 'wcv_after_seller_info_tab', '' );
 
134
  self::$seller_info .= '</div>';
135
 
136
  $tabs['seller_info'] = array(
@@ -264,7 +266,8 @@ class WCV_Vendor_Shop {
264
  $vendor_email = $vendor->user_email;
265
  $vendor_login = $vendor->user_login;
266
 
267
- do_action( 'wcv_before_main_header', $vendor_id );
 
268
 
269
  wc_get_template(
270
  'vendor-main-header.php', array(
@@ -278,7 +281,8 @@ class WCV_Vendor_Shop {
278
  ), 'wc-vendors/front/', wcv_plugin_dir . 'templates/front/'
279
  );
280
 
281
- do_action( 'wcv_after_main_header', $vendor_id );
 
282
 
283
  }
284
  }
@@ -307,7 +311,8 @@ class WCV_Vendor_Shop {
307
  $vendor_email = $vendor->user_email;
308
  $vendor_login = $vendor->user_login;
309
 
310
- do_action( 'wcv_before_mini_header', $vendor->ID );
 
311
 
312
  wc_get_template(
313
  'vendor-mini-header.php', array(
@@ -323,7 +328,8 @@ class WCV_Vendor_Shop {
323
  ), 'wc-vendors/front/', wcv_plugin_dir . 'templates/front/'
324
  );
325
 
326
- do_action( 'wcv_after_mini_header', $vendor->ID );
 
327
 
328
  }
329
  }
128
 
129
  $seller_info = do_shortcode( $seller_info );
130
  self::$seller_info = '<div class="pv_seller_info">';
131
+ self::$seller_info .= apply_filters_deprecated( 'wcv_before_seller_info_tab', array( '' ), '2.3.0', 'wcvendors_before_seller_info_tab' );
132
+ self::$seller_info .= apply_filters( 'wcvendors_before_seller_info_tab', self::$seller_info );
133
  self::$seller_info .= ( $global_html || $has_html ) ? wpautop( wptexturize( $seller_info ) ) : sanitize_text_field( $seller_info );
134
+ self::$seller_info .= apply_filters_deprecated( 'wcv_after_seller_info_tab', array( '' ), '2.3.0', 'wcvendors_after_seller_info_tab' );
135
+ self::$seller_info .= apply_filters( 'wcvendors_after_seller_info_tab', self::$seller_info );
136
  self::$seller_info .= '</div>';
137
 
138
  $tabs['seller_info'] = array(
266
  $vendor_email = $vendor->user_email;
267
  $vendor_login = $vendor->user_login;
268
 
269
+ do_action_deprecated( 'wcv_before_main_header', array( $vendor_id ), '2.3.0', 'wcvendors_before_main_header' );
270
+ do_action( 'wcvendors_before_main_header', $vendor_id );
271
 
272
  wc_get_template(
273
  'vendor-main-header.php', array(
281
  ), 'wc-vendors/front/', wcv_plugin_dir . 'templates/front/'
282
  );
283
 
284
+ do_action_deprecated( 'wcv_after_main_header', array( $vendor_id ), '2.3.0', 'wcvendors_after_main_header' );
285
+ do_action( 'wcvendors_after_main_header', $vendor_id );
286
 
287
  }
288
  }
311
  $vendor_email = $vendor->user_email;
312
  $vendor_login = $vendor->user_login;
313
 
314
+ do_action_deprecated( 'wcv_before_mini_header', array( $vendor->ID ), '2.3.0', 'wcvendors_before_mini_header' );
315
+ do_action( 'wcvendors_before_mini_header', $vendor->ID );
316
 
317
  wc_get_template(
318
  'vendor-mini-header.php', array(
328
  ), 'wc-vendors/front/', wcv_plugin_dir . 'templates/front/'
329
  );
330
 
331
+ do_action_deprecated( 'wcv_after_mini_header', array( $vendor->ID ), '2.3.0', 'wcvendors_after_mini_header' );
332
+ do_action( 'wcvendors_after_mini_header', $vendor->ID );
333
 
334
  }
335
  }
classes/front/dashboard/class-vendor-dashboard.php CHANGED
@@ -236,6 +236,9 @@ class WCV_Vendor_Dashboard {
236
  ob_start();
237
 
238
  global $start_date, $end_date;
 
 
 
239
 
240
  // Need to check if the session exists and if it doesn't create it
241
  if ( null === WC()->session ) {
@@ -307,9 +310,9 @@ class WCV_Vendor_Dashboard {
307
  wcv_plugin_dir . 'templates/dashboard/'
308
  );
309
 
310
- if ( $can_view_sales = get_option( 'wcvendors_capability_frontend_reports' ) ) {
311
 
312
- $can_view_address = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_shipping' ) );
313
 
314
  wc_get_template(
315
  'reports.php',
@@ -382,7 +385,8 @@ class WCV_Vendor_Dashboard {
382
  );
383
  }
384
 
385
- return apply_filters( 'wcv_dashboard_nav_items', $items );
 
386
  }
387
 
388
  /**
236
  ob_start();
237
 
238
  global $start_date, $end_date;
239
+
240
+ // WC 3.6+ - Cart and other frontend functions are not included for REST requests.
241
+ include_once WC()->plugin_path() . '/includes/wc-notice-functions.php';
242
 
243
  // Need to check if the session exists and if it doesn't create it
244
  if ( null === WC()->session ) {
310
  wcv_plugin_dir . 'templates/dashboard/'
311
  );
312
 
313
+ if ( wc_string_to_bool( get_option( 'wcvendors_capability_frontend_reports', 'yes' ) ) ) {
314
 
315
+ $can_view_address = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_shipping', 'yes' ) );
316
 
317
  wc_get_template(
318
  'reports.php',
385
  );
386
  }
387
 
388
+ $items = apply_filters_deprecated( 'wcv_dashboard_nav_items', array( $items ), '2.3.0', 'wcvendors_dashboard_nav_items' );
389
+ return apply_filters( 'wcvendors_dashboard_nav_items', $items );
390
  }
391
 
392
  /**
classes/includes/class-functions.php CHANGED
@@ -42,7 +42,8 @@ function wcv_get_vendor_name( $singluar = true, $upper_case = true ) {
42
  $vendor_label = $singluar ? __( $vendor_singular, 'wc-vendors' ) : __( $vendor_plural, 'wc-vendors' );
43
  $vendor_label = $upper_case ? ucfirst( $vendor_label ) : lcfirst( $vendor_label );
44
 
45
- return apply_filters( 'wcv_vendor_display_name', $vendor_label, $vendor_singular, $vendor_plural, $singluar, $upper_case );
 
46
 
47
  }
48
 
@@ -86,7 +87,8 @@ function wcv_get_dashboard_nav_item_classes( $item_id ) {
86
 
87
  $classes = array( 'button' );
88
 
89
- $classes = apply_filters( 'wcv_dashboard_nav_item_classes', $classes, $item_id );
 
90
 
91
  return implode( ' ', array_map( 'sanitize_html_class', $classes ) );
92
  }
@@ -107,7 +109,8 @@ if ( !function_exists( 'wcv_vendor_drop_down_options' ) ){
107
  $select = selected( $user->ID, $vendor_id, false );
108
  $output .= "<option value='$user->ID' $select>$display_name</option>";
109
  }
110
- return apply_filters('wcv_vendor_drop_down_options', $output );
 
111
  }
112
  }
113
 
42
  $vendor_label = $singluar ? __( $vendor_singular, 'wc-vendors' ) : __( $vendor_plural, 'wc-vendors' );
43
  $vendor_label = $upper_case ? ucfirst( $vendor_label ) : lcfirst( $vendor_label );
44
 
45
+ $vendor_label = apply_filters_deprecated( 'wcv_vendor_display_name', array( $vendor_label, $vendor_singular, $vendor_plural, $singluar, $upper_case), '2.3.0', 'wcvendors_vendor_display_name' );
46
+ return apply_filters( 'wcvendors_vendor_display_name', $vendor_label, $vendor_singular, $vendor_plural, $singluar, $upper_case );
47
 
48
  }
49
 
87
 
88
  $classes = array( 'button' );
89
 
90
+ $classes = apply_filters_deprecated( 'wcv_dashboard_nav_item_classes', array( $classes, $item_id ), '2.3.0', 'wcvendors_dashboard_nav_item_classes' );
91
+ $classes = apply_filters( 'wcvendors_dashboard_nav_item_classes', $classes, $item_id );
92
 
93
  return implode( ' ', array_map( 'sanitize_html_class', $classes ) );
94
  }
109
  $select = selected( $user->ID, $vendor_id, false );
110
  $output .= "<option value='$user->ID' $select>$display_name</option>";
111
  }
112
+ $output = apply_filters_deprecated( 'wcv_vendor_drop_down_options', array( $output ), '2.3.0', 'wcvendors_vendor_drop_down_options' );
113
+ return apply_filters( 'wcvendors_vendor_drop_down_options', $output );
114
  }
115
  }
116
 
classes/includes/class-wcv-shortcodes.php CHANGED
@@ -87,7 +87,8 @@ class WCV_Shortcodes {
87
 
88
  ob_start();
89
 
90
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
91
 
92
  $woocommerce_loop['columns'] = $columns;
93
 
@@ -173,7 +174,8 @@ class WCV_Shortcodes {
173
 
174
  ob_start();
175
 
176
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
177
 
178
  $woocommerce_loop['columns'] = $columns;
179
 
@@ -252,7 +254,8 @@ class WCV_Shortcodes {
252
 
253
  ob_start();
254
 
255
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
256
 
257
  $woocommerce_loop['columns'] = $columns;
258
 
@@ -329,7 +332,8 @@ class WCV_Shortcodes {
329
 
330
  ob_start();
331
 
332
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
333
 
334
  $woocommerce_loop['columns'] = $columns;
335
 
@@ -401,7 +405,8 @@ class WCV_Shortcodes {
401
 
402
  add_filter( 'posts_clauses', array( 'WC_Shortcodes', 'order_by_rating_post_clauses' ) );
403
 
404
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
405
 
406
  remove_filter( 'posts_clauses', array( 'WC_Shortcodes', 'order_by_rating_post_clauses' ) );
407
 
@@ -474,7 +479,8 @@ class WCV_Shortcodes {
474
 
475
  ob_start();
476
 
477
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
478
 
479
  $woocommerce_loop['columns'] = $columns;
480
 
@@ -568,7 +574,8 @@ class WCV_Shortcodes {
568
 
569
  ob_start();
570
 
571
- $products = new WP_Query( apply_filters( 'wcv_shortcode_products_query', $args, $atts ) );
 
572
 
573
  $woocommerce_loop['columns'] = $columns;
574
 
87
 
88
  ob_start();
89
 
90
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
91
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
92
 
93
  $woocommerce_loop['columns'] = $columns;
94
 
174
 
175
  ob_start();
176
 
177
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
178
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
179
 
180
  $woocommerce_loop['columns'] = $columns;
181
 
254
 
255
  ob_start();
256
 
257
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
258
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
259
 
260
  $woocommerce_loop['columns'] = $columns;
261
 
332
 
333
  ob_start();
334
 
335
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
336
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
337
 
338
  $woocommerce_loop['columns'] = $columns;
339
 
405
 
406
  add_filter( 'posts_clauses', array( 'WC_Shortcodes', 'order_by_rating_post_clauses' ) );
407
 
408
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
409
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
410
 
411
  remove_filter( 'posts_clauses', array( 'WC_Shortcodes', 'order_by_rating_post_clauses' ) );
412
 
479
 
480
  ob_start();
481
 
482
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
483
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
484
 
485
  $woocommerce_loop['columns'] = $columns;
486
 
574
 
575
  ob_start();
576
 
577
+ $args = apply_filters_deprecated( 'wcv_shortcode_products_query', array( $args, $atts ), '2.3.0', 'wcvendors_shortcode_products_query' );
578
+ $products = new WP_Query( apply_filters( 'wcvendors_shortcode_products_query', $args, $atts ) );
579
 
580
  $woocommerce_loop['columns'] = $columns;
581
 
classes/includes/wcv-template-functions.php CHANGED
@@ -219,7 +219,8 @@ if ( ! function_exists( 'wcv_get_sold_by_link' ) ){
219
  ? sprintf( '<a href="%s" %s>%s</a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), $class, WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
220
  : get_bloginfo( 'name' );
221
 
222
- return apply_filters( 'wcv_sold_by_link', $sold_by, $vendor_id );
 
223
 
224
  }
225
  }
219
  ? sprintf( '<a href="%s" %s>%s</a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), $class, WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
220
  : get_bloginfo( 'name' );
221
 
222
+ $sold_by = apply_filters_deprecated( 'wcv_sold_by_link', array( $sold_by, $vendor_id ), '2.3.0', 'wcvendors_sold_by_link' );
223
+ return apply_filters( 'wcvendors_sold_by_link', $sold_by, $vendor_id );
224
 
225
  }
226
  }
languages/wc-vendors.pot CHANGED
@@ -29,31 +29,39 @@ msgstr ""
29
  msgid "<b>WC Vendors Marketplace is inactive</b>. WC Vendors Marketplace requires a minimum of WooCommerce 3.0.0 to operate."
30
  msgstr ""
31
 
32
- #: class-wc-vendors.php:333
33
  msgid "Are you sure you want mark all commissions paid?"
34
  msgstr ""
35
 
36
- #: class-wc-vendors.php:437
 
 
 
 
 
 
 
 
37
  msgid "WC Vendors 2.0 is a major update. This is not compatible with any of our existing extensions. You should test this update on a staging server before updating. Backup your site and update your theme and extensions, and <a href=\"%s\">review update details here</a> before upgrading."
38
  msgstr ""
39
 
40
- #: class-wc-vendors.php:452
41
  msgid "WC Vendors Pro 1.5.0 is required to run WC Vendors 2.0.0. Your current version %s will be deactivated. Please upgrade to the latest version."
42
  msgstr ""
43
 
44
- #: classes/class-commission.php:61, classes/admin/class-admin-reports.php:417, classes/admin/class-admin-reports.php:515, classes/admin/class-wcv-commissions-page.php:350, classes/admin/class-wcv-commissions-page.php:631
45
  msgid "Due"
46
  msgstr ""
47
 
48
- #: classes/class-commission.php:62, classes/admin/class-admin-reports.php:416, classes/admin/class-admin-reports.php:516, classes/admin/class-wcv-commissions-page.php:351, classes/admin/class-wcv-commissions-page.php:632
49
  msgid "Paid"
50
  msgstr ""
51
 
52
- #: classes/class-commission.php:63, classes/admin/class-admin-reports.php:415, classes/admin/class-admin-reports.php:517, classes/admin/class-wcv-commissions-page.php:353, classes/admin/class-wcv-commissions-page.php:633
53
  msgid "Reversed"
54
  msgstr ""
55
 
56
- #: classes/class-cron.php:87
57
  msgid "Payment total: %s"
58
  msgstr ""
59
 
@@ -63,7 +71,7 @@ msgstr ""
63
 
64
  #. translators: The name used to refer to a vendor.
65
  #. translators: %s - The name used to refer to a vendor.
66
- #: classes/class-install.php:175, classes/admin/class-admin-reports.php:207, classes/admin/class-admin-reports.php:530, classes/admin/class-product-meta.php:359, classes/admin/class-product-meta.php:410, classes/admin/class-setup-wizard.php:349, classes/admin/class-wcv-admin-setup.php:148, classes/admin/class-wcv-admin-setup.php:365, classes/admin/class-wcv-commissions-csv-exporter.php:50, classes/admin/class-wcv-commissions-page.php:160, classes/admin/class-wcv-commissions-sum-csv-exporter.php:43, classes/admin/settings/class-wcv-settings-display.php:229, classes/admin/settings/class-wcv-settings-display.php:113, classes/admin/settings/class-wcv-settings-display.php:121
67
  msgid "%s"
68
  msgstr ""
69
 
@@ -347,11 +355,11 @@ msgstr ""
347
  msgid "%s Orders"
348
  msgstr ""
349
 
350
- #: classes/class-vendors.php:619
351
  msgid "%1$s Order &ndash; %2$s"
352
  msgstr ""
353
 
354
- #: classes/class-vendors.php:619
355
  msgctxt "Order date parsed by strftime"
356
  msgid "%1$b %2$d, %Y @ %I:%M %p"
357
  msgstr ""
@@ -361,7 +369,7 @@ msgstr ""
361
  msgid "Assign %s"
362
  msgstr ""
363
 
364
- #: classes/admin/class-admin-media.php:113, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:196, classes/admin/emails/class-wcv-vendor-notify-order.php:223
365
  msgid "None"
366
  msgstr ""
367
 
@@ -398,11 +406,11 @@ msgid "Overview"
398
  msgstr ""
399
 
400
  #: classes/admin/class-admin-reports.php:49
401
- msgid "Commission by %s"
402
  msgstr ""
403
 
404
  #: classes/admin/class-admin-reports.php:55
405
- msgid "Commission by product"
406
  msgstr ""
407
 
408
  #: classes/admin/class-admin-reports.php:61, classes/admin/class-admin-reports.php:412
@@ -413,11 +421,11 @@ msgstr ""
413
  msgid "Commission totals for all vendors includes shipping and taxes. By default no date range is used and all due commissions are returned. Use the date range to filter."
414
  msgstr ""
415
 
416
- #: classes/admin/class-admin-reports.php:123, classes/admin/class-admin-reports.php:505, classes/admin/class-wcv-commissions-page.php:305, templates/dashboard/date-picker.php:19
417
  msgid "From:"
418
  msgstr ""
419
 
420
- #: classes/admin/class-admin-reports.php:127, classes/admin/class-admin-reports.php:509, classes/admin/class-wcv-commissions-page.php:320, templates/dashboard/date-picker.php:23
421
  msgid "To:"
422
  msgstr ""
423
 
@@ -426,7 +434,7 @@ msgid "Show"
426
  msgstr ""
427
 
428
  #: classes/admin/class-admin-reports.php:137
429
- msgid "Total paid in range"
430
  msgstr ""
431
 
432
  #: classes/admin/class-admin-reports.php:145, classes/admin/class-admin-reports.php:160, classes/admin/class-admin-reports.php:175
@@ -434,11 +442,11 @@ msgid "n/a"
434
  msgstr ""
435
 
436
  #: classes/admin/class-admin-reports.php:152
437
- msgid "Total due in range"
438
  msgstr ""
439
 
440
  #: classes/admin/class-admin-reports.php:167
441
- msgid "Total reversed in range"
442
  msgstr ""
443
 
444
  #: classes/admin/class-admin-reports.php:185
@@ -453,11 +461,11 @@ msgstr ""
453
  msgid "Order"
454
  msgstr ""
455
 
456
- #: classes/admin/class-admin-reports.php:206, classes/admin/class-wcv-commissions-csv-exporter.php:51, classes/admin/class-wcv-commissions-page.php:161, templates/dashboard/reports.php:36, templates/emails/notify-vendor-shipped.php:30, templates/emails/vendor-new-order.php:35, templates/emails/vendor-order-details.php:38, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:195, classes/admin/emails/class-wcv-vendor-notify-order.php:222
457
  msgid "Product"
458
  msgstr ""
459
 
460
- #: classes/admin/class-admin-reports.php:208, classes/admin/class-admin-reports.php:441, classes/admin/class-vendor-admin-dashboard.php:381, classes/admin/class-wcv-commissions-csv-exporter.php:56, classes/admin/class-wcv-commissions-page.php:166, classes/admin/class-wcv-commissions-sum-csv-exporter.php:44, templates/dashboard/orders.php:56
461
  msgid "Total"
462
  msgstr ""
463
 
@@ -465,7 +473,7 @@ msgstr ""
465
  msgid "Date &amp; Time"
466
  msgstr ""
467
 
468
- #: classes/admin/class-admin-reports.php:210, classes/admin/class-admin-reports.php:533, classes/admin/class-wcv-commissions-csv-exporter.php:58, classes/admin/class-wcv-commissions-page.php:167
469
  msgid "Status"
470
  msgstr ""
471
 
@@ -493,11 +501,11 @@ msgstr ""
493
  msgid "Month"
494
  msgstr ""
495
 
496
- #: classes/admin/class-admin-reports.php:413, classes/admin/class-wcv-commissions-csv-exporter.php:55, classes/admin/class-wcv-commissions-page.php:165
497
  msgid "Tax"
498
  msgstr ""
499
 
500
- #: classes/admin/class-admin-reports.php:414, classes/admin/class-wcv-commissions-csv-exporter.php:54, classes/admin/class-wcv-commissions-page.php:164, templates/dashboard/orders.php:54, templates/orders/orders.php:148, classes/admin/settings/class-wcv-settings-capabilities.php:107
501
  msgid "Shipping"
502
  msgstr ""
503
 
@@ -525,102 +533,102 @@ msgstr ""
525
  msgid "%s Store"
526
  msgstr ""
527
 
528
- #: classes/admin/class-admin-users.php:522
529
  msgid "Set primary role to %s "
530
  msgstr ""
531
 
532
- #: classes/admin/class-product-meta.php:180
533
  msgid "Search %s"
534
  msgstr ""
535
 
536
- #: classes/admin/class-product-meta.php:249, classes/admin/class-product-meta.php:366
537
  msgid "Assign media to %s"
538
  msgstr ""
539
 
540
- #: classes/admin/class-product-meta.php:293, classes/admin/class-product-meta.php:311, classes/admin/class-wcv-commissions-csv-exporter.php:53, classes/admin/class-wcv-commissions-page.php:163, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:43, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:194, classes/admin/emails/class-wcv-vendor-notify-order.php:221, classes/admin/settings/class-wcv-settings-commission.php:32, classes/admin/views/html-admin-commission-page.php:23, classes/admin/views/setup/general.php:81
541
  msgid "Commission"
542
  msgstr ""
543
 
544
- #: classes/admin/class-product-meta.php:320, classes/admin/views/html-vendor-meta.php:110
545
  msgid "Leave blank for default"
546
  msgstr ""
547
 
548
- #: classes/admin/class-product-meta.php:339
549
  msgid "%s Store "
550
  msgstr ""
551
 
552
- #: classes/admin/class-product-meta.php:404
553
  msgid "— No change —"
554
  msgstr ""
555
 
556
- #: classes/admin/class-setup-wizard.php:79
557
  msgid "Start"
558
  msgstr ""
559
 
560
- #: classes/admin/class-setup-wizard.php:84, classes/admin/settings/class-wcv-settings-capabilities.php:32
561
  msgid "Capabilities"
562
  msgstr ""
563
 
564
- #: classes/admin/class-setup-wizard.php:89, classes/admin/settings/class-wcv-settings-display.php:196, classes/admin/views/setup/pages.php:19
565
  msgid "Pages"
566
  msgstr ""
567
 
568
- #: classes/admin/class-setup-wizard.php:94
569
  msgid "Ready!"
570
  msgstr ""
571
 
572
- #: classes/admin/class-setup-wizard.php:114
573
  msgctxt "enhanced select"
574
  msgid "No matches found"
575
  msgstr ""
576
 
577
- #: classes/admin/class-setup-wizard.php:115
578
  msgctxt "enhanced select"
579
  msgid "Loading failed"
580
  msgstr ""
581
 
582
- #: classes/admin/class-setup-wizard.php:116
583
  msgctxt "enhanced select"
584
  msgid "Please enter 1 or more characters"
585
  msgstr ""
586
 
587
- #: classes/admin/class-setup-wizard.php:117
588
  msgctxt "enhanced select"
589
  msgid "Please enter %qty% or more characters"
590
  msgstr ""
591
 
592
- #: classes/admin/class-setup-wizard.php:118
593
  msgctxt "enhanced select"
594
  msgid "Please delete 1 character"
595
  msgstr ""
596
 
597
- #: classes/admin/class-setup-wizard.php:119
598
  msgctxt "enhanced select"
599
  msgid "Please delete %qty% characters"
600
  msgstr ""
601
 
602
- #: classes/admin/class-setup-wizard.php:120
603
  msgctxt "enhanced select"
604
  msgid "You can only select 1 item"
605
  msgstr ""
606
 
607
- #: classes/admin/class-setup-wizard.php:121
608
  msgctxt "enhanced select"
609
  msgid "You can only select %qty% items"
610
  msgstr ""
611
 
612
- #: classes/admin/class-setup-wizard.php:122
613
  msgctxt "enhanced select"
614
  msgid "Loading more results&hellip;"
615
  msgstr ""
616
 
617
- #: classes/admin/class-setup-wizard.php:123
618
  msgctxt "enhanced select"
619
  msgid "Searching&hellip;"
620
  msgstr ""
621
 
622
  #. translators: %1$s: link to videos, %2$s: link to docs
623
- #: classes/admin/class-setup-wizard.php:410
624
  msgid "Don't forget to check our <a href=\"%1$s\" target=\"_blank\">documentation</a> to learn more about setting up WC Vendors and if you need help, be sure to visit our <a href=\"%2$s\" target=\"_blank\">free support forums</a>."
625
  msgstr ""
626
 
@@ -652,7 +660,7 @@ msgstr ""
652
  msgid "orders"
653
  msgstr ""
654
 
655
- #: classes/admin/class-vendor-admin-dashboard.php:378, classes/admin/class-wcv-commissions-csv-exporter.php:48, classes/admin/class-wcv-commissions-page.php:158
656
  msgid "Order ID"
657
  msgstr ""
658
 
@@ -664,15 +672,15 @@ msgstr ""
664
  msgid "Products"
665
  msgstr ""
666
 
667
- #: classes/admin/class-vendor-admin-dashboard.php:383, classes/admin/class-wcv-commissions-csv-exporter.php:59, classes/admin/class-wcv-commissions-page.php:169, templates/dashboard/orders.php:57, classes/front/orders/class-orders.php:219
668
  msgid "Date"
669
  msgstr ""
670
 
671
- #: classes/admin/class-vendor-admin-dashboard.php:384, classes/admin/class-wcv-commissions-csv-exporter.php:57, classes/admin/class-wcv-commissions-page.php:168, templates/dashboard/orders.php:128
672
  msgid "Shipped"
673
  msgstr ""
674
 
675
- #: classes/admin/class-vendor-admin-dashboard.php:422, templates/dashboard/orders.php:121
676
  msgid "Mark shipped"
677
  msgstr ""
678
 
@@ -680,11 +688,11 @@ msgstr ""
680
  msgid "Orders marked shipped."
681
  msgstr ""
682
 
683
- #: classes/admin/class-vendor-admin-dashboard.php:610, classes/admin/class-wcv-commissions-csv-exporter.php:189, classes/admin/class-wcv-commissions-page.php:118
684
  msgid "Yes"
685
  msgstr ""
686
 
687
- #: classes/admin/class-vendor-admin-dashboard.php:610, classes/admin/class-wcv-commissions-csv-exporter.php:189, classes/admin/class-wcv-commissions-page.php:118
688
  msgid "No"
689
  msgstr ""
690
 
@@ -823,7 +831,7 @@ msgstr ""
823
  msgid "The changes you made will be lost if you navigate away from this page."
824
  msgstr ""
825
 
826
- #: classes/admin/class-wcv-admin-settings.php:466, classes/admin/class-wcv-admin-settings.php:498, classes/includes/class-functions.php:63
827
  msgid "Select a page&hellip;"
828
  msgstr ""
829
 
@@ -944,63 +952,72 @@ msgstr ""
944
  msgid "QTY"
945
  msgstr ""
946
 
947
- #: classes/admin/class-wcv-commissions-page.php:162, templates/dashboard/reports.php:37, templates/emails/notify-vendor-shipped.php:31, templates/emails/vendor-new-order.php:36, templates/emails/vendor-order-details.php:40, classes/front/orders/class-export-csv.php:17
948
  msgid "Quantity"
949
  msgstr ""
950
 
951
- #: classes/admin/class-wcv-commissions-page.php:217
952
  msgid "Mark paid"
953
  msgstr ""
954
 
955
- #: classes/admin/class-wcv-commissions-page.php:218
956
  msgid "Mark due"
957
  msgstr ""
958
 
959
- #: classes/admin/class-wcv-commissions-page.php:219
960
  msgid "Mark reversed"
961
  msgstr ""
962
 
963
- #: classes/admin/class-wcv-commissions-page.php:265
 
 
 
 
964
  msgid "Filter"
965
  msgstr ""
966
 
967
- #: classes/admin/class-wcv-commissions-page.php:274
968
  msgid "Clear"
969
  msgstr ""
970
 
971
- #: classes/admin/class-wcv-commissions-page.php:276
972
  msgid "Export to CSV"
973
  msgstr ""
974
 
975
- #: classes/admin/class-wcv-commissions-page.php:277
976
  msgid "Export Totals to CSV"
977
  msgstr ""
978
 
979
- #: classes/admin/class-wcv-commissions-page.php:278
980
  msgid "Mark all paid"
981
  msgstr ""
982
 
983
- #: classes/admin/class-wcv-commissions-page.php:349
984
  msgid "Show all Statuses"
985
  msgstr ""
986
 
987
- #: classes/admin/class-wcv-commissions-page.php:370
988
- msgid "Filer by %s"
 
989
  msgstr ""
990
 
991
- #: classes/admin/class-wcv-commissions-page.php:403
992
  msgid "Commission marked paid."
993
  msgstr ""
994
 
995
- #: classes/admin/class-wcv-commissions-page.php:411
996
  msgid "Commission marked due."
997
  msgstr ""
998
 
999
- #: classes/admin/class-wcv-commissions-page.php:419
1000
  msgid "Commission marked reversed."
1001
  msgstr ""
1002
 
1003
- #: classes/admin/class-wcv-commissions-page.php:630
 
 
 
 
1004
  msgid "All"
1005
  msgstr ""
1006
 
@@ -1096,19 +1113,19 @@ msgstr ""
1096
  msgid "Your account has not yet been approved to become a %s. When it is, you will receive an email telling you that your account is approved!"
1097
  msgstr ""
1098
 
1099
- #: templates/dashboard/links.php:28, classes/front/dashboard/class-vendor-dashboard.php:362
1100
  msgid "View Your Store"
1101
  msgstr ""
1102
 
1103
- #: templates/dashboard/links.php:29, classes/admin/settings/class-wcv-settings-display.php:254, classes/front/dashboard/class-vendor-dashboard.php:366
1104
  msgid "Store Settings"
1105
  msgstr ""
1106
 
1107
- #: templates/dashboard/links.php:33, classes/front/dashboard/class-vendor-dashboard.php:375
1108
  msgid "Add New Product"
1109
  msgstr ""
1110
 
1111
- #: templates/dashboard/links.php:35, classes/front/dashboard/class-vendor-dashboard.php:380
1112
  msgid "Edit Products"
1113
  msgstr ""
1114
 
@@ -1116,7 +1133,7 @@ msgstr ""
1116
  msgid "Hide items"
1117
  msgstr ""
1118
 
1119
- #: templates/dashboard/orders.php:24, templates/dashboard/orders.php:115
1120
  msgid "View items"
1121
  msgstr ""
1122
 
@@ -1124,11 +1141,11 @@ msgstr ""
1124
  msgid "Links"
1125
  msgstr ""
1126
 
1127
- #: templates/dashboard/orders.php:216
1128
  msgid "You have no orders during this period."
1129
  msgstr ""
1130
 
1131
- #: templates/dashboard/orders.php:136
1132
  msgid "Tracking"
1133
  msgstr ""
1134
 
@@ -1224,15 +1241,15 @@ msgstr ""
1224
  msgid "Price"
1225
  msgstr ""
1226
 
1227
- #: templates/emails/notify-vendor-shipped.php:82, templates/emails/vendor-new-order.php:89
1228
  msgid "Customer details"
1229
  msgstr ""
1230
 
1231
- #: templates/emails/notify-vendor-shipped.php:85, templates/emails/vendor-new-order.php:92
1232
  msgid "Email:"
1233
  msgstr ""
1234
 
1235
- #: templates/emails/notify-vendor-shipped.php:88, templates/emails/vendor-new-order.php:95
1236
  msgid "Tel:"
1237
  msgstr ""
1238
 
@@ -1273,7 +1290,7 @@ msgstr ""
1273
  msgid "Order #%s"
1274
  msgstr ""
1275
 
1276
- #: templates/emails/vendor-order-details.php:98, templates/emails/plain/vendor-order-details.php:50
1277
  msgid "Note:"
1278
  msgstr ""
1279
 
@@ -1321,11 +1338,11 @@ msgstr ""
1321
  msgid "[{blogname}] Your %s application has been {status}"
1322
  msgstr ""
1323
 
1324
- #: classes/admin/emails/class-wc-approve-vendor.php:129, classes/admin/emails/class-wc-notify-admin.php:139, classes/admin/emails/class-wc-notify-shipped.php:170, classes/admin/emails/class-wc-notify-vendor.php:296, classes/admin/emails/class-wcv-admin-notify-application.php:141, classes/admin/emails/class-wcv-admin-notify-approved.php:146, classes/admin/emails/class-wcv-admin-notify-product.php:156, classes/admin/emails/class-wcv-admin-notify-shipped.php:144, classes/admin/emails/class-wcv-customer-notify-shipped.php:151, classes/admin/emails/class-wcv-vendor-notify-application.php:139, classes/admin/emails/class-wcv-vendor-notify-approved.php:148, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:163, classes/admin/emails/class-wcv-vendor-notify-denied.php:159, classes/admin/emails/class-wcv-vendor-notify-order.php:190, classes/gateways/WCV_Gateway_Test/class-wcv-gateway-test.php:62
1325
  msgid "Enable/Disable"
1326
  msgstr ""
1327
 
1328
- #: classes/admin/emails/class-wc-approve-vendor.php:131, classes/admin/emails/class-wc-notify-admin.php:141, classes/admin/emails/class-wc-notify-shipped.php:172, classes/admin/emails/class-wc-notify-vendor.php:298, classes/admin/emails/class-wcv-admin-notify-application.php:143, classes/admin/emails/class-wcv-admin-notify-approved.php:148, classes/admin/emails/class-wcv-admin-notify-product.php:158, classes/admin/emails/class-wcv-admin-notify-shipped.php:146, classes/admin/emails/class-wcv-customer-notify-shipped.php:153, classes/admin/emails/class-wcv-vendor-notify-application.php:141, classes/admin/emails/class-wcv-vendor-notify-approved.php:150, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:165, classes/admin/emails/class-wcv-vendor-notify-denied.php:161, classes/admin/emails/class-wcv-vendor-notify-order.php:192
1329
  msgid "Enable this email notification"
1330
  msgstr ""
1331
 
@@ -1333,39 +1350,39 @@ msgstr ""
1333
  msgid "Enter recipients (comma separated) for this email. Defaults to <code>%s</code>."
1334
  msgstr ""
1335
 
1336
- #: classes/admin/emails/class-wc-approve-vendor.php:142, classes/admin/emails/class-wc-notify-admin.php:152, classes/admin/emails/class-wc-notify-shipped.php:176, classes/admin/emails/class-wc-notify-vendor.php:302, classes/admin/emails/class-wcv-admin-notify-application.php:155, classes/admin/emails/class-wcv-admin-notify-approved.php:160, classes/admin/emails/class-wcv-admin-notify-product.php:170, classes/admin/emails/class-wcv-admin-notify-shipped.php:158, classes/admin/emails/class-wcv-customer-notify-shipped.php:157, classes/admin/emails/class-wcv-vendor-notify-application.php:145, classes/admin/emails/class-wcv-vendor-notify-approved.php:154, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:169, classes/admin/emails/class-wcv-vendor-notify-denied.php:165, classes/admin/emails/class-wcv-vendor-notify-order.php:196
1337
  msgid "Subject"
1338
  msgstr ""
1339
 
1340
- #: classes/admin/emails/class-wc-approve-vendor.php:144, classes/admin/emails/class-wc-notify-admin.php:154, classes/admin/emails/class-wc-notify-shipped.php:178, classes/admin/emails/class-wc-notify-vendor.php:304
1341
  msgid "This controls the email subject line. Leave blank to use the default subject: <code>%s</code>."
1342
  msgstr ""
1343
 
1344
- #: classes/admin/emails/class-wc-approve-vendor.php:149, classes/admin/emails/class-wc-notify-admin.php:159, classes/admin/emails/class-wc-notify-shipped.php:183, classes/admin/emails/class-wc-notify-vendor.php:309
1345
  msgid "Email Heading"
1346
  msgstr ""
1347
 
1348
- #: classes/admin/emails/class-wc-approve-vendor.php:151, classes/admin/emails/class-wc-notify-admin.php:161, classes/admin/emails/class-wc-notify-shipped.php:185, classes/admin/emails/class-wc-notify-vendor.php:311
1349
  msgid "This controls the main heading contained within the email notification. Leave blank to use the default heading: <code>%s</code>."
1350
  msgstr ""
1351
 
1352
- #: classes/admin/emails/class-wc-approve-vendor.php:156, classes/admin/emails/class-wc-notify-admin.php:166, classes/admin/emails/class-wc-notify-shipped.php:190, classes/admin/emails/class-wc-notify-vendor.php:322, classes/admin/emails/class-wcv-admin-notify-application.php:185, classes/admin/emails/class-wcv-admin-notify-approved.php:190, classes/admin/emails/class-wcv-admin-notify-product.php:188, classes/admin/emails/class-wcv-admin-notify-shipped.php:176, classes/admin/emails/class-wcv-customer-notify-shipped.php:175, classes/admin/emails/class-wcv-vendor-notify-application.php:163, classes/admin/emails/class-wcv-vendor-notify-approved.php:181, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:201, classes/admin/emails/class-wcv-vendor-notify-denied.php:200, classes/admin/emails/class-wcv-vendor-notify-order.php:234
1353
  msgid "Email type"
1354
  msgstr ""
1355
 
1356
- #: classes/admin/emails/class-wc-approve-vendor.php:158, classes/admin/emails/class-wc-notify-admin.php:168, classes/admin/emails/class-wc-notify-shipped.php:192, classes/admin/emails/class-wc-notify-vendor.php:324, classes/admin/emails/class-wcv-admin-notify-application.php:187, classes/admin/emails/class-wcv-admin-notify-approved.php:192, classes/admin/emails/class-wcv-admin-notify-product.php:190, classes/admin/emails/class-wcv-admin-notify-shipped.php:178, classes/admin/emails/class-wcv-customer-notify-shipped.php:177, classes/admin/emails/class-wcv-vendor-notify-application.php:165, classes/admin/emails/class-wcv-vendor-notify-approved.php:183, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:203, classes/admin/emails/class-wcv-vendor-notify-denied.php:202, classes/admin/emails/class-wcv-vendor-notify-order.php:236
1357
  msgid "Choose which format of email to send."
1358
  msgstr ""
1359
 
1360
- #: classes/admin/emails/class-wc-approve-vendor.php:162, classes/admin/emails/class-wc-notify-admin.php:172, classes/admin/emails/class-wc-notify-shipped.php:196, classes/admin/emails/class-wc-notify-vendor.php:328
1361
  msgid "Plain text"
1362
  msgstr ""
1363
 
1364
- #: classes/admin/emails/class-wc-approve-vendor.php:163, classes/admin/emails/class-wc-notify-admin.php:173, classes/admin/emails/class-wc-notify-shipped.php:197, classes/admin/emails/class-wc-notify-vendor.php:329
1365
  msgid "HTML"
1366
  msgstr ""
1367
 
1368
- #: classes/admin/emails/class-wc-approve-vendor.php:164, classes/admin/emails/class-wc-notify-admin.php:174, classes/admin/emails/class-wc-notify-shipped.php:198, classes/admin/emails/class-wc-notify-vendor.php:330
1369
  msgid "Multipart"
1370
  msgstr ""
1371
 
@@ -1425,19 +1442,19 @@ msgstr ""
1425
  msgid "Commission Subtotal:"
1426
  msgstr ""
1427
 
1428
- #: classes/admin/emails/class-wc-notify-vendor.php:133
1429
  msgid "Tax Subtotal:"
1430
  msgstr ""
1431
 
1432
- #: classes/admin/emails/class-wc-notify-vendor.php:143
1433
  msgid "Shipping Subtotal:"
1434
  msgstr ""
1435
 
1436
- #: classes/admin/emails/class-wc-notify-vendor.php:316
1437
  msgid "Product Totals"
1438
  msgstr ""
1439
 
1440
- #: classes/admin/emails/class-wc-notify-vendor.php:318
1441
  msgid "Show the commission due/paid as the product totals instead of the product prices."
1442
  msgstr ""
1443
 
@@ -1486,11 +1503,11 @@ msgstr ""
1486
  #. translators: %s: list of placeholders
1487
  #. translators: %s: list of placeholders
1488
  #. translators: %s: list of placeholders
1489
- #: classes/admin/emails/class-wcv-admin-notify-application.php:159, classes/admin/emails/class-wcv-admin-notify-application.php:168, classes/admin/emails/class-wcv-admin-notify-approved.php:164, classes/admin/emails/class-wcv-admin-notify-approved.php:173, classes/admin/emails/class-wcv-admin-notify-product.php:174, classes/admin/emails/class-wcv-admin-notify-product.php:183, classes/admin/emails/class-wcv-admin-notify-shipped.php:162, classes/admin/emails/class-wcv-admin-notify-shipped.php:171, classes/admin/emails/class-wcv-customer-notify-shipped.php:161, classes/admin/emails/class-wcv-customer-notify-shipped.php:170, classes/admin/emails/class-wcv-vendor-notify-application.php:149, classes/admin/emails/class-wcv-vendor-notify-application.php:158, classes/admin/emails/class-wcv-vendor-notify-approved.php:158, classes/admin/emails/class-wcv-vendor-notify-approved.php:176, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:173, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:182, classes/admin/emails/class-wcv-vendor-notify-denied.php:169, classes/admin/emails/class-wcv-vendor-notify-denied.php:178, classes/admin/emails/class-wcv-vendor-notify-denied.php:195, classes/admin/emails/class-wcv-vendor-notify-order.php:200, classes/admin/emails/class-wcv-vendor-notify-order.php:209
1490
  msgid "Available placeholders: %s"
1491
  msgstr ""
1492
 
1493
- #: classes/admin/emails/class-wcv-admin-notify-application.php:164, classes/admin/emails/class-wcv-admin-notify-approved.php:169, classes/admin/emails/class-wcv-admin-notify-product.php:179, classes/admin/emails/class-wcv-admin-notify-shipped.php:167, classes/admin/emails/class-wcv-customer-notify-shipped.php:166, classes/admin/emails/class-wcv-vendor-notify-application.php:154, classes/admin/emails/class-wcv-vendor-notify-approved.php:172, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:178, classes/admin/emails/class-wcv-vendor-notify-denied.php:191, classes/admin/emails/class-wcv-vendor-notify-order.php:205
1494
  msgid "Email heading"
1495
  msgstr ""
1496
 
@@ -1618,15 +1635,15 @@ msgstr ""
1618
  msgid "Order Cancelled"
1619
  msgstr ""
1620
 
1621
- #: classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:187, classes/admin/emails/class-wcv-vendor-notify-order.php:214
1622
  msgid "Totals Display"
1623
  msgstr ""
1624
 
1625
- #: classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:189, classes/admin/emails/class-wcv-vendor-notify-order.php:216
1626
  msgid "Choose how to display the product totals. Including commission or without or no totals at all."
1627
  msgstr ""
1628
 
1629
- #: classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:193, classes/admin/emails/class-wcv-vendor-notify-order.php:220
1630
  msgid "Both"
1631
  msgstr ""
1632
 
@@ -1699,7 +1716,7 @@ msgid "These options are effective when uninstalling the plugin. If \"Delete All
1699
  msgstr ""
1700
 
1701
  #: classes/admin/settings/class-wcv-settings-advanced.php:72
1702
- msgid "Delete all data"
1703
  msgstr ""
1704
 
1705
  #: classes/admin/settings/class-wcv-settings-advanced.php:73
@@ -1707,7 +1724,7 @@ msgid "Delete all WC Vendors data when deactivating the plugin."
1707
  msgstr ""
1708
 
1709
  #: classes/admin/settings/class-wcv-settings-advanced.php:79
1710
- msgid "Delete custom table"
1711
  msgstr ""
1712
 
1713
  #: classes/admin/settings/class-wcv-settings-advanced.php:80
@@ -1715,7 +1732,7 @@ msgid "Delete all data included in the custom tables. This will delete all commi
1715
  msgstr ""
1716
 
1717
  #: classes/admin/settings/class-wcv-settings-advanced.php:86
1718
- msgid "Delete settings options"
1719
  msgstr ""
1720
 
1721
  #: classes/admin/settings/class-wcv-settings-advanced.php:87
@@ -1731,7 +1748,7 @@ msgid "Delete all pages created by WC Vendors."
1731
  msgstr ""
1732
 
1733
  #: classes/admin/settings/class-wcv-settings-advanced.php:100
1734
- msgid "Remove custom Roles"
1735
  msgstr ""
1736
 
1737
  #: classes/admin/settings/class-wcv-settings-advanced.php:101
@@ -1811,7 +1828,7 @@ msgid "Allow %s to view order notes"
1811
  msgstr ""
1812
 
1813
  #: classes/admin/settings/class-wcv-settings-capabilities.php:176
1814
- msgid "Add Order notes"
1815
  msgstr ""
1816
 
1817
  #: classes/admin/settings/class-wcv-settings-capabilities.php:177, classes/admin/views/setup/capabilities.php:115
@@ -2101,20 +2118,20 @@ msgstr ""
2101
  msgid "Change all references to vendors to this term"
2102
  msgstr ""
2103
 
2104
- #: classes/admin/settings/class-wcv-settings-display.php:125
2105
- msgid "Sold by"
2106
  msgstr ""
2107
 
2108
  #: classes/admin/settings/class-wcv-settings-display.php:126
2109
  msgid "Enable sold by labels"
2110
  msgstr ""
2111
 
2112
- #: classes/admin/settings/class-wcv-settings-display.php:127, classes/admin/settings/class-wcv-settings-display.php:74
2113
  msgid "This enables the sold by labels used to show which %s shop the product belongs to"
2114
  msgstr ""
2115
 
2116
  #: classes/admin/settings/class-wcv-settings-display.php:134
2117
- msgid "Sold by separator"
2118
  msgstr ""
2119
 
2120
  #: classes/admin/settings/class-wcv-settings-display.php:135
@@ -2126,19 +2143,15 @@ msgid ":"
2126
  msgstr ""
2127
 
2128
  #: classes/admin/settings/class-wcv-settings-display.php:142
2129
- msgid "Sold by label"
2130
  msgstr ""
2131
 
2132
  #: classes/admin/settings/class-wcv-settings-display.php:143
2133
  msgid "The sold by label"
2134
  msgstr ""
2135
 
2136
- #: classes/admin/settings/class-wcv-settings-display.php:146
2137
- msgid "Sold By"
2138
- msgstr ""
2139
-
2140
  #: classes/admin/settings/class-wcv-settings-display.php:150
2141
- msgid "Become a %s"
2142
  msgstr ""
2143
 
2144
  #: classes/admin/settings/class-wcv-settings-display.php:151
@@ -2146,7 +2159,7 @@ msgid "Show the \"Become a %s\" link on WooCommerce my-account page"
2146
  msgstr ""
2147
 
2148
  #: classes/admin/settings/class-wcv-settings-display.php:158
2149
- msgid "Become a %s label"
2150
  msgstr ""
2151
 
2152
  #: classes/admin/settings/class-wcv-settings-display.php:159
@@ -2166,7 +2179,7 @@ msgid "Enable %s store info tab on the single product page"
2166
  msgstr ""
2167
 
2168
  #: classes/admin/settings/class-wcv-settings-display.php:174
2169
- msgid "%s store info label"
2170
  msgstr ""
2171
 
2172
  #: classes/admin/settings/class-wcv-settings-display.php:175
@@ -2186,7 +2199,11 @@ msgid "Product Page Stylesheet"
2186
  msgstr ""
2187
 
2188
  #: classes/admin/settings/class-wcv-settings-display.php:73
2189
- msgid "You can add CSS in this textarea, which will be loaded on the product add/edit page for %s"
 
 
 
 
2190
  msgstr ""
2191
 
2192
  #: classes/admin/settings/class-wcv-settings-display.php:81
29
  msgid "<b>WC Vendors Marketplace is inactive</b>. WC Vendors Marketplace requires a minimum of WooCommerce 3.0.0 to operate."
30
  msgstr ""
31
 
32
+ #: class-wc-vendors.php:337
33
  msgid "Are you sure you want mark all commissions paid?"
34
  msgstr ""
35
 
36
+ #: class-wc-vendors.php:338
37
+ msgid "Are you sure delete this commission?"
38
+ msgstr ""
39
+
40
+ #: class-wc-vendors.php:339
41
+ msgid "Are you sure delete these commissions?"
42
+ msgstr ""
43
+
44
+ #: class-wc-vendors.php:449
45
  msgid "WC Vendors 2.0 is a major update. This is not compatible with any of our existing extensions. You should test this update on a staging server before updating. Backup your site and update your theme and extensions, and <a href=\"%s\">review update details here</a> before upgrading."
46
  msgstr ""
47
 
48
+ #: class-wc-vendors.php:464
49
  msgid "WC Vendors Pro 1.5.0 is required to run WC Vendors 2.0.0. Your current version %s will be deactivated. Please upgrade to the latest version."
50
  msgstr ""
51
 
52
+ #: classes/class-commission.php:61, classes/admin/class-admin-reports.php:417, classes/admin/class-admin-reports.php:515, classes/admin/class-wcv-commissions-page.php:395, classes/admin/class-wcv-commissions-page.php:700
53
  msgid "Due"
54
  msgstr ""
55
 
56
+ #: classes/class-commission.php:62, classes/admin/class-admin-reports.php:416, classes/admin/class-admin-reports.php:516, classes/admin/class-wcv-commissions-page.php:396, classes/admin/class-wcv-commissions-page.php:701
57
  msgid "Paid"
58
  msgstr ""
59
 
60
+ #: classes/class-commission.php:63, classes/admin/class-admin-reports.php:415, classes/admin/class-admin-reports.php:517, classes/admin/class-wcv-commissions-page.php:398, classes/admin/class-wcv-commissions-page.php:702
61
  msgid "Reversed"
62
  msgstr ""
63
 
64
+ #: classes/class-cron.php:91
65
  msgid "Payment total: %s"
66
  msgstr ""
67
 
71
 
72
  #. translators: The name used to refer to a vendor.
73
  #. translators: %s - The name used to refer to a vendor.
74
+ #: classes/class-install.php:175, classes/admin/class-admin-reports.php:207, classes/admin/class-admin-reports.php:530, classes/admin/class-product-meta.php:364, classes/admin/class-product-meta.php:415, classes/admin/class-setup-wizard.php:352, classes/admin/class-wcv-admin-setup.php:148, classes/admin/class-wcv-admin-setup.php:365, classes/admin/class-wcv-commissions-csv-exporter.php:50, classes/admin/class-wcv-commissions-page.php:204, classes/admin/class-wcv-commissions-sum-csv-exporter.php:43, classes/admin/settings/class-wcv-settings-display.php:229, classes/admin/settings/class-wcv-settings-display.php:113, classes/admin/settings/class-wcv-settings-display.php:121
75
  msgid "%s"
76
  msgstr ""
77
 
355
  msgid "%s Orders"
356
  msgstr ""
357
 
358
+ #: classes/class-vendors.php:620
359
  msgid "%1$s Order &ndash; %2$s"
360
  msgstr ""
361
 
362
+ #: classes/class-vendors.php:620
363
  msgctxt "Order date parsed by strftime"
364
  msgid "%1$b %2$d, %Y @ %I:%M %p"
365
  msgstr ""
369
  msgid "Assign %s"
370
  msgstr ""
371
 
372
+ #: classes/admin/class-admin-media.php:113, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:220, classes/admin/emails/class-wcv-vendor-notify-order.php:223
373
  msgid "None"
374
  msgstr ""
375
 
406
  msgstr ""
407
 
408
  #: classes/admin/class-admin-reports.php:49
409
+ msgid "Commission By %s"
410
  msgstr ""
411
 
412
  #: classes/admin/class-admin-reports.php:55
413
+ msgid "Commission By Product"
414
  msgstr ""
415
 
416
  #: classes/admin/class-admin-reports.php:61, classes/admin/class-admin-reports.php:412
421
  msgid "Commission totals for all vendors includes shipping and taxes. By default no date range is used and all due commissions are returned. Use the date range to filter."
422
  msgstr ""
423
 
424
+ #: classes/admin/class-admin-reports.php:123, classes/admin/class-admin-reports.php:505, classes/admin/class-wcv-commissions-page.php:350, templates/dashboard/date-picker.php:19
425
  msgid "From:"
426
  msgstr ""
427
 
428
+ #: classes/admin/class-admin-reports.php:127, classes/admin/class-admin-reports.php:509, classes/admin/class-wcv-commissions-page.php:365, templates/dashboard/date-picker.php:23
429
  msgid "To:"
430
  msgstr ""
431
 
434
  msgstr ""
435
 
436
  #: classes/admin/class-admin-reports.php:137
437
+ msgid "Total Paid In Range"
438
  msgstr ""
439
 
440
  #: classes/admin/class-admin-reports.php:145, classes/admin/class-admin-reports.php:160, classes/admin/class-admin-reports.php:175
442
  msgstr ""
443
 
444
  #: classes/admin/class-admin-reports.php:152
445
+ msgid "Total Due In Range"
446
  msgstr ""
447
 
448
  #: classes/admin/class-admin-reports.php:167
449
+ msgid "Total Reversed In Range"
450
  msgstr ""
451
 
452
  #: classes/admin/class-admin-reports.php:185
461
  msgid "Order"
462
  msgstr ""
463
 
464
+ #: classes/admin/class-admin-reports.php:206, classes/admin/class-wcv-commissions-csv-exporter.php:51, classes/admin/class-wcv-commissions-page.php:205, templates/dashboard/reports.php:36, templates/emails/notify-vendor-shipped.php:30, templates/emails/vendor-new-order.php:35, templates/emails/vendor-order-details.php:38, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:219, classes/admin/emails/class-wcv-vendor-notify-order.php:222
465
  msgid "Product"
466
  msgstr ""
467
 
468
+ #: classes/admin/class-admin-reports.php:208, classes/admin/class-admin-reports.php:441, classes/admin/class-vendor-admin-dashboard.php:381, classes/admin/class-wcv-commissions-csv-exporter.php:56, classes/admin/class-wcv-commissions-page.php:210, classes/admin/class-wcv-commissions-sum-csv-exporter.php:44, templates/dashboard/orders.php:56
469
  msgid "Total"
470
  msgstr ""
471
 
473
  msgid "Date &amp; Time"
474
  msgstr ""
475
 
476
+ #: classes/admin/class-admin-reports.php:210, classes/admin/class-admin-reports.php:533, classes/admin/class-wcv-commissions-csv-exporter.php:58, classes/admin/class-wcv-commissions-page.php:211
477
  msgid "Status"
478
  msgstr ""
479
 
501
  msgid "Month"
502
  msgstr ""
503
 
504
+ #: classes/admin/class-admin-reports.php:413, classes/admin/class-wcv-commissions-csv-exporter.php:55, classes/admin/class-wcv-commissions-page.php:209
505
  msgid "Tax"
506
  msgstr ""
507
 
508
+ #: classes/admin/class-admin-reports.php:414, classes/admin/class-wcv-commissions-csv-exporter.php:54, classes/admin/class-wcv-commissions-page.php:208, templates/dashboard/orders.php:54, templates/orders/orders.php:148, classes/admin/settings/class-wcv-settings-capabilities.php:107
509
  msgid "Shipping"
510
  msgstr ""
511
 
533
  msgid "%s Store"
534
  msgstr ""
535
 
536
+ #: classes/admin/class-admin-users.php:524
537
  msgid "Set primary role to %s "
538
  msgstr ""
539
 
540
+ #: classes/admin/class-product-meta.php:182
541
  msgid "Search %s"
542
  msgstr ""
543
 
544
+ #: classes/admin/class-product-meta.php:253, classes/admin/class-product-meta.php:371
545
  msgid "Assign media to %s"
546
  msgstr ""
547
 
548
+ #: classes/admin/class-product-meta.php:298, classes/admin/class-product-meta.php:316, classes/admin/class-wcv-commissions-csv-exporter.php:53, classes/admin/class-wcv-commissions-page.php:207, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:43, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:218, classes/admin/emails/class-wcv-vendor-notify-order.php:221, classes/admin/settings/class-wcv-settings-commission.php:32, classes/admin/views/html-admin-commission-page.php:23, classes/admin/views/setup/general.php:81
549
  msgid "Commission"
550
  msgstr ""
551
 
552
+ #: classes/admin/class-product-meta.php:325, classes/admin/views/html-vendor-meta.php:110
553
  msgid "Leave blank for default"
554
  msgstr ""
555
 
556
+ #: classes/admin/class-product-meta.php:344
557
  msgid "%s Store "
558
  msgstr ""
559
 
560
+ #: classes/admin/class-product-meta.php:409
561
  msgid "— No change —"
562
  msgstr ""
563
 
564
+ #: classes/admin/class-setup-wizard.php:81
565
  msgid "Start"
566
  msgstr ""
567
 
568
+ #: classes/admin/class-setup-wizard.php:86, classes/admin/settings/class-wcv-settings-capabilities.php:32
569
  msgid "Capabilities"
570
  msgstr ""
571
 
572
+ #: classes/admin/class-setup-wizard.php:91, classes/admin/settings/class-wcv-settings-display.php:196, classes/admin/views/setup/pages.php:19
573
  msgid "Pages"
574
  msgstr ""
575
 
576
+ #: classes/admin/class-setup-wizard.php:96
577
  msgid "Ready!"
578
  msgstr ""
579
 
580
+ #: classes/admin/class-setup-wizard.php:117
581
  msgctxt "enhanced select"
582
  msgid "No matches found"
583
  msgstr ""
584
 
585
+ #: classes/admin/class-setup-wizard.php:118
586
  msgctxt "enhanced select"
587
  msgid "Loading failed"
588
  msgstr ""
589
 
590
+ #: classes/admin/class-setup-wizard.php:119
591
  msgctxt "enhanced select"
592
  msgid "Please enter 1 or more characters"
593
  msgstr ""
594
 
595
+ #: classes/admin/class-setup-wizard.php:120
596
  msgctxt "enhanced select"
597
  msgid "Please enter %qty% or more characters"
598
  msgstr ""
599
 
600
+ #: classes/admin/class-setup-wizard.php:121
601
  msgctxt "enhanced select"
602
  msgid "Please delete 1 character"
603
  msgstr ""
604
 
605
+ #: classes/admin/class-setup-wizard.php:122
606
  msgctxt "enhanced select"
607
  msgid "Please delete %qty% characters"
608
  msgstr ""
609
 
610
+ #: classes/admin/class-setup-wizard.php:123
611
  msgctxt "enhanced select"
612
  msgid "You can only select 1 item"
613
  msgstr ""
614
 
615
+ #: classes/admin/class-setup-wizard.php:124
616
  msgctxt "enhanced select"
617
  msgid "You can only select %qty% items"
618
  msgstr ""
619
 
620
+ #: classes/admin/class-setup-wizard.php:125
621
  msgctxt "enhanced select"
622
  msgid "Loading more results&hellip;"
623
  msgstr ""
624
 
625
+ #: classes/admin/class-setup-wizard.php:126
626
  msgctxt "enhanced select"
627
  msgid "Searching&hellip;"
628
  msgstr ""
629
 
630
  #. translators: %1$s: link to videos, %2$s: link to docs
631
+ #: classes/admin/class-setup-wizard.php:413
632
  msgid "Don't forget to check our <a href=\"%1$s\" target=\"_blank\">documentation</a> to learn more about setting up WC Vendors and if you need help, be sure to visit our <a href=\"%2$s\" target=\"_blank\">free support forums</a>."
633
  msgstr ""
634
 
660
  msgid "orders"
661
  msgstr ""
662
 
663
+ #: classes/admin/class-vendor-admin-dashboard.php:378, classes/admin/class-wcv-commissions-csv-exporter.php:48, classes/admin/class-wcv-commissions-page.php:202
664
  msgid "Order ID"
665
  msgstr ""
666
 
672
  msgid "Products"
673
  msgstr ""
674
 
675
+ #: classes/admin/class-vendor-admin-dashboard.php:383, classes/admin/class-wcv-commissions-csv-exporter.php:59, classes/admin/class-wcv-commissions-page.php:213, templates/dashboard/orders.php:57, classes/front/orders/class-orders.php:219
676
  msgid "Date"
677
  msgstr ""
678
 
679
+ #: classes/admin/class-vendor-admin-dashboard.php:384, classes/admin/class-wcv-commissions-csv-exporter.php:57, classes/admin/class-wcv-commissions-page.php:212, templates/dashboard/orders.php:130
680
  msgid "Shipped"
681
  msgstr ""
682
 
683
+ #: classes/admin/class-vendor-admin-dashboard.php:422, templates/dashboard/orders.php:123
684
  msgid "Mark shipped"
685
  msgstr ""
686
 
688
  msgid "Orders marked shipped."
689
  msgstr ""
690
 
691
+ #: classes/admin/class-vendor-admin-dashboard.php:610, classes/admin/class-wcv-commissions-csv-exporter.php:189, classes/admin/class-wcv-commissions-page.php:123
692
  msgid "Yes"
693
  msgstr ""
694
 
695
+ #: classes/admin/class-vendor-admin-dashboard.php:610, classes/admin/class-wcv-commissions-csv-exporter.php:189, classes/admin/class-wcv-commissions-page.php:123
696
  msgid "No"
697
  msgstr ""
698
 
831
  msgid "The changes you made will be lost if you navigate away from this page."
832
  msgstr ""
833
 
834
+ #: classes/admin/class-wcv-admin-settings.php:466, classes/admin/class-wcv-admin-settings.php:498, classes/includes/class-functions.php:64
835
  msgid "Select a page&hellip;"
836
  msgstr ""
837
 
952
  msgid "QTY"
953
  msgstr ""
954
 
955
+ #: classes/admin/class-wcv-commissions-page.php:206, templates/dashboard/reports.php:37, templates/emails/notify-vendor-shipped.php:31, templates/emails/vendor-new-order.php:36, templates/emails/vendor-order-details.php:40, classes/front/orders/class-export-csv.php:17
956
  msgid "Quantity"
957
  msgstr ""
958
 
959
+ #: classes/admin/class-wcv-commissions-page.php:261
960
  msgid "Mark paid"
961
  msgstr ""
962
 
963
+ #: classes/admin/class-wcv-commissions-page.php:262
964
  msgid "Mark due"
965
  msgstr ""
966
 
967
+ #: classes/admin/class-wcv-commissions-page.php:263
968
  msgid "Mark reversed"
969
  msgstr ""
970
 
971
+ #: classes/admin/class-wcv-commissions-page.php:264
972
+ msgid "Delete"
973
+ msgstr ""
974
+
975
+ #: classes/admin/class-wcv-commissions-page.php:310
976
  msgid "Filter"
977
  msgstr ""
978
 
979
+ #: classes/admin/class-wcv-commissions-page.php:319
980
  msgid "Clear"
981
  msgstr ""
982
 
983
+ #: classes/admin/class-wcv-commissions-page.php:321
984
  msgid "Export to CSV"
985
  msgstr ""
986
 
987
+ #: classes/admin/class-wcv-commissions-page.php:322
988
  msgid "Export Totals to CSV"
989
  msgstr ""
990
 
991
+ #: classes/admin/class-wcv-commissions-page.php:323
992
  msgid "Mark all paid"
993
  msgstr ""
994
 
995
+ #: classes/admin/class-wcv-commissions-page.php:394
996
  msgid "Show all Statuses"
997
  msgstr ""
998
 
999
+ #. translators: Filter by terms
1000
+ #: classes/admin/class-wcv-commissions-page.php:415
1001
+ msgid "Filter by %s"
1002
  msgstr ""
1003
 
1004
+ #: classes/admin/class-wcv-commissions-page.php:448
1005
  msgid "Commission marked paid."
1006
  msgstr ""
1007
 
1008
+ #: classes/admin/class-wcv-commissions-page.php:456
1009
  msgid "Commission marked due."
1010
  msgstr ""
1011
 
1012
+ #: classes/admin/class-wcv-commissions-page.php:464
1013
  msgid "Commission marked reversed."
1014
  msgstr ""
1015
 
1016
+ #: classes/admin/class-wcv-commissions-page.php:470
1017
+ msgid "Commission(s) deleted."
1018
+ msgstr ""
1019
+
1020
+ #: classes/admin/class-wcv-commissions-page.php:699
1021
  msgid "All"
1022
  msgstr ""
1023
 
1113
  msgid "Your account has not yet been approved to become a %s. When it is, you will receive an email telling you that your account is approved!"
1114
  msgstr ""
1115
 
1116
+ #: templates/dashboard/links.php:28, classes/front/dashboard/class-vendor-dashboard.php:365
1117
  msgid "View Your Store"
1118
  msgstr ""
1119
 
1120
+ #: templates/dashboard/links.php:29, classes/admin/settings/class-wcv-settings-display.php:254, classes/front/dashboard/class-vendor-dashboard.php:369
1121
  msgid "Store Settings"
1122
  msgstr ""
1123
 
1124
+ #: templates/dashboard/links.php:33, classes/front/dashboard/class-vendor-dashboard.php:378
1125
  msgid "Add New Product"
1126
  msgstr ""
1127
 
1128
+ #: templates/dashboard/links.php:35, classes/front/dashboard/class-vendor-dashboard.php:383
1129
  msgid "Edit Products"
1130
  msgstr ""
1131
 
1133
  msgid "Hide items"
1134
  msgstr ""
1135
 
1136
+ #: templates/dashboard/orders.php:24, templates/dashboard/orders.php:117
1137
  msgid "View items"
1138
  msgstr ""
1139
 
1141
  msgid "Links"
1142
  msgstr ""
1143
 
1144
+ #: templates/dashboard/orders.php:218
1145
  msgid "You have no orders during this period."
1146
  msgstr ""
1147
 
1148
+ #: templates/dashboard/orders.php:138
1149
  msgid "Tracking"
1150
  msgstr ""
1151
 
1241
  msgid "Price"
1242
  msgstr ""
1243
 
1244
+ #: templates/emails/notify-vendor-shipped.php:82, templates/emails/vendor-new-order.php:91
1245
  msgid "Customer details"
1246
  msgstr ""
1247
 
1248
+ #: templates/emails/notify-vendor-shipped.php:85, templates/emails/vendor-new-order.php:94
1249
  msgid "Email:"
1250
  msgstr ""
1251
 
1252
+ #: templates/emails/notify-vendor-shipped.php:88, templates/emails/vendor-new-order.php:97
1253
  msgid "Tel:"
1254
  msgstr ""
1255
 
1290
  msgid "Order #%s"
1291
  msgstr ""
1292
 
1293
+ #: templates/emails/vendor-order-details.php:102, templates/emails/plain/vendor-order-details.php:54
1294
  msgid "Note:"
1295
  msgstr ""
1296
 
1338
  msgid "[{blogname}] Your %s application has been {status}"
1339
  msgstr ""
1340
 
1341
+ #: classes/admin/emails/class-wc-approve-vendor.php:129, classes/admin/emails/class-wc-notify-admin.php:139, classes/admin/emails/class-wc-notify-shipped.php:170, classes/admin/emails/class-wc-notify-vendor.php:298, classes/admin/emails/class-wcv-admin-notify-application.php:141, classes/admin/emails/class-wcv-admin-notify-approved.php:146, classes/admin/emails/class-wcv-admin-notify-product.php:156, classes/admin/emails/class-wcv-admin-notify-shipped.php:144, classes/admin/emails/class-wcv-customer-notify-shipped.php:151, classes/admin/emails/class-wcv-vendor-notify-application.php:139, classes/admin/emails/class-wcv-vendor-notify-approved.php:148, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:187, classes/admin/emails/class-wcv-vendor-notify-denied.php:159, classes/admin/emails/class-wcv-vendor-notify-order.php:190, classes/gateways/WCV_Gateway_Test/class-wcv-gateway-test.php:62
1342
  msgid "Enable/Disable"
1343
  msgstr ""
1344
 
1345
+ #: classes/admin/emails/class-wc-approve-vendor.php:131, classes/admin/emails/class-wc-notify-admin.php:141, classes/admin/emails/class-wc-notify-shipped.php:172, classes/admin/emails/class-wc-notify-vendor.php:300, classes/admin/emails/class-wcv-admin-notify-application.php:143, classes/admin/emails/class-wcv-admin-notify-approved.php:148, classes/admin/emails/class-wcv-admin-notify-product.php:158, classes/admin/emails/class-wcv-admin-notify-shipped.php:146, classes/admin/emails/class-wcv-customer-notify-shipped.php:153, classes/admin/emails/class-wcv-vendor-notify-application.php:141, classes/admin/emails/class-wcv-vendor-notify-approved.php:150, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:189, classes/admin/emails/class-wcv-vendor-notify-denied.php:161, classes/admin/emails/class-wcv-vendor-notify-order.php:192
1346
  msgid "Enable this email notification"
1347
  msgstr ""
1348
 
1350
  msgid "Enter recipients (comma separated) for this email. Defaults to <code>%s</code>."
1351
  msgstr ""
1352
 
1353
+ #: classes/admin/emails/class-wc-approve-vendor.php:142, classes/admin/emails/class-wc-notify-admin.php:152, classes/admin/emails/class-wc-notify-shipped.php:176, classes/admin/emails/class-wc-notify-vendor.php:304, classes/admin/emails/class-wcv-admin-notify-application.php:155, classes/admin/emails/class-wcv-admin-notify-approved.php:160, classes/admin/emails/class-wcv-admin-notify-product.php:170, classes/admin/emails/class-wcv-admin-notify-shipped.php:158, classes/admin/emails/class-wcv-customer-notify-shipped.php:157, classes/admin/emails/class-wcv-vendor-notify-application.php:145, classes/admin/emails/class-wcv-vendor-notify-approved.php:154, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:193, classes/admin/emails/class-wcv-vendor-notify-denied.php:165, classes/admin/emails/class-wcv-vendor-notify-order.php:196
1354
  msgid "Subject"
1355
  msgstr ""
1356
 
1357
+ #: classes/admin/emails/class-wc-approve-vendor.php:144, classes/admin/emails/class-wc-notify-admin.php:154, classes/admin/emails/class-wc-notify-shipped.php:178, classes/admin/emails/class-wc-notify-vendor.php:306
1358
  msgid "This controls the email subject line. Leave blank to use the default subject: <code>%s</code>."
1359
  msgstr ""
1360
 
1361
+ #: classes/admin/emails/class-wc-approve-vendor.php:149, classes/admin/emails/class-wc-notify-admin.php:159, classes/admin/emails/class-wc-notify-shipped.php:183, classes/admin/emails/class-wc-notify-vendor.php:311
1362
  msgid "Email Heading"
1363
  msgstr ""
1364
 
1365
+ #: classes/admin/emails/class-wc-approve-vendor.php:151, classes/admin/emails/class-wc-notify-admin.php:161, classes/admin/emails/class-wc-notify-shipped.php:185, classes/admin/emails/class-wc-notify-vendor.php:313
1366
  msgid "This controls the main heading contained within the email notification. Leave blank to use the default heading: <code>%s</code>."
1367
  msgstr ""
1368
 
1369
+ #: classes/admin/emails/class-wc-approve-vendor.php:156, classes/admin/emails/class-wc-notify-admin.php:166, classes/admin/emails/class-wc-notify-shipped.php:190, classes/admin/emails/class-wc-notify-vendor.php:324, classes/admin/emails/class-wcv-admin-notify-application.php:185, classes/admin/emails/class-wcv-admin-notify-approved.php:190, classes/admin/emails/class-wcv-admin-notify-product.php:188, classes/admin/emails/class-wcv-admin-notify-shipped.php:176, classes/admin/emails/class-wcv-customer-notify-shipped.php:175, classes/admin/emails/class-wcv-vendor-notify-application.php:163, classes/admin/emails/class-wcv-vendor-notify-approved.php:181, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:225, classes/admin/emails/class-wcv-vendor-notify-denied.php:200, classes/admin/emails/class-wcv-vendor-notify-order.php:234
1370
  msgid "Email type"
1371
  msgstr ""
1372
 
1373
+ #: classes/admin/emails/class-wc-approve-vendor.php:158, classes/admin/emails/class-wc-notify-admin.php:168, classes/admin/emails/class-wc-notify-shipped.php:192, classes/admin/emails/class-wc-notify-vendor.php:326, classes/admin/emails/class-wcv-admin-notify-application.php:187, classes/admin/emails/class-wcv-admin-notify-approved.php:192, classes/admin/emails/class-wcv-admin-notify-product.php:190, classes/admin/emails/class-wcv-admin-notify-shipped.php:178, classes/admin/emails/class-wcv-customer-notify-shipped.php:177, classes/admin/emails/class-wcv-vendor-notify-application.php:165, classes/admin/emails/class-wcv-vendor-notify-approved.php:183, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:227, classes/admin/emails/class-wcv-vendor-notify-denied.php:202, classes/admin/emails/class-wcv-vendor-notify-order.php:236
1374
  msgid "Choose which format of email to send."
1375
  msgstr ""
1376
 
1377
+ #: classes/admin/emails/class-wc-approve-vendor.php:162, classes/admin/emails/class-wc-notify-admin.php:172, classes/admin/emails/class-wc-notify-shipped.php:196, classes/admin/emails/class-wc-notify-vendor.php:330
1378
  msgid "Plain text"
1379
  msgstr ""
1380
 
1381
+ #: classes/admin/emails/class-wc-approve-vendor.php:163, classes/admin/emails/class-wc-notify-admin.php:173, classes/admin/emails/class-wc-notify-shipped.php:197, classes/admin/emails/class-wc-notify-vendor.php:331
1382
  msgid "HTML"
1383
  msgstr ""
1384
 
1385
+ #: classes/admin/emails/class-wc-approve-vendor.php:164, classes/admin/emails/class-wc-notify-admin.php:174, classes/admin/emails/class-wc-notify-shipped.php:198, classes/admin/emails/class-wc-notify-vendor.php:332
1386
  msgid "Multipart"
1387
  msgstr ""
1388
 
1442
  msgid "Commission Subtotal:"
1443
  msgstr ""
1444
 
1445
+ #: classes/admin/emails/class-wc-notify-vendor.php:134
1446
  msgid "Tax Subtotal:"
1447
  msgstr ""
1448
 
1449
+ #: classes/admin/emails/class-wc-notify-vendor.php:145
1450
  msgid "Shipping Subtotal:"
1451
  msgstr ""
1452
 
1453
+ #: classes/admin/emails/class-wc-notify-vendor.php:318
1454
  msgid "Product Totals"
1455
  msgstr ""
1456
 
1457
+ #: classes/admin/emails/class-wc-notify-vendor.php:320
1458
  msgid "Show the commission due/paid as the product totals instead of the product prices."
1459
  msgstr ""
1460
 
1503
  #. translators: %s: list of placeholders
1504
  #. translators: %s: list of placeholders
1505
  #. translators: %s: list of placeholders
1506
+ #: classes/admin/emails/class-wcv-admin-notify-application.php:159, classes/admin/emails/class-wcv-admin-notify-application.php:168, classes/admin/emails/class-wcv-admin-notify-approved.php:164, classes/admin/emails/class-wcv-admin-notify-approved.php:173, classes/admin/emails/class-wcv-admin-notify-product.php:174, classes/admin/emails/class-wcv-admin-notify-product.php:183, classes/admin/emails/class-wcv-admin-notify-shipped.php:162, classes/admin/emails/class-wcv-admin-notify-shipped.php:171, classes/admin/emails/class-wcv-customer-notify-shipped.php:161, classes/admin/emails/class-wcv-customer-notify-shipped.php:170, classes/admin/emails/class-wcv-vendor-notify-application.php:149, classes/admin/emails/class-wcv-vendor-notify-application.php:158, classes/admin/emails/class-wcv-vendor-notify-approved.php:158, classes/admin/emails/class-wcv-vendor-notify-approved.php:176, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:197, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:206, classes/admin/emails/class-wcv-vendor-notify-denied.php:169, classes/admin/emails/class-wcv-vendor-notify-denied.php:178, classes/admin/emails/class-wcv-vendor-notify-denied.php:195, classes/admin/emails/class-wcv-vendor-notify-order.php:200, classes/admin/emails/class-wcv-vendor-notify-order.php:209
1507
  msgid "Available placeholders: %s"
1508
  msgstr ""
1509
 
1510
+ #: classes/admin/emails/class-wcv-admin-notify-application.php:164, classes/admin/emails/class-wcv-admin-notify-approved.php:169, classes/admin/emails/class-wcv-admin-notify-product.php:179, classes/admin/emails/class-wcv-admin-notify-shipped.php:167, classes/admin/emails/class-wcv-customer-notify-shipped.php:166, classes/admin/emails/class-wcv-vendor-notify-application.php:154, classes/admin/emails/class-wcv-vendor-notify-approved.php:172, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:202, classes/admin/emails/class-wcv-vendor-notify-denied.php:191, classes/admin/emails/class-wcv-vendor-notify-order.php:205
1511
  msgid "Email heading"
1512
  msgstr ""
1513
 
1635
  msgid "Order Cancelled"
1636
  msgstr ""
1637
 
1638
+ #: classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:211, classes/admin/emails/class-wcv-vendor-notify-order.php:214
1639
  msgid "Totals Display"
1640
  msgstr ""
1641
 
1642
+ #: classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:213, classes/admin/emails/class-wcv-vendor-notify-order.php:216
1643
  msgid "Choose how to display the product totals. Including commission or without or no totals at all."
1644
  msgstr ""
1645
 
1646
+ #: classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:217, classes/admin/emails/class-wcv-vendor-notify-order.php:220
1647
  msgid "Both"
1648
  msgstr ""
1649
 
1716
  msgstr ""
1717
 
1718
  #: classes/admin/settings/class-wcv-settings-advanced.php:72
1719
+ msgid "Delete All Data"
1720
  msgstr ""
1721
 
1722
  #: classes/admin/settings/class-wcv-settings-advanced.php:73
1724
  msgstr ""
1725
 
1726
  #: classes/admin/settings/class-wcv-settings-advanced.php:79
1727
+ msgid "Delete Custom Table"
1728
  msgstr ""
1729
 
1730
  #: classes/admin/settings/class-wcv-settings-advanced.php:80
1732
  msgstr ""
1733
 
1734
  #: classes/admin/settings/class-wcv-settings-advanced.php:86
1735
+ msgid "Delete Settings Options"
1736
  msgstr ""
1737
 
1738
  #: classes/admin/settings/class-wcv-settings-advanced.php:87
1748
  msgstr ""
1749
 
1750
  #: classes/admin/settings/class-wcv-settings-advanced.php:100
1751
+ msgid "Remove Custom Roles"
1752
  msgstr ""
1753
 
1754
  #: classes/admin/settings/class-wcv-settings-advanced.php:101
1828
  msgstr ""
1829
 
1830
  #: classes/admin/settings/class-wcv-settings-capabilities.php:176
1831
+ msgid "Add Order Notes"
1832
  msgstr ""
1833
 
1834
  #: classes/admin/settings/class-wcv-settings-capabilities.php:177, classes/admin/views/setup/capabilities.php:115
2118
  msgid "Change all references to vendors to this term"
2119
  msgstr ""
2120
 
2121
+ #: classes/admin/settings/class-wcv-settings-display.php:125, classes/admin/settings/class-wcv-settings-display.php:146
2122
+ msgid "Sold By"
2123
  msgstr ""
2124
 
2125
  #: classes/admin/settings/class-wcv-settings-display.php:126
2126
  msgid "Enable sold by labels"
2127
  msgstr ""
2128
 
2129
+ #: classes/admin/settings/class-wcv-settings-display.php:127
2130
  msgid "This enables the sold by labels used to show which %s shop the product belongs to"
2131
  msgstr ""
2132
 
2133
  #: classes/admin/settings/class-wcv-settings-display.php:134
2134
+ msgid "Sold By Separator"
2135
  msgstr ""
2136
 
2137
  #: classes/admin/settings/class-wcv-settings-display.php:135
2143
  msgstr ""
2144
 
2145
  #: classes/admin/settings/class-wcv-settings-display.php:142
2146
+ msgid "Sold By Label"
2147
  msgstr ""
2148
 
2149
  #: classes/admin/settings/class-wcv-settings-display.php:143
2150
  msgid "The sold by label"
2151
  msgstr ""
2152
 
 
 
 
 
2153
  #: classes/admin/settings/class-wcv-settings-display.php:150
2154
+ msgid "Become A %s"
2155
  msgstr ""
2156
 
2157
  #: classes/admin/settings/class-wcv-settings-display.php:151
2159
  msgstr ""
2160
 
2161
  #: classes/admin/settings/class-wcv-settings-display.php:158
2162
+ msgid "Become A %s Label"
2163
  msgstr ""
2164
 
2165
  #: classes/admin/settings/class-wcv-settings-display.php:159
2179
  msgstr ""
2180
 
2181
  #: classes/admin/settings/class-wcv-settings-display.php:174
2182
+ msgid "%s Store Info Label"
2183
  msgstr ""
2184
 
2185
  #: classes/admin/settings/class-wcv-settings-display.php:175
2199
  msgstr ""
2200
 
2201
  #: classes/admin/settings/class-wcv-settings-display.php:73
2202
+ msgid "You can add CSS in this textarea, which will be loaded on the WooCommerce product edit page for %s in the WordPress admin."
2203
+ msgstr ""
2204
+
2205
+ #: classes/admin/settings/class-wcv-settings-display.php:74
2206
+ msgid "This will output custom CSS on the product edit page "
2207
  msgstr ""
2208
 
2209
  #: classes/admin/settings/class-wcv-settings-display.php:81
readme.txt CHANGED
@@ -4,12 +4,12 @@ Tags: WooCommerce multivendor marketplace, multivendor marketplace, multi seller
4
  Donate link: https://www.wcvendors.com/
5
  Author URI: https://www.wcvendors.com/
6
  Plugin URI: https://www.wcvendors.com/
7
- Requires at least: 5.0.0
8
  Requires PHP: 7.2
9
- Tested up to: 5.7
10
  WC requires at least: 4.0.0
11
- WC tested up to: 5.2
12
- Stable tag: 2.2.4
13
  License: GPLv2 or later
14
 
15
  The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best support available.
@@ -18,8 +18,8 @@ The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best
18
 
19
  = WC Vendors Marketplace plugin for WooCommerce =
20
 
21
- - Try our free demo today: [Launch your own demo today](http://www.wcvendors.com/home/demo/?utm_campaign=wporg_details&utm_source=wporg)
22
- - Learn about WC Vendors Pro: [All the features of WC Vendors Pro](https://www.wcvendors.com/home/features/?utm_campaign=wporg_details&utm_source=wporg)
23
 
24
  = POWERED BY WOOCOMMERCE =
25
 
@@ -264,6 +264,19 @@ WC Vendors Marketplace does not work with multisite WordPress. There are no plan
264
 
265
  == Changelog ==
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  = Version 2.2.4 - 25th March 2021 =
268
 
269
  * Added: New column on commissions page for shipped (#743)
4
  Donate link: https://www.wcvendors.com/
5
  Author URI: https://www.wcvendors.com/
6
  Plugin URI: https://www.wcvendors.com/
7
+ Requires at least: 5.3.0
8
  Requires PHP: 7.2
9
+ Tested up to: 5.8
10
  WC requires at least: 4.0.0
11
+ WC tested up to: 5.5.1
12
+ Stable tag: 2.3.0
13
  License: GPLv2 or later
14
 
15
  The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best support available.
18
 
19
  = WC Vendors Marketplace plugin for WooCommerce =
20
 
21
+ - Try our free demo today: [Launch your own demo today](http://www.wcvendors.com/home/demo/?utm_campaign=wporg_details&utm_source=wporg&utm_medium=web)
22
+ - Learn about WC Vendors Pro: [All the features of WC Vendors Pro](https://www.wcvendors.com/home/features/?utm_campaign=wporg_details&utm_source=wporg&utm_medium=web)
23
 
24
  = POWERED BY WOOCOMMERCE =
25
 
264
 
265
  == Changelog ==
266
 
267
+ = Verison 2.3.0 - 19th July 2021 =
268
+
269
+ * Added: New filter to allow custom order visibilities (#754)
270
+ * Added: Ability to delete commission rows (#765)
271
+ * Updated: UI titles to use title case (#768)
272
+ * Updated: Various strings in the codebase (#767)
273
+ * Updated: Disabled cron system if deprecated PayPal settings not active (#769)
274
+ * Updated: Action/Filter names need to be made consistent #716 (#760)
275
+ * Fixed: Orders in order template #757 (#761)
276
+ * Fixed: Vendor sales report table should get hidden as per permission set by admin. #756 (#758)
277
+ * Fixed: Wordpress REST API (Pages asset) & WC Vendors Marketplace (#770)
278
+ * Fixed: Call to a member function get_id() on boolean #745 (#755)
279
+
280
  = Version 2.2.4 - 25th March 2021 =
281
 
282
  * Added: New column on commissions page for shipped (#743)
templates/dashboard/orders.php CHANGED
@@ -79,11 +79,10 @@ if ( function_exists( 'wc_print_notices' ) ) {
79
  foreach ( $items as $key => $value ) {
80
  if ( in_array( $value['variation_id'], $valid_items ) || in_array( $value['product_id'], $valid_items ) ) {
81
  $valid[] = $value;
 
 
 
82
  }
83
- // See if product needs shipping
84
- $product = new WC_Product( $value['product_id'] );
85
- $needs_shipping = ( ! $product->needs_shipping() || $product->is_downloadable( 'yes' ) ) ? false : true;
86
-
87
  }
88
 
89
  $shippers = (array) get_post_meta( $order_id, 'wc_pv_shipped', true );
@@ -101,8 +100,11 @@ if ( function_exists( 'wc_print_notices' ) ) {
101
  <td>
102
  <?php
103
  $sum = WCV_Queries::sum_for_orders( array( $order_id ), array( 'vendor_id' => get_current_user_id() ) );
104
- $total = $sum[0]->line_total;
105
- $totals += $total;
 
 
 
106
  echo wc_price( $total );
107
  ?>
108
  </td>
79
  foreach ( $items as $key => $value ) {
80
  if ( in_array( $value['variation_id'], $valid_items ) || in_array( $value['product_id'], $valid_items ) ) {
81
  $valid[] = $value;
82
+ // See if product needs shipping.
83
+ $product = wc_get_product( $value['product_id'] );
84
+ $needs_shipping = ( ! $product->needs_shipping() || $product->is_downloadable( 'yes' ) ) ? $needs_shipping : true;
85
  }
 
 
 
 
86
  }
87
 
88
  $shippers = (array) get_post_meta( $order_id, 'wc_pv_shipped', true );
100
  <td>
101
  <?php
102
  $sum = WCV_Queries::sum_for_orders( array( $order_id ), array( 'vendor_id' => get_current_user_id() ) );
103
+ $total = 0;
104
+ if ( 0 < count( $sum ) ) {
105
+ $total = $sum[0]->line_total;
106
+ $totals += $total;
107
+ }
108
  echo wc_price( $total );
109
  ?>
110
  </td>
templates/emails/plain/vendor-order-details.php CHANGED
@@ -18,7 +18,8 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai
18
  /* translators: %s: Order ID. */
19
  echo wp_kses_post( wc_strtoupper( sprintf( __( 'Order number: %s', 'wc-vendors' ), $order->get_order_number() ) ) ) . "\n";
20
  echo wc_format_datetime( $order->get_date_created() ) . "\n"; // WPCS: XSS ok.
21
- do_action( 'wcv_email_vendor_notify_order_before_order_items' ) . "\n";
 
22
  echo "\n" . wcv_get_vendor_order_items(
23
  $order, array( // WPCS: XSS ok.
24
  'show_sku' => $sent_to_vendor,
@@ -32,12 +33,14 @@ echo "\n" . wcv_get_vendor_order_items(
32
  'sent_to_vendor' => $sent_to_vendor,
33
  )
34
  );
35
- do_action( 'wcv_email_vendor_notify_order_after_order_items' ) . "\n";
 
36
 
37
  echo "==========\n\n";
38
 
39
  $totals = wcv_get_vendor_item_totals( $order, $vendor_items, $vendor_id, $email, $totals_display );
40
- $totals = apply_filters( 'wcv_vendor_notify_order_item_totals', $totals, $order, $vendor_items, $vendor_id, $email, $totals_display );
 
41
 
42
  if ( $totals ) {
43
  foreach ( $totals as $total ) {
@@ -46,9 +49,11 @@ if ( $totals ) {
46
  }
47
 
48
  if ( $order->get_customer_note() ) {
49
- do_action( 'wcv_vendor_notify_order_before_customer_note' ) . "\n";
 
50
  echo esc_html__( 'Note:', 'wc-vendors' ) . "\t " . wp_kses_post( wptexturize( $order->get_customer_note() ) ) . "\n";
51
- do_action( 'wcv_vendor_notify_order_after_customer_note' ) . "\n";
 
52
  }
53
 
54
 
18
  /* translators: %s: Order ID. */
19
  echo wp_kses_post( wc_strtoupper( sprintf( __( 'Order number: %s', 'wc-vendors' ), $order->get_order_number() ) ) ) . "\n";
20
  echo wc_format_datetime( $order->get_date_created() ) . "\n"; // WPCS: XSS ok.
21
+ do_action_deprecated( 'wcv_email_vendor_notify_order_before_order_items', array(), '2.3.0', 'wcvendors_email_vendor_notify_order_before_order_items' ) . "\n";
22
+ do_action( 'wcvendors_email_vendor_notify_order_before_order_items' ) . "\n";
23
  echo "\n" . wcv_get_vendor_order_items(
24
  $order, array( // WPCS: XSS ok.
25
  'show_sku' => $sent_to_vendor,
33
  'sent_to_vendor' => $sent_to_vendor,
34
  )
35
  );
36
+ do_action_deprecated( 'wcv_email_vendor_notify_order_after_order_items', array(), '2.3.0', 'wcvendors_email_vendor_notify_order_after_order_items' ) . "\n";
37
+ do_action( 'wcvendors_email_vendor_notify_order_after_order_items' ) . "\n";
38
 
39
  echo "==========\n\n";
40
 
41
  $totals = wcv_get_vendor_item_totals( $order, $vendor_items, $vendor_id, $email, $totals_display );
42
+ $totals = apply_filters_deprecated( 'wcv_vendor_notify_order_item_totals', array( $totals, $order, $vendor_items, $vendor_id, $email, $totals_display ), '2.3.0', 'wcvendors_vendor_notify_order_item_totals' );
43
+ $totals = apply_filters( 'wcvendors_vendor_notify_order_item_totals', $totals, $order, $vendor_items, $vendor_id, $email, $totals_display );
44
 
45
  if ( $totals ) {
46
  foreach ( $totals as $total ) {
49
  }
50
 
51
  if ( $order->get_customer_note() ) {
52
+ do_action_deprecated( 'wcv_vendor_notify_order_before_customer_note', array(), '2.3.0', 'wcvendors_vendor_notify_order_before_customer_note' ) . "\n";
53
+ do_action( 'wcvendors_vendor_notify_order_before_customer_note' ) . "\n";
54
  echo esc_html__( 'Note:', 'wc-vendors' ) . "\t " . wp_kses_post( wptexturize( $order->get_customer_note() ) ) . "\n";
55
+ do_action_deprecated( 'wcv_vendor_notify_order_after_customer_note', array(), '2.3.0', 'wcvendors_vendor_notify_order_after_customer_note' ) . "\n";
56
+ do_action( 'wcvendors_vendor_notify_order_after_customer_note' ) . "\n";
57
  }
58
 
59
 
templates/emails/vendor-new-order.php CHANGED
@@ -38,7 +38,8 @@ $order_date = $order->get_date_created();
38
  </tr>
39
  </thead>
40
  <tbody>
41
- <?php do_action( 'wcv_after_vendor_new_order_items' ); ?>
 
42
  <?php
43
  echo wc_get_email_order_items(
44
  $order, array(
@@ -50,7 +51,8 @@ $order_date = $order->get_date_created();
50
  )
51
  );
52
  ?>
53
- <?php do_action( 'wcv_after_vendor_new_order_items' ); ?>
 
54
  </tbody>
55
  <tfoot>
56
  <?php
38
  </tr>
39
  </thead>
40
  <tbody>
41
+ <?php do_action_deprecated( 'wcv_before_vendor_new_order_items', array(), '2.3.0', 'wcvendors_before_vendor_new_order_items' ); ?>
42
+ <?php do_action( 'wcvendors_before_vendor_new_order_items' ); ?>
43
  <?php
44
  echo wc_get_email_order_items(
45
  $order, array(
51
  )
52
  );
53
  ?>
54
+ <?php do_action_deprecated( 'wcv_after_vendor_new_order_items', array(), '2.3.0', 'wcvendors_after_vendor_new_order_items' ); ?>
55
+ <?php do_action( 'wcvendors_after_vendor_new_order_items' ); ?>
56
  </tbody>
57
  <tfoot>
58
  <?php
templates/emails/vendor-order-details.php CHANGED
@@ -50,7 +50,8 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai
50
  </tr>
51
  </thead>
52
  <tbody>
53
- <?php do_action( 'wcv_email_vendor_notify_order_before_order_items', $order, $sent_to_admin, $plain_text, $email ); ?>
 
54
  <?php
55
  echo wcv_get_vendor_order_items(
56
  $order, array( // WPCS: XSS ok.
@@ -66,13 +67,15 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai
66
  )
67
  );
68
  ?>
69
- <?php do_action( 'wcv_email_vendor_notify_order_after_order_items', $order, $sent_to_admin, $plain_text, $email ); ?>
 
70
  </tbody>
71
  <tfoot>
72
  <?php
73
  $totals = wcv_get_vendor_item_totals( $order, $vendor_items, $vendor_id, $email, $totals_display );
74
 
75
- do_action( 'wcv_before_vendor_item_totals', $order, $vendor_id, $email, $totals, $colspan, $text_align );
 
76
 
77
  if ( $totals ) {
78
  $i = 0;
@@ -89,7 +92,8 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai
89
  }
90
  }
91
 
92
- do_action( 'wcv_before_vendor_item_totals', $order, $vendor_id, $email, $totals, $colspan, $text_align );
 
93
 
94
  if ( $order->get_customer_note() ) {
95
  ?>
@@ -99,7 +103,8 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai
99
  <td class="td"
100
  style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
101
  </tr>
102
- <?php do_action( 'wcv_vendor_notify_order_after_customer_note', $order, $vendor_id, $email ); ?>
 
103
  <?php
104
  }
105
  ?>
50
  </tr>
51
  </thead>
52
  <tbody>
53
+ <?php do_action_deprecated( 'wcv_email_vendor_notify_order_before_order_items', array( $order, $sent_to_admin, $plain_text, $email ), '2.3.0', 'wcvendors_email_vendor_notify_order_before_order_items' ); ?>
54
+ <?php do_action( 'wcvendors_email_vendor_notify_order_before_order_items', $order, $sent_to_admin, $plain_text, $email ); ?>
55
  <?php
56
  echo wcv_get_vendor_order_items(
57
  $order, array( // WPCS: XSS ok.
67
  )
68
  );
69
  ?>
70
+ <?php do_action_deprecated( 'wcv_email_vendor_notify_order_after_order_items', array( $order, $sent_to_admin, $plain_text, $email ), '2.3.0', 'wcvendors_email_vendor_notify_order_after_order_items' ); ?>
71
+ <?php do_action( 'wcvendors_email_vendor_notify_order_after_order_items', $order, $sent_to_admin, $plain_text, $email ); ?>
72
  </tbody>
73
  <tfoot>
74
  <?php
75
  $totals = wcv_get_vendor_item_totals( $order, $vendor_items, $vendor_id, $email, $totals_display );
76
 
77
+ do_action_deprecated( 'wcv_before_vendor_item_totals', array( $order, $vendor_id, $email, $totals, $colspan, $text_align ), '2.3.0', 'wcvendors_before_vendor_item_totals' );
78
+ do_action( 'wcvendors_before_vendor_item_totals', $order, $vendor_id, $email, $totals, $colspan, $text_align );
79
 
80
  if ( $totals ) {
81
  $i = 0;
92
  }
93
  }
94
 
95
+ do_action_deprecated( 'wcv_after_vendor_item_totals', array( $order, $vendor_id, $email, $totals, $colspan, $text_align ), '2.3.0', 'wcvendors_after_vendor_item_totals' );
96
+ do_action( 'wcvendors_after_vendor_item_totals', $order, $vendor_id, $email, $totals, $colspan, $text_align );
97
 
98
  if ( $order->get_customer_note() ) {
99
  ?>
103
  <td class="td"
104
  style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
105
  </tr>
106
+ <?php do_action_deprecated( 'wcv_vendor_notify_order_after_customer_note', array( $order, $vendor_id, $email ), '2.3.0', 'wcvendors_vendor_notify_order_after_customer_note' ); ?>
107
+ <?php do_action( 'wcvendors_vendor_notify_order_after_customer_note', $order, $vendor_id, $email ); ?>
108
  <?php
109
  }
110
  ?>