WC Vendors - Version 2.1.17

Version Description

Download this release

Release Info

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

Code changes from version 2.1.16 to 2.1.17

assets/js/admin/wcv-vendor-select.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ var debouncedInit = debounce(initSelect2, 100);
3
+
4
+ $(document).on('ready', initSelect2);
5
+ $('button.editinline').on('click', debouncedInit);
6
+ $('#doaction').on('click', function () {
7
+ if ($('#bulk-action-selector-top').val() === 'edit')
8
+ debouncedInit();
9
+ });
10
+ $('#doaction2').on('click', function () {
11
+ if ($('#bulk-action-selector-bottom').val() === 'edit')
12
+ debouncedInit();
13
+ });
14
+
15
+ function initSelect2() {
16
+ var $selectBox = $('.wcv-vendor-select:visible');
17
+
18
+ if ($selectBox.find('option').length < 100) {
19
+ $selectBox.select2();
20
+ } else {
21
+ $selectBox.select2({
22
+ minimumInputLength: 4,
23
+ ajax: {
24
+ url: ajaxurl,
25
+ type: 'POST',
26
+ dataType: "json",
27
+ data: function (params) {
28
+ return {
29
+ action: 'wcv_search_vendors',
30
+ term: params.term
31
+ }
32
+ }
33
+ }
34
+ });
35
+ }
36
+ $('#bulk-edit .cancel').on('click', function() {
37
+ $selectBox.select2('destroy');
38
+ });
39
+ }
40
+
41
+ function debounce(func, wait, immediate) {
42
+ var timeout;
43
+ return function () {
44
+ var context = this, args = arguments;
45
+ var later = function () {
46
+ timeout = null;
47
+ if (!immediate) func.apply(context, args);
48
+ };
49
+ var callNow = immediate && !timeout;
50
+ clearTimeout(timeout);
51
+ timeout = setTimeout(later, wait);
52
+ if (callNow) func.apply(context, args);
53
+ };
54
+ }
55
+ })(jQuery);
assets/js/wcv-admin-quick-edit.js CHANGED
@@ -33,8 +33,8 @@ jQuery(function(){
33
  });
34
 
35
  jQuery( document ).ready( function() {
36
- var $inputFeatured = $( '.featured input[name="_featured"]' );
37
- var $selectFetured = $( 'select.featured' ).closest( 'label' );
38
 
39
  if ( wcv_quick_edit_params.allow_featured == 'no' ) {
40
  $inputFeatured.parent().hide();
33
  });
34
 
35
  jQuery( document ).ready( function() {
36
+ var $inputFeatured = jQuery( '.featured input[name="_featured"]' );
37
+ var $selectFetured = jQuery( 'select.featured' ).closest( 'label' );
38
 
39
  if ( wcv_quick_edit_params.allow_featured == 'no' ) {
40
  $inputFeatured.parent().hide();
changelog.txt CHANGED
@@ -1,5 +1,14 @@
1
  Changelog for WC Vendors Marketplace
2
 
 
 
 
 
 
 
 
 
 
3
  Version 2.1.16 - 16th October 2019
4
 
5
  * Updated: Extensions page product links
1
  Changelog for WC Vendors Marketplace
2
 
3
+ Version 2.1.17 - 2nd January 2020
4
+
5
+ * Added: New template tag for sold by link (#602)
6
+ * Updated: Disabled PayPal Adaptive payments #596
7
+ * Fixed: text domain on strings
8
+ * Fixed: Performance issue in WP-Admin area in large marketplaces #604 (#608)
9
+ * Fixed: CircleCI (#606)
10
+ * Fixed: Sold by label spacing on single product page #597
11
+
12
  Version 2.1.16 - 16th October 2019
13
 
14
  * Updated: Extensions page product links
class-wc-vendors.php CHANGED
@@ -7,18 +7,18 @@
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
- * Version: 2.1.16
11
  * Requires at least: 5.0.0
12
- * Tested up to: 5.2.4
13
  * WC requires at least: 3.3.0
14
- * WC tested up to: 3.8.0
15
  *
16
  * Text Domain: wc-vendors
17
  * Domain Path: /languages/
18
  *
19
  * @category Plugin
20
  * @copyright Copyright © 2012 Matt Gates
21
- * @copyright Copyright © 2019 WC Vendors
22
  * @author Matt Gates, WC Vendors
23
  * @package WCVendors
24
  * @license GPL2
@@ -97,7 +97,7 @@ if ( wcv_is_woocommerce_activated() ) {
97
  */
98
  class WC_Vendors {
99
 
100
- public $version = '2.1.16';
101
 
102
  /**
103
  * @var
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
+ * Version: 2.1.17
11
  * Requires at least: 5.0.0
12
+ * Tested up to: 5.3.2
13
  * WC requires at least: 3.3.0
14
+ * WC tested up to: 3.8.1
15
  *
16
  * Text Domain: wc-vendors
17
  * Domain Path: /languages/
18
  *
19
  * @category Plugin
20
  * @copyright Copyright © 2012 Matt Gates
21
+ * @copyright Copyright © 2020 WC Vendors
22
  * @author Matt Gates, WC Vendors
23
  * @package WCVendors
24
  * @license GPL2
97
  */
98
  class WC_Vendors {
99
 
100
+ public $version = '2.1.17';
101
 
102
  /**
103
  * @var
classes/admin/class-admin-menus.php CHANGED
@@ -109,8 +109,8 @@ class WCVendors_Admin_Menus {
109
 
110
  $settings_page = add_submenu_page(
111
  'wc-vendors',
112
- __( 'WC Vendors Settings', 'wcvendors' ),
113
- __( 'Settings', 'wcvendors' ),
114
  'manage_woocommerce',
115
  'wcv-settings',
116
  array( $this, 'settings_page' )
109
 
110
  $settings_page = add_submenu_page(
111
  'wc-vendors',
112
+ __( 'WC Vendors Settings', 'wc-vendors' ),
113
+ __( 'Settings', 'wc-vendors' ),
114
  'manage_woocommerce',
115
  'wcv-settings',
116
  array( $this, 'settings_page' )
classes/admin/class-product-meta.php CHANGED
@@ -42,8 +42,14 @@ class WCV_Product_Meta {
42
 
43
  add_action( 'woocommerce_process_product_meta', array( $this, 'update_post_media_author' ) );
44
 
 
 
 
45
  }
46
 
 
 
 
47
 
48
  /**
49
  * Change the "Author" metabox to "Vendor"
@@ -95,62 +101,48 @@ class WCV_Product_Meta {
95
  * Create a selectbox to display vendor & administrator roles
96
  *
97
  * @param array $args
 
98
  *
99
- * @return html
100
  */
101
- public function vendor_selectbox( $args ) {
 
 
 
 
 
 
102
 
103
- $default_args = array(
104
- 'placeholder',
105
- 'id',
106
- 'class',
107
- );
108
-
109
- foreach ( $default_args as $key ) {
110
- if ( ! is_array( $key ) && empty( $args[ $key ] ) ) {
111
- $args[ $key ] = '';
112
- } elseif ( is_array( $key ) ) {
113
- foreach ( $key as $val ) {
114
- $args[ $key ][ $val ] = esc_attr( $args[ $key ][ $val ] );
115
- }
116
- }
117
- }
118
  extract( $args );
119
 
120
- $roles = array( 'vendor', 'administrator' );
121
- $user_args = array( 'fields' => array( 'ID', 'display_name' ) );
122
-
123
- $output = "<select style='width:200px;' name='$id' id='$id' class='$class' data-placeholder='$placeholder'>\n";
124
- $output .= "\t<option value=''></option>\n";
125
-
126
- foreach ( $roles as $role ) {
127
 
128
- $new_args = $user_args;
129
- $new_args['role'] = $role;
130
- $users = get_users( $new_args );
131
 
132
- if ( empty( $users ) ) {
133
- continue;
134
- }
135
- $output .= wcv_vendor_drop_down_options( $users, $selected );
136
  }
137
  $output .= '</select>';
138
 
139
- $output .= '<br class="clear" />';
 
 
 
140
  $output .= '<p><label class="product_media_author_override">';
141
  $output .= '<input name="product_media_author_override" type="checkbox" /> ';
142
  $output .= sprintf( __( 'Assign media to %s', 'wc-vendors' ), wcv_get_vendor_name() );
143
  $output .= '</label></p>';
144
 
145
- // Convert this selectbox with select2
146
- $output
147
- .= '
148
- <script type="text/javascript">jQuery(function() { jQuery("#' . $id . '").select2(); } );</script>';
149
-
150
  return $output;
151
  }
152
 
153
-
154
  /**
155
  * Save commission rate of a product
156
  *
@@ -208,15 +200,15 @@ class WCV_Product_Meta {
208
  <p class='form-field commission_rate_field'>
209
  <label for='pv_commission_rate'><?php _e( 'Commission', 'wc-vendors' ); ?> (%)</label>
210
  <input
211
- type='number'
212
- id='pv_commission_rate'
213
- name='pv_commission_rate'
214
- class='short'
215
- max="100"
216
- min="0"
217
- step='any'
218
- placeholder='<?php _e( 'Leave blank for default', 'wc-vendors' ); ?>'
219
- value="<?php echo get_post_meta( $post->ID, 'pv_commission_rate', true ); ?>"
220
  />
221
  </p>
222
 
@@ -244,27 +236,13 @@ class WCV_Product_Meta {
244
  public function display_vendor_dropdown_quick_edit() {
245
 
246
  global $post;
247
- $selected = $post->post_author;
248
-
249
- $roles = array( 'vendor', 'administrator' );
250
- $user_args = array( 'fields' => array( 'ID', 'display_name' ) );
251
-
252
- $output = "<select style='width:200px;' name='post_author-new' class='select'>\n";
253
-
254
- foreach ( $roles as $role ) {
255
-
256
- $new_args = $user_args;
257
- $new_args['role'] = $role;
258
- $users = get_users( $new_args );
259
-
260
- if ( empty( $users ) ) {
261
- continue;
262
- }
263
- $output .= wcv_vendor_drop_down_options( $users, $selected );
264
- }
265
- $output .= '</select>';
266
-
267
 
 
 
 
 
 
 
268
  ?>
269
  <br class="clear"/>
270
  <label class="inline-edit-author-new">
@@ -311,30 +289,11 @@ class WCV_Product_Meta {
311
  * @version 2.1.14
312
  */
313
  public function display_vendor_dropdown_bulk_edit() {
314
-
315
- global $post;
316
- $selected = '';
317
-
318
- $roles = array( 'vendor', 'administrator' );
319
- $user_args = array( 'fields' => array( 'ID', 'display_name' ) );
320
-
321
- $output = "<select style='width:200px;' name='vendor' class='select'>\n";
322
- $output .= '<option value=""> '. __('— No change —', 'wc-vendors') . '</option>';
323
-
324
- foreach ( $roles as $role ) {
325
-
326
- $new_args = $user_args;
327
- $new_args['role'] = $role;
328
- $users = get_users( $new_args );
329
-
330
- if ( empty( $users ) ) {
331
- continue;
332
- }
333
- $output .= wcv_vendor_drop_down_options( $users, '' );
334
- }
335
- $output .= '</select>';
336
-
337
-
338
  ?>
339
  <br class="clear"/>
340
  <label class="inline-edit-author-new">
@@ -358,8 +317,8 @@ class WCV_Product_Meta {
358
  $update_vendor = array(
359
  'ID' => $product->get_id(),
360
  'post_author' => $vendor,
361
- );
362
- wp_update_post( $update_vendor );
363
  }
364
  }
365
 
@@ -461,4 +420,45 @@ class WCV_Product_Meta {
461
  );
462
  }
463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  }
42
 
43
  add_action( 'woocommerce_process_product_meta', array( $this, 'update_post_media_author' ) );
44
 
45
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_script' ) );
46
+
47
+ add_action( 'wp_ajax_wcv_search_vendors', array( $this, 'search_vendors' ) );
48
  }
49
 
50
+ public function enqueue_script() {
51
+ wp_enqueue_script('wcv-vendor-select', wcv_assets_url . 'js/admin/wcv-vendor-select.js', array( 'select2' ), WCV_VERSION, true );
52
+ }
53
 
54
  /**
55
  * Change the "Author" metabox to "Vendor"
101
  * Create a selectbox to display vendor & administrator roles
102
  *
103
  * @param array $args
104
+ * @param bool $media
105
  *
106
+ * @return string
107
  */
108
+ public function vendor_selectbox( $args, $media = true ) {
109
+ $args = wp_parse_args( $args, array(
110
+ 'class' => '',
111
+ 'id' => '',
112
+ 'placeholder' => '',
113
+ 'selected' => '',
114
+ ) );
115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  extract( $args );
117
 
118
+ $user_args = array(
119
+ 'fields' => array( 'ID', 'display_name' ),
120
+ 'role__in' => array( 'vendor', 'administrator' ),
121
+ 'number' => 100,
122
+ );
 
 
123
 
124
+ $output = "<select style='width:200px;' name='$id' id='$id' class='wcv-vendor-select $class'>\n";
125
+ $output .= "\t<option>$placeholder</option>\n";
 
126
 
127
+ $users = get_users( $user_args );
128
+ foreach ( (array) $users as $user ) {
129
+ $select = selected( $user->ID, $selected, false );
130
+ $output .= "<option value='$user->ID' $select>$user->display_name</option>";
131
  }
132
  $output .= '</select>';
133
 
134
+ if ( ! $media ) {
135
+ return $output;
136
+ }
137
+
138
  $output .= '<p><label class="product_media_author_override">';
139
  $output .= '<input name="product_media_author_override" type="checkbox" /> ';
140
  $output .= sprintf( __( 'Assign media to %s', 'wc-vendors' ), wcv_get_vendor_name() );
141
  $output .= '</label></p>';
142
 
 
 
 
 
 
143
  return $output;
144
  }
145
 
 
146
  /**
147
  * Save commission rate of a product
148
  *
200
  <p class='form-field commission_rate_field'>
201
  <label for='pv_commission_rate'><?php _e( 'Commission', 'wc-vendors' ); ?> (%)</label>
202
  <input
203
+ type='number'
204
+ id='pv_commission_rate'
205
+ name='pv_commission_rate'
206
+ class='short'
207
+ max="100"
208
+ min="0"
209
+ step='any'
210
+ placeholder='<?php _e( 'Leave blank for default', 'wc-vendors' ); ?>'
211
+ value="<?php echo get_post_meta( $post->ID, 'pv_commission_rate', true ); ?>"
212
  />
213
  </p>
214
 
236
  public function display_vendor_dropdown_quick_edit() {
237
 
238
  global $post;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
 
240
+ $selectbox_args = array(
241
+ 'id' => 'post_author-new',
242
+ 'class' => 'select',
243
+ 'selected' => $post->post_author,
244
+ );
245
+ $output = $this->vendor_selectbox( $selectbox_args, false);
246
  ?>
247
  <br class="clear"/>
248
  <label class="inline-edit-author-new">
289
  * @version 2.1.14
290
  */
291
  public function display_vendor_dropdown_bulk_edit() {
292
+ $selectbox_args = array(
293
+ 'id' => 'vendor',
294
+ 'placeholder' => __('— No change —', 'wc-vendors'),
295
+ );
296
+ $output = $this->vendor_selectbox( $selectbox_args, false);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  ?>
298
  <br class="clear"/>
299
  <label class="inline-edit-author-new">
317
  $update_vendor = array(
318
  'ID' => $product->get_id(),
319
  'post_author' => $vendor,
320
+ );
321
+ wp_update_post( $update_vendor );
322
  }
323
  }
324
 
420
  );
421
  }
422
 
423
+ /**
424
+ * Search for vendor using a single SQL query.
425
+ *
426
+ * @return false|string|void
427
+ */
428
+ public function search_vendors() {
429
+ global $wpdb;
430
+
431
+ $search_string = esc_attr( $_POST['term'] );
432
+
433
+ if( strlen( $search_string ) <= 3 ) {
434
+ return;
435
+ }
436
+
437
+ $search_string = '%' . $search_string . '%';
438
+ $search_string = $wpdb->prepare("%s", $search_string);
439
+
440
+ $sql = "
441
+ SELECT DISTINCT ID as `id`, display_name as `text`
442
+ FROM $wpdb->users
443
+ INNER JOIN $wpdb->usermeta as mt1 ON $wpdb->users.ID = mt1.user_id
444
+ INNER JOIN $wpdb->usermeta as mt2 ON $wpdb->users.ID = mt2.user_id
445
+ WHERE ( mt1.meta_key = '$wpdb->prefix" . "capabilities' AND mt1.meta_value LIKE '%vendor%' )
446
+ AND (
447
+ user_login LIKE $search_string
448
+ OR user_nicename LIKE $search_string
449
+ OR display_name LIKE $search_string
450
+ OR user_email LIKE $search_string
451
+ OR user_url LIKE $search_string
452
+ OR ( mt2.meta_key = 'first_name' AND mt2.meta_value LIKE $search_string )
453
+ OR ( mt2.meta_key = 'last_name' AND mt2.meta_value LIKE $search_string )
454
+ )
455
+ ORDER BY display_name
456
+ ";
457
+
458
+
459
+ $response = new stdClass();
460
+ $response->results = $wpdb->get_results( $sql );
461
+ error_log(print_r($response, true));
462
+ wp_send_json($response);
463
+ }
464
  }
classes/admin/class-setup-wizard.php CHANGED
@@ -111,16 +111,16 @@ class WCVendors_Admin_Setup_Wizard {
111
  );
112
  wp_localize_script(
113
  'wc-enhanced-select', 'wc_enhanced_select_params', array(
114
- 'i18n_no_matches' => _x( 'No matches found', 'enhanced select', 'wcvendors' ),
115
- 'i18n_ajax_error' => _x( 'Loading failed', 'enhanced select', 'wcvendors' ),
116
- 'i18n_input_too_short_1' => _x( 'Please enter 1 or more characters', 'enhanced select', 'wcvendors' ),
117
- 'i18n_input_too_short_n' => _x( 'Please enter %qty% or more characters', 'enhanced select', 'wcvendors' ),
118
- 'i18n_input_too_long_1' => _x( 'Please delete 1 character', 'enhanced select', 'wcvendors' ),
119
- 'i18n_input_too_long_n' => _x( 'Please delete %qty% characters', 'enhanced select', 'wcvendors' ),
120
- 'i18n_selection_too_long_1' => _x( 'You can only select 1 item', 'enhanced select', 'wcvendors' ),
121
- 'i18n_selection_too_long_n' => _x( 'You can only select %qty% items', 'enhanced select', 'wcvendors' ),
122
- 'i18n_load_more' => _x( 'Loading more results&hellip;', 'enhanced select', 'wcvendors' ),
123
- 'i18n_searching' => _x( 'Searching&hellip;', 'enhanced select', 'wcvendors' ),
124
  'ajax_url' => admin_url( 'admin-ajax.php' ),
125
  'search_products_nonce' => wp_create_nonce( 'search-products' ),
126
  'search_customers_nonce' => wp_create_nonce( 'search-customers' ),
111
  );
112
  wp_localize_script(
113
  'wc-enhanced-select', 'wc_enhanced_select_params', array(
114
+ 'i18n_no_matches' => _x( 'No matches found', 'enhanced select', 'wc-vendors' ),
115
+ 'i18n_ajax_error' => _x( 'Loading failed', 'enhanced select', 'wc-vendors' ),
116
+ 'i18n_input_too_short_1' => _x( 'Please enter 1 or more characters', 'enhanced select', 'wc-vendors' ),
117
+ 'i18n_input_too_short_n' => _x( 'Please enter %qty% or more characters', 'enhanced select', 'wc-vendors' ),
118
+ 'i18n_input_too_long_1' => _x( 'Please delete 1 character', 'enhanced select', 'wc-vendors' ),
119
+ 'i18n_input_too_long_n' => _x( 'Please delete %qty% characters', 'enhanced select', 'wc-vendors' ),
120
+ 'i18n_selection_too_long_1' => _x( 'You can only select 1 item', 'enhanced select', 'wc-vendors' ),
121
+ 'i18n_selection_too_long_n' => _x( 'You can only select %qty% items', 'enhanced select', 'wc-vendors' ),
122
+ 'i18n_load_more' => _x( 'Loading more results&hellip;', 'enhanced select', 'wc-vendors' ),
123
+ 'i18n_searching' => _x( 'Searching&hellip;', 'enhanced select', 'wc-vendors' ),
124
  'ajax_url' => admin_url( 'admin-ajax.php' ),
125
  'search_products_nonce' => wp_create_nonce( 'search-products' ),
126
  'search_customers_nonce' => wp_create_nonce( 'search-customers' ),
classes/admin/settings/class-wcv-settings-payments.php CHANGED
@@ -43,10 +43,14 @@ if ( ! class_exists( 'WCVendors_Settings_Payments', false ) ) :
43
  public function get_sections() {
44
 
45
  $sections = array(
46
- '' => __( 'General', 'wc-vendors' ),
47
- 'paypal' => __( 'PayPal Adaptive Payments', 'wc-vendors' ),
48
  );
49
 
 
 
 
 
 
50
  return apply_filters( 'wcvendors_get_sections_' . $this->id, $sections );
51
  }
52
 
43
  public function get_sections() {
44
 
45
  $sections = array(
46
+ '' => __( 'General', 'wc-vendors' )
 
47
  );
48
 
49
+ $paypalap_settings = get_option( 'woocommerce_paypalap_settings', false );
50
+ if ( $paypalap_settings && array_key_exists('username_live', $paypalap_settings ) && $paypalap_settings[ 'username_live' ] !== '' ) {
51
+ $sections[ 'paypal' ] = __( 'PayPal Adaptive Payments', 'wc-vendors' );
52
+ }
53
+
54
  return apply_filters( 'wcvendors_get_sections_' . $this->id, $sections );
55
  }
56
 
classes/admin/views/html-admin-settings.php CHANGED
@@ -40,7 +40,7 @@ if ( ! $tab_exists ) {
40
  <p class="submit">
41
  <?php if ( empty( $GLOBALS['hide_save_button'] ) ) : ?>
42
  <button name="save" class="button-primary wcvendors-save-button" type="submit"
43
- value="<?php esc_attr_e( 'Save changes', 'wcvendors' ); ?>"><?php esc_html_e( 'Save changes', 'wcvendors' ); ?></button>
44
  <?php endif; ?>
45
  <?php wp_nonce_field( 'wcvendors-settings' ); ?>
46
  </p>
40
  <p class="submit">
41
  <?php if ( empty( $GLOBALS['hide_save_button'] ) ) : ?>
42
  <button name="save" class="button-primary wcvendors-save-button" type="submit"
43
+ value="<?php esc_attr_e( 'Save changes', 'wc-vendors' ); ?>"><?php esc_html_e( 'Save changes', 'wc-vendors' ); ?></button>
44
  <?php endif; ?>
45
  <?php wp_nonce_field( 'wcvendors-settings' ); ?>
46
  </p>
classes/class-install.php CHANGED
@@ -9,7 +9,9 @@
9
 
10
  class WCVendors_Install {
11
 
12
- /** Updates to be run **/
 
 
13
  private static $db_updates
14
  = array(
15
  '2.0.0' => array(
@@ -27,7 +29,7 @@ class WCVendors_Install {
27
  '2.1.4' => array(
28
  'wcv_can_view_customer_shipping_name_option',
29
  ),
30
- '2.1.6' => array(
31
  'wcv_add_vendor_caps',
32
  ),
33
  );
@@ -47,13 +49,13 @@ class WCVendors_Install {
47
  */
48
  public static function init() {
49
 
50
- add_action( 'init' , array( __CLASS__, 'check_version' ) );
51
- add_action( 'admin_init' , array( __CLASS__, 'check_pro_version' ) );
52
- add_action( 'init' , array( __CLASS__, 'init_background_updater' ), 5 );
53
- add_action( 'admin_init' , array( __CLASS__, 'install_actions' ) );
54
- add_filter( 'plugin_row_meta' , array( __CLASS__, 'plugin_row_meta' ), 10, 2 );
55
  add_filter( 'plugin_action_links_' . wcv_plugin_base, array( __CLASS__, 'plugin_action_links' ) );
56
- add_action( 'wcvendors_update_options_display' , array( __CLASS__, 'maybe_flush_rewrite_rules' ) );
57
 
58
  } // init()
59
 
@@ -197,26 +199,26 @@ class WCVendors_Install {
197
  *
198
  * @since 2.1.6
199
  */
200
- public static function create_capabilities(){
201
 
202
  global $wp_roles;
203
 
204
- if ( class_exists( 'WP_Roles' ) && ! isset( $wp_roles ) ) {
205
- $wp_roles = new WP_Roles();
206
- }
207
 
208
  $capabilities = array();
209
- $all_cap = self::get_vendor_caps();
210
 
211
- foreach ( $all_cap as $key => $cap ) {
212
- $capabilities = array_merge( $capabilities, array_keys( $cap ) );
213
- }
214
 
215
- foreach ( $capabilities as $key => $capability ) {
216
- $wp_roles->add_cap( 'vendor', $capability );
217
- $wp_roles->add_cap( 'administrator', $capability );
218
- $wp_roles->add_cap( 'shop_manager', $capability );
219
- }
220
  }
221
 
222
 
@@ -304,8 +306,8 @@ class WCVendors_Install {
304
  /**
305
  * Is this a brand new WC install?
306
  *
307
- * @since 2.0.0
308
  * @return boolean
 
309
  */
310
  public static function is_new_install() {
311
 
@@ -328,8 +330,8 @@ class WCVendors_Install {
328
  /**
329
  * Get list of DB update callbacks.
330
  *
331
- * @since 2.0.0
332
  * @return array
 
333
  */
334
  public static function get_db_update_callbacks() {
335
 
@@ -339,8 +341,8 @@ class WCVendors_Install {
339
  /**
340
  * Is a DB update needed?
341
  *
342
- * @since 2.0.0
343
  * @return boolean
 
344
  */
345
  private static function needs_db_update() {
346
 
@@ -470,8 +472,8 @@ class WCVendors_Install {
470
  * Add an install date option so we can track when the plugin was installed
471
  *
472
  */
473
- private static function add_install_date(){
474
- if ( self::is_new_install() ){
475
  add_option( 'wcvendors_install_date', current_time( 'Y-m-d' ) );
476
  }
477
  }
@@ -480,7 +482,7 @@ class WCVendors_Install {
480
  /**
481
  * Show action links on the plugin screen.
482
  *
483
- * @param mixed $links Plugin Action links
484
  *
485
  * @return array
486
  * @since 2.0.0
@@ -497,8 +499,8 @@ class WCVendors_Install {
497
  /**
498
  * Show row meta on the plugin screen.
499
  *
500
- * @param mixed $links Plugin Row Meta
501
- * @param mixed $file Plugin Base file
502
  *
503
  * @return array
504
  */
@@ -509,7 +511,7 @@ class WCVendors_Install {
509
  'docs' => '<a href="' . esc_url( apply_filters( 'wcvendors_docs_url', 'https://docs.wcvendors.com/' ) ) . '" aria-label="' . esc_attr__( 'View WC Vendors documentation', 'wc-vendors' ) . '">' . esc_html__( 'Docs', 'wc-vendors' ) . '</a>',
510
  'free-support' => '<a href="' . esc_url( apply_filters( 'wcvendors_free_support_url', 'https://wordpress.org/plugins/wc-vendors' ) ) . '" aria-label="' . esc_attr__( 'Visit community forums', 'wc-vendors' ) . '">' . esc_html__( 'Free support', 'wc-vendors' ) . '</a>',
511
  'support' => '<a href="' . esc_url( apply_filters( 'wcvendors_support_url', 'https://www.wcvendors.com/product/wc-vendors-pro/?utm_source=plugin&utm_medium=settings_page&utm_campaign=premium_support' ) ) . '" aria-label="' . esc_attr__( 'Buy premium customer support', 'wc-vendors' ) . '">' . esc_html__( 'Premium support', 'wc-vendors' ) . '</a>',
512
- 'pro' => '<strong><a href="https://www.wcvendors.com/product/wc-vendors-pro/?utm_source=plugin&utm_medium=settings_page&utm_campaign=upgrade_promo" target="_blank">' . __( 'Upgrade to Pro', 'wcvendors' ) . '</a></strong>',
513
  );
514
 
515
  if ( class_exists( 'WCVendors_Pro' ) ) {
@@ -536,66 +538,83 @@ class WCVendors_Install {
536
  }
537
 
538
  /**
539
- * Define the new capabilties for vendors
540
  *
541
  * @since 2.1.6
542
  */
543
  public static function get_vendor_caps() {
544
 
545
- $capabilities = array(
546
- 'vendor' => array(
547
- 'wcv_vendor_enabled' => __( 'Vendor is enabled', 'wc-vendors' ),
548
- 'wcv_vendor_verified' => __( 'Vendor is verified', 'wc-vendors' ),
549
- 'wcv_vendor_trusted' => __( 'Vendor is trusted', 'wc-vendors' ),
550
- ),
551
- 'dashboard' => array(
552
- 'wcv_view_sales_overview' => __( 'View sales overview', 'wc-vendors' ),
553
- 'wcv_view_sales_report_chart' => __( 'View sales report chart', 'wc-vendors' ),
554
- 'wcv_view_vendor_notice' => __( 'View vendor notices', 'wc-vendors' ),
555
- 'wcv_view_order_report' => __( 'View order report', 'wc-vendors' ),
556
- 'wcv_view_order_overview' => __( 'View order overview', 'wc-vendors' ),
557
- 'wcv_view_review_reports' => __( 'View ratings report', 'wc-vendors' ),
558
- 'wcv_view_product_status_report' => __( 'View product status report', 'wc-vendors' ),
559
- ),
560
- 'order' => array(
561
- 'wcv_view_order' => __( 'View order', 'wc-vendors' ),
562
- 'wcv_add_order_note' => __( 'Add order notes', 'wc-vendors' ),
563
- 'wcv_view_order_note' => __( 'View order notes', 'wc-vendors' ),
564
- 'wcv_manage_order_export' => __( 'Export orders', 'wc-vendors' ),
565
- 'wcv_manage_order_status' => __( 'Manage order status', 'wc-vendors' ),
566
- 'wcv_view_name' => __( 'View customer name', 'wc-vendors' ),
567
- 'wcv_view_email' => __( 'View customer email address', 'wc-vendors' ),
568
- 'wcv_view_phone' => __( 'View customer phone number', 'wc-vendors' ),
569
- 'wcv_view_shipping_name' => __( 'View customer shipping name', 'wc-vendors' ),
570
- 'wcv_view_shipping' => __( 'View customer shipping address fields', 'wc-vendors' ),
571
- 'wcv_view_billing' => __( 'View customer billing address fields', 'wc-vendors' ),
572
- 'wcv_view_email' => __( 'View customer shipping name', 'wc-vendors' ),
573
- ),
574
- 'product' => array(
575
- 'wcv_add_product' => __( 'Add product', 'wc-vendors' ),
576
- 'wcv_edit_product' => __( 'Edit product', 'wc-vendors' ),
577
- 'wcv_edit_product_published' => __( 'Edit published product', 'wc-vendors' ),
578
- 'wcv_publish_product' => __( 'Publish product directly without approval', 'wc-vendors' ),
579
- 'wcv_delete_product' => __( 'Delete product', 'wc-vendors' ),
580
- 'wcv_duplicate_product' => __( 'Duplicate product', 'wc-vendors' ),
581
- 'wcv_view_product' => __( 'View product', 'wc-vendors' ),
582
- ),
583
- // Not used yet
584
- 'report' => array(
585
- 'wcv_view_overview_report' => __( 'View overview report', 'wc-vendors' ),
586
- 'wcv_view_daily_sale_report' => __( 'View daily sales report', 'wc-vendors' ),
587
- 'wcv_view_top_selling_report' => __( 'View top selling report', 'wc-vendors' ),
588
- 'wcv_view_top_earning_report' => __( 'View top earning report', 'wc-vendors' ),
589
- ),
590
- 'menu' => array(
591
- 'wcv_view_dashboard_menu' => __( 'View dashboard menu', 'wc-vendors' ),
592
- 'wcv_view_product_menu' => __( 'View product menu', 'wc-vendors' ),
593
- 'wcv_view_order_menu' => __( 'View order menu', 'wc-vendors' ),
594
- 'wcv_view_store_settings_menu' => __( 'View store settings menu', 'wc-vendors' ),
595
- ),
596
- );
597
-
598
- return apply_filters( 'wcv_get_vendor_caps', $capabilities );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
 
600
  }
601
  }
9
 
10
  class WCVendors_Install {
11
 
12
+ /**
13
+ * Updates to be run
14
+ */
15
  private static $db_updates
16
  = array(
17
  '2.0.0' => array(
29
  '2.1.4' => array(
30
  'wcv_can_view_customer_shipping_name_option',
31
  ),
32
+ '2.1.6' => array(
33
  'wcv_add_vendor_caps',
34
  ),
35
  );
49
  */
50
  public static function init() {
51
 
52
+ add_action( 'init', array( __CLASS__, 'check_version' ) );
53
+ add_action( 'admin_init', array( __CLASS__, 'check_pro_version' ) );
54
+ add_action( 'init', array( __CLASS__, 'init_background_updater' ), 5 );
55
+ add_action( 'admin_init', array( __CLASS__, 'install_actions' ) );
56
+ add_filter( 'plugin_row_meta', array( __CLASS__, 'plugin_row_meta' ), 10, 2 );
57
  add_filter( 'plugin_action_links_' . wcv_plugin_base, array( __CLASS__, 'plugin_action_links' ) );
58
+ add_action( 'wcvendors_update_options_display', array( __CLASS__, 'maybe_flush_rewrite_rules' ) );
59
 
60
  } // init()
61
 
199
  *
200
  * @since 2.1.6
201
  */
202
+ public static function create_capabilities() {
203
 
204
  global $wp_roles;
205
 
206
+ if ( class_exists( 'WP_Roles' ) && ! isset( $wp_roles ) ) {
207
+ $wp_roles = new WP_Roles();
208
+ }
209
 
210
  $capabilities = array();
211
+ $all_cap = self::get_vendor_caps();
212
 
213
+ foreach ( $all_cap as $key => $cap ) {
214
+ $capabilities = array_merge( $capabilities, array_keys( $cap ) );
215
+ }
216
 
217
+ foreach ( $capabilities as $key => $capability ) {
218
+ $wp_roles->add_cap( 'vendor', $capability );
219
+ $wp_roles->add_cap( 'administrator', $capability );
220
+ $wp_roles->add_cap( 'shop_manager', $capability );
221
+ }
222
  }
223
 
224
 
306
  /**
307
  * Is this a brand new WC install?
308
  *
 
309
  * @return boolean
310
+ * @since 2.0.0
311
  */
312
  public static function is_new_install() {
313
 
330
  /**
331
  * Get list of DB update callbacks.
332
  *
 
333
  * @return array
334
+ * @since 2.0.0
335
  */
336
  public static function get_db_update_callbacks() {
337
 
341
  /**
342
  * Is a DB update needed?
343
  *
 
344
  * @return boolean
345
+ * @since 2.0.0
346
  */
347
  private static function needs_db_update() {
348
 
472
  * Add an install date option so we can track when the plugin was installed
473
  *
474
  */
475
+ private static function add_install_date() {
476
+ if ( self::is_new_install() ) {
477
  add_option( 'wcvendors_install_date', current_time( 'Y-m-d' ) );
478
  }
479
  }
482
  /**
483
  * Show action links on the plugin screen.
484
  *
485
+ * @param mixed $links Plugin Action links
486
  *
487
  * @return array
488
  * @since 2.0.0
499
  /**
500
  * Show row meta on the plugin screen.
501
  *
502
+ * @param mixed $links Plugin Row Meta
503
+ * @param mixed $file Plugin Base file
504
  *
505
  * @return array
506
  */
511
  'docs' => '<a href="' . esc_url( apply_filters( 'wcvendors_docs_url', 'https://docs.wcvendors.com/' ) ) . '" aria-label="' . esc_attr__( 'View WC Vendors documentation', 'wc-vendors' ) . '">' . esc_html__( 'Docs', 'wc-vendors' ) . '</a>',
512
  'free-support' => '<a href="' . esc_url( apply_filters( 'wcvendors_free_support_url', 'https://wordpress.org/plugins/wc-vendors' ) ) . '" aria-label="' . esc_attr__( 'Visit community forums', 'wc-vendors' ) . '">' . esc_html__( 'Free support', 'wc-vendors' ) . '</a>',
513
  'support' => '<a href="' . esc_url( apply_filters( 'wcvendors_support_url', 'https://www.wcvendors.com/product/wc-vendors-pro/?utm_source=plugin&utm_medium=settings_page&utm_campaign=premium_support' ) ) . '" aria-label="' . esc_attr__( 'Buy premium customer support', 'wc-vendors' ) . '">' . esc_html__( 'Premium support', 'wc-vendors' ) . '</a>',
514
+ 'pro' => '<strong><a href="https://www.wcvendors.com/product/wc-vendors-pro/?utm_source=plugin&utm_medium=settings_page&utm_campaign=upgrade_promo" target="_blank">' . __( 'Upgrade to Pro', 'wc-vendors' ) . '</a></strong>',
515
  );
516
 
517
  if ( class_exists( 'WCVendors_Pro' ) ) {
538
  }
539
 
540
  /**
541
+ * Define the new capabilities for vendors
542
  *
543
  * @since 2.1.6
544
  */
545
  public static function get_vendor_caps() {
546
 
547
+ $capabilities = array(
548
+ 'vendor' => array(
549
+ 'wcv_vendor_enabled' => __( 'Vendor is enabled', 'wc-vendors' ),
550
+ 'wcv_vendor_verified' => __( 'Vendor is verified', 'wc-vendors' ),
551
+ 'wcv_vendor_trusted' => __( 'Vendor is trusted', 'wc-vendors' ),
552
+ 'wcv_manage_products' => __( 'Manage Products', 'wc-vendors' ),
553
+ 'wcv_manage_orders' => __( 'Manage orders', 'wc-vendors' ),
554
+ 'wcv_manage_coupons' => __( 'Manage coupons', 'wc-vendors' ),
555
+ 'wcv_manage_ratings' => __( 'Manage ratings', 'wc-vendors' ),
556
+ 'wcv_manage_settings' => __( 'Manage Store Settings', 'wc-vendors' ),
557
+ 'wcv_manage_shipping' => __( 'Manage Store Shipping', 'wc-vendors' ),
558
+ 'wcv_view_store' => __( 'View Store', 'wc-vendors' ),
559
+ ),
560
+ 'dashboard' => array(
561
+ 'wcv_view_sales_overview' => __( 'View sales overview', 'wc-vendors' ),
562
+ 'wcv_view_sales_report_chart' => __( 'View sales report chart', 'wc-vendors' ),
563
+ 'wcv_view_vendor_notice' => __( 'View vendor notices', 'wc-vendors' ),
564
+ 'wcv_view_order_report' => __( 'View order report', 'wc-vendors' ),
565
+ 'wcv_view_order_overview' => __( 'View order overview', 'wc-vendors' ),
566
+ 'wcv_view_review_reports' => __( 'View ratings report', 'wc-vendors' ),
567
+ 'wcv_view_product_status_report' => __( 'View product status report', 'wc-vendors' ),
568
+ ),
569
+ 'product' => array(
570
+ 'wcv_add_product' => __( 'Add product', 'wc-vendors' ),
571
+ 'wcv_edit_product' => __( 'Edit product', 'wc-vendors' ),
572
+ 'wcv_edit_product_published' => __( 'Edit published product', 'wc-vendors' ),
573
+ 'wcv_publish_product' => __( 'Publish product directly without approval', 'wc-vendors' ),
574
+ 'wcv_delete_product' => __( 'Delete product', 'wc-vendors' ),
575
+ 'wcv_duplicate_product' => __( 'Duplicate product', 'wc-vendors' ),
576
+ 'wcv_featured_product' => __( 'Featured product', 'wc-vendors' ),
577
+ 'wcv_view_product' => __( 'View product', 'wc-vendors' ),
578
+ 'wcv_import_product' => __( 'Import product', 'wc-vendors' ),
579
+ 'wcv_export_product' => __( 'Export product', 'wc-vendors' )
580
+ ),
581
+ 'order' => array(
582
+ 'wcv_view_order' => __( 'View order', 'wc-vendors' ),
583
+ 'wcv_add_order_note' => __( 'Add order notes', 'wc-vendors' ),
584
+ 'wcv_view_order_note' => __( 'View order notes', 'wc-vendors' ),
585
+ 'wcv_manage_order_export' => __( 'Export orders', 'wc-vendors' ),
586
+ 'wcv_manage_order_status' => __( 'Manage order status', 'wc-vendors' ),
587
+ 'wcv_view_name' => __( 'View customer name', 'wc-vendors' ),
588
+ 'wcv_view_phone' => __( 'View customer phone number', 'wc-vendors' ),
589
+ 'wcv_view_shipping_name' => __( 'View customer shipping name', 'wc-vendors' ),
590
+ 'wcv_view_shipping' => __( 'View customer shipping address fields', 'wc-vendors' ),
591
+ 'wcv_view_billing' => __( 'View customer billing address fields', 'wc-vendors' ),
592
+ 'wcv_view_email' => __( 'View customer shipping name', 'wc-vendors' ),
593
+ ),
594
+ 'coupon' => array(
595
+ 'wcv_add_coupon' => __( 'Add coupon', 'wc-vendors' ),
596
+ 'wcv_edit_coupon' => __( 'Edit coupon', 'wc-vendors' ),
597
+ 'wcv_delete_coupon' => __( 'Delete coupon', 'wc-vendors' ),
598
+ ),
599
+ 'report' => array(
600
+ 'wcv_view_overview_report' => __( 'View overview report', 'wc-vendors' ),
601
+ 'wcv_view_daily_sale_report' => __( 'View daily sales report', 'wc-vendors' ),
602
+ 'wcv_view_top_selling_report' => __( 'View top selling report', 'wc-vendors' ),
603
+ 'wcv_view_top_earning_report' => __( 'View top earning report', 'wc-vendors' ),
604
+ 'wcv_view_statement_report' => __( 'View statement report', 'wc-vendors' )
605
+ ),
606
+ 'menu' => array(
607
+ 'wcv_view_overview_menu' => __( 'View order menu', 'wc-vendors' ),
608
+ 'wcv_view_dashboard_menu' => __( 'View dashboard menu', 'wc-vendors' ),
609
+ 'wcv_view_product_menu' => __( 'View product menu', 'wc-vendors' ),
610
+ 'wcv_view_order_menu' => __( 'View order menu', 'wc-vendors' ),
611
+ 'wcv_view_coupon_menu' => __( 'View order menu', 'wc-vendors' ),
612
+ 'wcv_view_ratings_menu' => __( 'View ratings menu', 'wc-vendors' ),
613
+ 'wcv_view_store_settings_menu' => __( 'View store settings menu', 'wc-vendors' ),
614
+ ),
615
+ );
616
+
617
+ return apply_filters( 'wcv_get_vendor_caps', $capabilities );
618
 
619
  }
620
  }
classes/front/class-vendor-cart.php CHANGED
@@ -39,9 +39,7 @@ class WCV_Vendor_Cart {
39
  $vendor_id = $post->post_author;
40
  $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
41
  $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
42
- $sold_by = WCV_Vendors::is_vendor( $vendor_id )
43
- ? sprintf( '<a href="%s" target="_TOP">%s </a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
44
- : get_bloginfo( 'name' );
45
 
46
  $values[] = array(
47
  'name' => apply_filters( 'wcvendors_cart_sold_by', $sold_by_label, $product_id, $vendor_id, $sold_by_separator ),
@@ -60,16 +58,9 @@ class WCV_Vendor_Cart {
60
  $vendor_id = get_the_author_meta( 'ID' );
61
  $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
62
  $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
63
- $sold_by = WCV_Vendors::is_vendor( $vendor_id )
64
- ? sprintf( '<a href="%s" class="wcvendors_cart_sold_by_meta">%s</a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
65
- : get_bloginfo( 'name' );
66
-
67
- printf(
68
- apply_filters( 'wcvendors_cart_sold_by_meta_template', '%1$s %2$s %3$s<br/>', get_the_ID(), $vendor_id ),
69
- apply_filters( 'wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ),
70
- apply_filters( 'wcvendors_cart_sold_by_meta_separator', $sold_by_separator, get_the_ID(), $vendor_id ),
71
- $sold_by
72
- );
73
  }
74
 
75
  }
39
  $vendor_id = $post->post_author;
40
  $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
41
  $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
42
+ $sold_by = wcv_get_sold_by_link( $vendor_id );
 
 
43
 
44
  $values[] = array(
45
  'name' => apply_filters( 'wcvendors_cart_sold_by', $sold_by_label, $product_id, $vendor_id, $sold_by_separator ),
58
  $vendor_id = get_the_author_meta( 'ID' );
59
  $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
60
  $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
61
+ $sold_by = wcv_get_sold_by_link( $vendor_id, 'wcvendors_cart_sold_by_meta' );
62
+
63
+ echo wcv_get_vendor_sold_by( $vendor_id );
 
 
 
 
 
 
 
64
  }
65
 
66
  }
classes/front/class-vendor-shop.php CHANGED
@@ -211,9 +211,7 @@ class WCV_Vendor_Shop {
211
  $vendor_id = WCV_Vendors::get_vendor_from_product( $product_id );
212
  $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
213
  $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
214
- $sold_by = WCV_Vendors::is_vendor( $vendor_id )
215
- ? sprintf( '<a href="%s">%s</a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
216
- : get_bloginfo( 'name' );
217
 
218
  wc_get_template(
219
  'vendor-sold-by.php', array(
211
  $vendor_id = WCV_Vendors::get_vendor_from_product( $product_id );
212
  $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
213
  $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
214
+ $sold_by = wcv_get_sold_by_link( $vendor_id );
 
 
215
 
216
  wc_get_template(
217
  'vendor-sold-by.php', array(
classes/gateways/PayPal_AdvPayments/paypal_ap.php CHANGED
@@ -13,14 +13,18 @@ if ( !class_exists( 'WC_Payment_Gateway' ) ) return false;
13
  */
14
 
15
 
16
- function add_paypal_ap_gateway( $methods )
17
- {
18
- $methods[ ] = 'WC_PaypalAP';
 
 
 
19
 
20
  return $methods;
21
  }
22
 
23
 
 
24
  add_filter( 'woocommerce_payment_gateways', 'add_paypal_ap_gateway' );
25
 
26
  class WC_PaypalAP extends WC_Payment_Gateway
@@ -40,7 +44,7 @@ class WC_PaypalAP extends WC_Payment_Gateway
40
  /* Standard WooCommerce Configuration */
41
  $this->id = 'paypalap';
42
  $this->icon = plugin_dir_url( __FILE__ ) . 'PayPal_AP/assets/icons/paypalap.png';
43
- $this->method_title = __( 'PayPal Adaptive Payments', 'wc-vendors' );
44
  $this->has_fields = false;
45
 
46
  // Load the settings
13
  */
14
 
15
 
16
+ function add_paypal_ap_gateway( $methods ){
17
+
18
+ $settings = get_option( 'woocommerce_paypalap_settings', false );
19
+ if ( $settings && array_key_exists('username_live', $settings ) && $settings[ 'username_live' ] !== '' ) {
20
+ $methods[ ] = 'WC_PaypalAP';
21
+ }
22
 
23
  return $methods;
24
  }
25
 
26
 
27
+
28
  add_filter( 'woocommerce_payment_gateways', 'add_paypal_ap_gateway' );
29
 
30
  class WC_PaypalAP extends WC_Payment_Gateway
44
  /* Standard WooCommerce Configuration */
45
  $this->id = 'paypalap';
46
  $this->icon = plugin_dir_url( __FILE__ ) . 'PayPal_AP/assets/icons/paypalap.png';
47
+ $this->method_title = __( 'PayPal Adaptive Payments - deprecated do not use', 'wc-vendors' );
48
  $this->has_fields = false;
49
 
50
  // Load the settings
classes/includes/class-wcv-shortcodes.php CHANGED
@@ -736,9 +736,9 @@ class WCV_Shortcodes {
736
  */
737
  public function wcv_sold_by( $atts ){
738
 
739
- if ( ! is_product() ) return;
740
 
741
- $atts = shortcode_atts(
742
  array(
743
  'vendor_id' => get_the_author_meta( 'ID' ),
744
  'sold_by_label' => __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' ),
@@ -749,9 +749,7 @@ class WCV_Shortcodes {
749
  );
750
  extract( $atts );
751
 
752
- $sold_by = WCV_Vendors::is_vendor( $vendor_id )
753
- ? sprintf( '<a href="%s" class="wcvendors_cart_sold_by_meta">%s</a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
754
- : get_bloginfo( 'name' );
755
 
756
  return apply_filters( 'wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ) . '&nbsp;' . apply_filters( 'wcvendors_cart_sold_by_meta_separator', $sold_by_separator, get_the_ID(), $vendor_id ) . '&nbsp;' . $sold_by . '<br/>';
757
  }
736
  */
737
  public function wcv_sold_by( $atts ){
738
 
739
+ if ( ! is_product() ) return;
740
 
741
+ $atts = shortcode_atts(
742
  array(
743
  'vendor_id' => get_the_author_meta( 'ID' ),
744
  'sold_by_label' => __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' ),
749
  );
750
  extract( $atts );
751
 
752
+ $sold_by = wcv_get_sold_by_link( $vendor_id, 'wcvendors_cart_sold_by_meta' );
 
 
753
 
754
  return apply_filters( 'wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ) . '&nbsp;' . apply_filters( 'wcvendors_cart_sold_by_meta_separator', $sold_by_separator, get_the_ID(), $vendor_id ) . '&nbsp;' . $sold_by . '<br/>';
755
  }
classes/includes/wcv-template-functions.php CHANGED
@@ -175,7 +175,7 @@ if ( ! function_exists( 'wcv_get_vendor_item_totals' ) ) {
175
  if ( ! function_exists( 'is_wcv_pro_active' ) ) {
176
  /**
177
  * Check if WC Vendors Pro is active
178
- *
179
  * @since 2.1.4
180
  * @return bool True if active false otherwis
181
  */
@@ -183,7 +183,45 @@ if ( ! function_exists( 'is_wcv_pro_active' ) ) {
183
  if ( defined( 'WCV_PRO_PLUGIN_FILE' ) ) {
184
  return true;
185
  }
186
-
187
  return false;
188
  }
189
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  if ( ! function_exists( 'is_wcv_pro_active' ) ) {
176
  /**
177
  * Check if WC Vendors Pro is active
178
+ *
179
  * @since 2.1.4
180
  * @return bool True if active false otherwis
181
  */
183
  if ( defined( 'WCV_PRO_PLUGIN_FILE' ) ) {
184
  return true;
185
  }
186
+
187
  return false;
188
  }
189
  }
190
+
191
+
192
+ if ( ! function_exists( 'wcv_get_sold_by_link' ) ){
193
+ /**
194
+ * Get the vendor sold by URL
195
+ *
196
+ * @param int $vendor_id - vendor's id
197
+ * @param string $css_class - optional css class
198
+ */
199
+ function wcv_get_sold_by_link( $vendor_id, $css_class = '' ){
200
+ $class = isset( $css_class ) ? 'class="' . $css_class . '"' : '';
201
+ $sold_by = WCV_Vendors::is_vendor( $vendor_id )
202
+ ? sprintf( '<a href="%s" %s>%s</a>', WCV_Vendors::get_vendor_shop_page( $vendor_id ), $class, WCV_Vendors::get_vendor_sold_by( $vendor_id ) )
203
+ : get_bloginfo( 'name' );
204
+
205
+ return apply_filters( 'wcv_sold_by_link', $sold_by, $vendor_id );
206
+
207
+ }
208
+ }
209
+
210
+
211
+ if ( ! function_exists( 'wcv_get_vendor_sold_by') ){
212
+ function wcv_get_vendor_sold_by( $vendor_id ){
213
+
214
+ $sold_by_label = __( get_option( 'wcvendors_label_sold_by' ), 'wc-vendors' );
215
+ $sold_by_separator = __( get_option( 'wcvendors_label_sold_by_separator' ), 'wc-vendors' );
216
+ $sold_by = wcv_get_sold_by_link( $vendor_id, 'wcvendors_cart_sold_by_meta' );
217
+
218
+ $vendor_sold_by = sprintf(
219
+ apply_filters( 'wcvendors_cart_sold_by_meta_template', '%1$s %2$s %3$s', get_the_ID(), $vendor_id ),
220
+ apply_filters( 'wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ),
221
+ apply_filters( 'wcvendors_cart_sold_by_meta_separator', $sold_by_separator, get_the_ID(), $vendor_id ),
222
+ $sold_by
223
+ );
224
+
225
+ return $vendor_sold_by;
226
+ }
227
+ }
languages/wc-vendors.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 WC Vendors Marketplace
2
  # This file is distributed under the same license as the WC Vendors Marketplace package.
3
  msgid ""
4
  msgstr ""
@@ -56,227 +56,287 @@ msgstr ""
56
  msgid "Payment total: %s"
57
  msgstr ""
58
 
59
- #: classes/class-install.php:159, classes/admin/class-wcv-admin-setup.php:153
60
  msgid "Pending %s"
61
  msgstr ""
62
 
63
- #: classes/class-install.php:173, classes/admin/class-admin-reports.php:207, classes/admin/class-admin-reports.php:530, classes/admin/class-product-meta.php:271, classes/admin/class-product-meta.php:341, 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:44, classes/admin/class-wcv-commissions-page.php:130, classes/admin/class-wcv-commissions-sum-csv-exporter.php:43, classes/admin/settings/class-wcv-settings-display.php:113, classes/admin/settings/class-wcv-settings-display.php:121, classes/admin/settings/class-wcv-settings-display.php:229
64
  msgid "%s"
65
  msgstr ""
66
 
67
- #: classes/class-install.php:257
68
  msgctxt "Page slug"
69
  msgid "vendor_dashboard"
70
  msgstr ""
71
 
72
- #: classes/class-install.php:259
73
  msgctxt "Page title"
74
  msgid "%s Dashboard"
75
  msgstr ""
76
 
77
- #: classes/class-install.php:265
78
  msgctxt "Page slug"
79
  msgid "vendors"
80
  msgstr ""
81
 
82
- #: classes/class-install.php:267
83
  msgctxt "Page title"
84
  msgid "%s"
85
  msgstr ""
86
 
87
- #: classes/class-install.php:275
88
  msgctxt "Page slug"
89
  msgid "shop_settings"
90
  msgstr ""
91
 
92
- #: classes/class-install.php:276
93
  msgctxt "Page title"
94
  msgid "Shop Settings"
95
  msgstr ""
96
 
97
- #: classes/class-install.php:281
98
  msgctxt "Page slug"
99
  msgid "product_orders"
100
  msgstr ""
101
 
102
- #: classes/class-install.php:282
103
  msgctxt "Page title"
104
  msgid "Orders"
105
  msgstr ""
106
 
107
- #: classes/class-install.php:491
108
  msgid "View WC Vendors settings"
109
  msgstr ""
110
 
111
- #: classes/class-install.php:491, templates/dashboard/settings/settings.php:17
112
  msgid "Settings"
113
  msgstr ""
114
 
115
- #: classes/class-install.php:509
116
  msgid "View WC Vendors documentation"
117
  msgstr ""
118
 
119
- #: classes/class-install.php:509
120
  msgid "Docs"
121
  msgstr ""
122
 
123
- #: classes/class-install.php:510
124
  msgid "Visit community forums"
125
  msgstr ""
126
 
127
- #: classes/class-install.php:510
128
  msgid "Free support"
129
  msgstr ""
130
 
131
- #: classes/class-install.php:511
132
  msgid "Buy premium customer support"
133
  msgstr ""
134
 
135
- #: classes/class-install.php:511
136
  msgid "Premium support"
137
  msgstr ""
138
 
139
- #: classes/class-install.php:547
 
 
 
 
140
  msgid "Vendor is enabled"
141
  msgstr ""
142
 
143
- #: classes/class-install.php:548
144
  msgid "Vendor is verified"
145
  msgstr ""
146
 
147
- #: classes/class-install.php:549
148
  msgid "Vendor is trusted"
149
  msgstr ""
150
 
151
  #: classes/class-install.php:552
152
- msgid "View sales overview"
153
  msgstr ""
154
 
155
  #: classes/class-install.php:553
156
- msgid "View sales report chart"
157
  msgstr ""
158
 
159
  #: classes/class-install.php:554
160
- msgid "View vendor notices"
161
  msgstr ""
162
 
163
  #: classes/class-install.php:555
164
- msgid "View order report"
165
  msgstr ""
166
 
167
  #: classes/class-install.php:556
168
- msgid "View order overview"
169
  msgstr ""
170
 
171
  #: classes/class-install.php:557
172
- msgid "View ratings report"
173
  msgstr ""
174
 
175
  #: classes/class-install.php:558
176
- msgid "View product status report"
177
  msgstr ""
178
 
179
  #: classes/class-install.php:561
180
- msgid "View order"
181
  msgstr ""
182
 
183
  #: classes/class-install.php:562
184
- msgid "Add order notes"
185
  msgstr ""
186
 
187
  #: classes/class-install.php:563
188
- msgid "View order notes"
189
  msgstr ""
190
 
191
- #: classes/class-install.php:564, templates/orders/csv-export.php:22
192
- msgid "Export orders"
193
  msgstr ""
194
 
195
  #: classes/class-install.php:565
196
- msgid "Manage order status"
197
  msgstr ""
198
 
199
  #: classes/class-install.php:566
200
- msgid "View customer name"
201
  msgstr ""
202
 
203
  #: classes/class-install.php:567
204
- msgid "View customer email address"
205
  msgstr ""
206
 
207
- #: classes/class-install.php:568
208
- msgid "View customer phone number"
209
  msgstr ""
210
 
211
- #: classes/class-install.php:569, classes/class-install.php:572
212
- msgid "View customer shipping name"
213
  msgstr ""
214
 
215
- #: classes/class-install.php:570
216
- msgid "View customer shipping address fields"
217
  msgstr ""
218
 
219
- #: classes/class-install.php:571
220
- msgid "View customer billing address fields"
 
 
 
 
221
  msgstr ""
222
 
223
  #: classes/class-install.php:575
224
- msgid "Add product"
225
  msgstr ""
226
 
227
  #: classes/class-install.php:576
228
- msgid "Edit product"
229
  msgstr ""
230
 
231
  #: classes/class-install.php:577
232
- msgid "Edit published product"
233
  msgstr ""
234
 
235
  #: classes/class-install.php:578
236
- msgid "Publish product directly without approval"
237
  msgstr ""
238
 
239
  #: classes/class-install.php:579
240
- msgid "Delete product"
241
  msgstr ""
242
 
243
- #: classes/class-install.php:580
244
- msgid "Duplicate product"
245
  msgstr ""
246
 
247
- #: classes/class-install.php:581
248
- msgid "View product"
249
  msgstr ""
250
 
251
- #: classes/class-install.php:585
252
- msgid "View overview report"
 
 
 
 
253
  msgstr ""
254
 
255
  #: classes/class-install.php:586
256
- msgid "View daily sales report"
257
  msgstr ""
258
 
259
  #: classes/class-install.php:587
260
- msgid "View top selling report"
261
  msgstr ""
262
 
263
  #: classes/class-install.php:588
264
- msgid "View top earning report"
 
 
 
 
 
 
 
 
265
  msgstr ""
266
 
267
  #: classes/class-install.php:591
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  msgid "View dashboard menu"
269
  msgstr ""
270
 
271
- #: classes/class-install.php:592
272
  msgid "View product menu"
273
  msgstr ""
274
 
275
- #: classes/class-install.php:593
276
- msgid "View order menu"
277
  msgstr ""
278
 
279
- #: classes/class-install.php:594
280
  msgid "View store settings menu"
281
  msgstr ""
282
 
@@ -318,6 +378,10 @@ msgstr ""
318
  msgid "Commissions"
319
  msgstr ""
320
 
 
 
 
 
321
  #: classes/admin/class-admin-reports.php:43
322
  msgid "Overview"
323
  msgstr ""
@@ -454,23 +518,23 @@ msgstr ""
454
  msgid "Set primary role to %s "
455
  msgstr ""
456
 
457
- #: classes/admin/class-product-meta.php:142, classes/admin/class-product-meta.php:278
458
  msgid "Assign media to %s"
459
  msgstr ""
460
 
461
- #: classes/admin/class-product-meta.php:191, classes/admin/class-product-meta.php:209, classes/admin/class-wcv-commissions-csv-exporter.php:47, classes/admin/class-wcv-commissions-page.php:133, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:42, 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
462
  msgid "Commission"
463
  msgstr ""
464
 
465
- #: classes/admin/class-product-meta.php:218, classes/admin/views/html-vendor-meta.php:110
466
  msgid "Leave blank for default"
467
  msgstr ""
468
 
469
- #: classes/admin/class-product-meta.php:237
470
  msgid "%s Store "
471
  msgstr ""
472
 
473
- #: classes/admin/class-product-meta.php:322
474
  msgid "— No change —"
475
  msgstr ""
476
 
@@ -490,6 +554,56 @@ msgstr ""
490
  msgid "Ready!"
491
  msgstr ""
492
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  #. translators: %1$s: link to videos, %2$s: link to docs
494
  #: classes/admin/class-setup-wizard.php:410
495
  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>."
@@ -658,10 +772,6 @@ msgstr ""
658
  msgid "For more information:"
659
  msgstr ""
660
 
661
- #: classes/admin/class-wcv-admin-help.php:119
662
- msgid "Upgrade to Pro"
663
- msgstr ""
664
-
665
  #: classes/admin/class-wcv-admin-help.php:120
666
  msgid "Buy extensions"
667
  msgstr ""
@@ -879,7 +989,7 @@ msgstr ""
879
  msgid "All"
880
  msgstr ""
881
 
882
- #: classes/admin/class-wcv-commissions-sum-csv-exporter.php:45, classes/gateways/PayPal_AdvPayments/paypal_ap.php:179, classes/gateways/PayPal_AdvPayments/paypal_ap.php:213
883
  msgid "PayPal Email"
884
  msgstr ""
885
 
@@ -1849,7 +1959,7 @@ msgstr ""
1849
  msgid "Labels"
1850
  msgstr ""
1851
 
1852
- #: classes/admin/settings/class-wcv-settings-display.php:66, classes/admin/settings/class-wcv-settings-display.php:102, classes/admin/settings/class-wcv-settings-payments.php:67, classes/admin/settings/class-wcv-settings-payments.php:74, classes/admin/settings/class-wcv-settings-payments.php:127
1853
  msgstr ""
1854
 
1855
  #: classes/admin/settings/class-wcv-settings-display.php:68
@@ -2124,75 +2234,75 @@ msgstr ""
2124
  msgid "Payments"
2125
  msgstr ""
2126
 
2127
- #: classes/admin/settings/class-wcv-settings-payments.php:47, classes/gateways/PayPal_AdvPayments/paypal_ap.php:43
2128
  msgid "PayPal Adaptive Payments"
2129
  msgstr ""
2130
 
2131
- #: classes/admin/settings/class-wcv-settings-payments.php:69
2132
  msgid "<h3>PayPal Adaptive Payments - Please Note: PayPal Adaptive Payments has been deprecated by PayPal as of September 2017. These options are for existing users only. This will be completely removed in a future version.</h3>"
2133
  msgstr ""
2134
 
2135
- #: classes/admin/settings/class-wcv-settings-payments.php:76
2136
  msgid "Total Commission due: %s"
2137
  msgstr ""
2138
 
2139
- #: classes/admin/settings/class-wcv-settings-payments.php:81
2140
  msgid "Instant Pay"
2141
  msgstr ""
2142
 
2143
- #: classes/admin/settings/class-wcv-settings-payments.php:82
2144
  msgid "Enable instantpay"
2145
  msgstr ""
2146
 
2147
- #: classes/admin/settings/class-wcv-settings-payments.php:83
2148
  msgid "Instantly pay %1$s their commission when an order is made, and if a %1$s has a valid PayPal email added on their Shop Settings page."
2149
  msgstr ""
2150
 
2151
- #: classes/admin/settings/class-wcv-settings-payments.php:90
2152
  msgid "Payment schedule"
2153
  msgstr ""
2154
 
2155
- #: classes/admin/settings/class-wcv-settings-payments.php:91
2156
  msgid "Note: Schedule will only work if instant pay is unchecked"
2157
  msgstr ""
2158
 
2159
- #: classes/admin/settings/class-wcv-settings-payments.php:95
2160
  msgid "Daily"
2161
  msgstr ""
2162
 
2163
- #: classes/admin/settings/class-wcv-settings-payments.php:96
2164
  msgid "Weekly"
2165
  msgstr ""
2166
 
2167
- #: classes/admin/settings/class-wcv-settings-payments.php:97
2168
  msgid "Biweekly"
2169
  msgstr ""
2170
 
2171
- #: classes/admin/settings/class-wcv-settings-payments.php:98
2172
  msgid "Monthly"
2173
  msgstr ""
2174
 
2175
- #: classes/admin/settings/class-wcv-settings-payments.php:99
2176
  msgid "Manual"
2177
  msgstr ""
2178
 
2179
- #: classes/admin/settings/class-wcv-settings-payments.php:100
2180
  msgid "Now"
2181
  msgstr ""
2182
 
2183
- #: classes/admin/settings/class-wcv-settings-payments.php:105
2184
  msgid "Email notification"
2185
  msgstr ""
2186
 
2187
- #: classes/admin/settings/class-wcv-settings-payments.php:106
2188
  msgid "Enable notify the admin"
2189
  msgstr ""
2190
 
2191
- #: classes/admin/settings/class-wcv-settings-payments.php:107
2192
  msgid "Send the marketplace admin an email each time a payment has been made via the payment schedule options above"
2193
  msgstr ""
2194
 
2195
- #: classes/admin/settings/class-wcv-settings-payments.php:129
2196
  msgid "<strong>Payments controls how your %s commission is paid out. These settings only function if you are using a supported gateway.</strong> "
2197
  msgstr ""
2198
 
@@ -2340,6 +2450,10 @@ msgstr ""
2340
  msgid "Our list of premium extesnions for WC Vendors can be found on our website. <a href=\"%s\">Click here to view our extensions list.</a>"
2341
  msgstr ""
2342
 
 
 
 
 
2343
  #: classes/admin/views/html-vendor-meta.php:15
2344
  msgid "Enable HTML for the shop description"
2345
  msgstr ""
@@ -2496,119 +2610,123 @@ msgstr ""
2496
  msgid "You must accept the terms and conditions to become a vendor."
2497
  msgstr ""
2498
 
2499
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:119
 
 
 
 
2500
  msgid "Something went wrong. Response from PayPal invalidated this order. Status: %s."
2501
  msgstr ""
2502
 
2503
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:124
2504
  msgid "IPN payment completed"
2505
  msgstr ""
2506
 
2507
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:146
2508
  msgid "Enable PayPal Adaptive Payments"
2509
  msgstr ""
2510
 
2511
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:152
2512
  msgid "Method Title"
2513
  msgstr ""
2514
 
2515
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:153, classes/gateways/WCV_Gateway_Test/class-wcv-gateway-test.php:70
2516
  msgid "This controls the title which the user sees during checkout."
2517
  msgstr ""
2518
 
2519
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:154
2520
  msgid "PayPal"
2521
  msgstr ""
2522
 
2523
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:159, classes/gateways/WCV_Gateway_Test/class-wcv-gateway-test.php:75
2524
  msgid "Description"
2525
  msgstr ""
2526
 
2527
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:160
2528
  msgid "This controls the description which the user sees during checkout."
2529
  msgstr ""
2530
 
2531
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:161
2532
  msgid "Pay via PayPal!"
2533
  msgstr ""
2534
 
2535
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:172
2536
  msgid "Live Credentials"
2537
  msgstr ""
2538
 
2539
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:174
2540
  msgid "You must have an <a href=\"%s\">Application ID</a> to process live transactions. You do not need one for testing in Sandbox mode."
2541
  msgstr ""
2542
 
2543
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:180, classes/gateways/PayPal_AdvPayments/paypal_ap.php:214
2544
  msgid "The email address main payments should go to."
2545
  msgstr ""
2546
 
2547
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:185, classes/gateways/PayPal_AdvPayments/paypal_ap.php:219
2548
  msgid "API Username"
2549
  msgstr ""
2550
 
2551
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:190, classes/gateways/PayPal_AdvPayments/paypal_ap.php:224
2552
  msgid "API Password"
2553
  msgstr ""
2554
 
2555
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:195, classes/gateways/PayPal_AdvPayments/paypal_ap.php:229
2556
  msgid "API Signature"
2557
  msgstr ""
2558
 
2559
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:200
2560
  msgid "Application ID"
2561
  msgstr ""
2562
 
2563
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:202
2564
  msgid "Only required when doing live transactions."
2565
  msgstr ""
2566
 
2567
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:206
2568
  msgid "Sandbox Credentials"
2569
  msgstr ""
2570
 
2571
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:208
2572
  msgid "You can signup for a sandbox developer account <a href=\"%s\">here</a>. You need a developer account if you want to enable Sandbox mode for testing."
2573
  msgstr ""
2574
 
2575
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:240
2576
  msgid "Misc. Settings"
2577
  msgstr ""
2578
 
2579
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:245
2580
  msgid "Enable PayPal Sandbox mode"
2581
  msgstr ""
2582
 
2583
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:251
2584
  msgid "Enable logging"
2585
  msgstr ""
2586
 
2587
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:269
2588
  msgid "The PayPal Adaptive Payments gateway can instantly pay your vendors their due commission (if enabled). Also used to mass pay vendors on a schedule / manual method (if enabled)."
2589
  msgstr ""
2590
 
2591
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:270
2592
  msgid "Please Note: PayPal has deprecated Adaptive Payments. This will soon cease to function."
2593
  msgstr ""
2594
 
2595
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:281
2596
  msgid "Gateway Disabled"
2597
  msgstr ""
2598
 
2599
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:281
2600
  msgid "%s does not support your store currency."
2601
  msgstr ""
2602
 
2603
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:390, classes/gateways/PayPal_AdvPayments/paypal_ap.php:506, classes/gateways/PayPal_Masspay/class-paypal-masspay.php:156
2604
  msgid "Error: %s"
2605
  msgstr ""
2606
 
2607
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:399, classes/gateways/PayPal_AdvPayments/paypal_ap.php:400
2608
  msgid "Error ID: %s. %s"
2609
  msgstr ""
2610
 
2611
- #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:514, classes/gateways/PayPal_AdvPayments/paypal_ap.php:515
2612
  msgid "Error ID: %d. %s"
2613
  msgstr ""
2614
 
1
+ # Copyright (C) 2020 WC Vendors Marketplace
2
  # This file is distributed under the same license as the WC Vendors Marketplace package.
3
  msgid ""
4
  msgstr ""
56
  msgid "Payment total: %s"
57
  msgstr ""
58
 
59
+ #: classes/class-install.php:161, classes/admin/class-wcv-admin-setup.php:153
60
  msgid "Pending %s"
61
  msgstr ""
62
 
63
+ #: 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:249, classes/admin/class-product-meta.php:300, 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:44, classes/admin/class-wcv-commissions-page.php:130, classes/admin/class-wcv-commissions-sum-csv-exporter.php:43, classes/admin/settings/class-wcv-settings-display.php:113, classes/admin/settings/class-wcv-settings-display.php:121, classes/admin/settings/class-wcv-settings-display.php:229
64
  msgid "%s"
65
  msgstr ""
66
 
67
+ #: classes/class-install.php:259
68
  msgctxt "Page slug"
69
  msgid "vendor_dashboard"
70
  msgstr ""
71
 
72
+ #: classes/class-install.php:261
73
  msgctxt "Page title"
74
  msgid "%s Dashboard"
75
  msgstr ""
76
 
77
+ #: classes/class-install.php:267
78
  msgctxt "Page slug"
79
  msgid "vendors"
80
  msgstr ""
81
 
82
+ #: classes/class-install.php:269
83
  msgctxt "Page title"
84
  msgid "%s"
85
  msgstr ""
86
 
87
+ #: classes/class-install.php:277
88
  msgctxt "Page slug"
89
  msgid "shop_settings"
90
  msgstr ""
91
 
92
+ #: classes/class-install.php:278
93
  msgctxt "Page title"
94
  msgid "Shop Settings"
95
  msgstr ""
96
 
97
+ #: classes/class-install.php:283
98
  msgctxt "Page slug"
99
  msgid "product_orders"
100
  msgstr ""
101
 
102
+ #: classes/class-install.php:284
103
  msgctxt "Page title"
104
  msgid "Orders"
105
  msgstr ""
106
 
107
+ #: classes/class-install.php:493
108
  msgid "View WC Vendors settings"
109
  msgstr ""
110
 
111
+ #: classes/class-install.php:493, classes/admin/class-admin-menus.php:113, templates/dashboard/settings/settings.php:17
112
  msgid "Settings"
113
  msgstr ""
114
 
115
+ #: classes/class-install.php:511
116
  msgid "View WC Vendors documentation"
117
  msgstr ""
118
 
119
+ #: classes/class-install.php:511
120
  msgid "Docs"
121
  msgstr ""
122
 
123
+ #: classes/class-install.php:512
124
  msgid "Visit community forums"
125
  msgstr ""
126
 
127
+ #: classes/class-install.php:512
128
  msgid "Free support"
129
  msgstr ""
130
 
131
+ #: classes/class-install.php:513
132
  msgid "Buy premium customer support"
133
  msgstr ""
134
 
135
+ #: classes/class-install.php:513
136
  msgid "Premium support"
137
  msgstr ""
138
 
139
+ #: classes/class-install.php:514, classes/admin/class-wcv-admin-help.php:119
140
+ msgid "Upgrade to Pro"
141
+ msgstr ""
142
+
143
+ #: classes/class-install.php:549
144
  msgid "Vendor is enabled"
145
  msgstr ""
146
 
147
+ #: classes/class-install.php:550
148
  msgid "Vendor is verified"
149
  msgstr ""
150
 
151
+ #: classes/class-install.php:551
152
  msgid "Vendor is trusted"
153
  msgstr ""
154
 
155
  #: classes/class-install.php:552
156
+ msgid "Manage Products"
157
  msgstr ""
158
 
159
  #: classes/class-install.php:553
160
+ msgid "Manage orders"
161
  msgstr ""
162
 
163
  #: classes/class-install.php:554
164
+ msgid "Manage coupons"
165
  msgstr ""
166
 
167
  #: classes/class-install.php:555
168
+ msgid "Manage ratings"
169
  msgstr ""
170
 
171
  #: classes/class-install.php:556
172
+ msgid "Manage Store Settings"
173
  msgstr ""
174
 
175
  #: classes/class-install.php:557
176
+ msgid "Manage Store Shipping"
177
  msgstr ""
178
 
179
  #: classes/class-install.php:558
180
+ msgid "View Store"
181
  msgstr ""
182
 
183
  #: classes/class-install.php:561
184
+ msgid "View sales overview"
185
  msgstr ""
186
 
187
  #: classes/class-install.php:562
188
+ msgid "View sales report chart"
189
  msgstr ""
190
 
191
  #: classes/class-install.php:563
192
+ msgid "View vendor notices"
193
  msgstr ""
194
 
195
+ #: classes/class-install.php:564
196
+ msgid "View order report"
197
  msgstr ""
198
 
199
  #: classes/class-install.php:565
200
+ msgid "View order overview"
201
  msgstr ""
202
 
203
  #: classes/class-install.php:566
204
+ msgid "View ratings report"
205
  msgstr ""
206
 
207
  #: classes/class-install.php:567
208
+ msgid "View product status report"
209
  msgstr ""
210
 
211
+ #: classes/class-install.php:570
212
+ msgid "Add product"
213
  msgstr ""
214
 
215
+ #: classes/class-install.php:571
216
+ msgid "Edit product"
217
  msgstr ""
218
 
219
+ #: classes/class-install.php:572
220
+ msgid "Edit published product"
221
  msgstr ""
222
 
223
+ #: classes/class-install.php:573
224
+ msgid "Publish product directly without approval"
225
+ msgstr ""
226
+
227
+ #: classes/class-install.php:574
228
+ msgid "Delete product"
229
  msgstr ""
230
 
231
  #: classes/class-install.php:575
232
+ msgid "Duplicate product"
233
  msgstr ""
234
 
235
  #: classes/class-install.php:576
236
+ msgid "Featured product"
237
  msgstr ""
238
 
239
  #: classes/class-install.php:577
240
+ msgid "View product"
241
  msgstr ""
242
 
243
  #: classes/class-install.php:578
244
+ msgid "Import product"
245
  msgstr ""
246
 
247
  #: classes/class-install.php:579
248
+ msgid "Export product"
249
  msgstr ""
250
 
251
+ #: classes/class-install.php:582
252
+ msgid "View order"
253
  msgstr ""
254
 
255
+ #: classes/class-install.php:583
256
+ msgid "Add order notes"
257
  msgstr ""
258
 
259
+ #: classes/class-install.php:584
260
+ msgid "View order notes"
261
+ msgstr ""
262
+
263
+ #: classes/class-install.php:585, templates/orders/csv-export.php:22
264
+ msgid "Export orders"
265
  msgstr ""
266
 
267
  #: classes/class-install.php:586
268
+ msgid "Manage order status"
269
  msgstr ""
270
 
271
  #: classes/class-install.php:587
272
+ msgid "View customer name"
273
  msgstr ""
274
 
275
  #: classes/class-install.php:588
276
+ msgid "View customer phone number"
277
+ msgstr ""
278
+
279
+ #: classes/class-install.php:589, classes/class-install.php:592
280
+ msgid "View customer shipping name"
281
+ msgstr ""
282
+
283
+ #: classes/class-install.php:590
284
+ msgid "View customer shipping address fields"
285
  msgstr ""
286
 
287
  #: classes/class-install.php:591
288
+ msgid "View customer billing address fields"
289
+ msgstr ""
290
+
291
+ #: classes/class-install.php:595
292
+ msgid "Add coupon"
293
+ msgstr ""
294
+
295
+ #: classes/class-install.php:596
296
+ msgid "Edit coupon"
297
+ msgstr ""
298
+
299
+ #: classes/class-install.php:597
300
+ msgid "Delete coupon"
301
+ msgstr ""
302
+
303
+ #: classes/class-install.php:600
304
+ msgid "View overview report"
305
+ msgstr ""
306
+
307
+ #: classes/class-install.php:601
308
+ msgid "View daily sales report"
309
+ msgstr ""
310
+
311
+ #: classes/class-install.php:602
312
+ msgid "View top selling report"
313
+ msgstr ""
314
+
315
+ #: classes/class-install.php:603
316
+ msgid "View top earning report"
317
+ msgstr ""
318
+
319
+ #: classes/class-install.php:604
320
+ msgid "View statement report"
321
+ msgstr ""
322
+
323
+ #: classes/class-install.php:607, classes/class-install.php:610, classes/class-install.php:611
324
+ msgid "View order menu"
325
+ msgstr ""
326
+
327
+ #: classes/class-install.php:608
328
  msgid "View dashboard menu"
329
  msgstr ""
330
 
331
+ #: classes/class-install.php:609
332
  msgid "View product menu"
333
  msgstr ""
334
 
335
+ #: classes/class-install.php:612
336
+ msgid "View ratings menu"
337
  msgstr ""
338
 
339
+ #: classes/class-install.php:613
340
  msgid "View store settings menu"
341
  msgstr ""
342
 
378
  msgid "Commissions"
379
  msgstr ""
380
 
381
+ #: classes/admin/class-admin-menus.php:112
382
+ msgid "WC Vendors Settings"
383
+ msgstr ""
384
+
385
  #: classes/admin/class-admin-reports.php:43
386
  msgid "Overview"
387
  msgstr ""
518
  msgid "Set primary role to %s "
519
  msgstr ""
520
 
521
+ #: classes/admin/class-product-meta.php:140, classes/admin/class-product-meta.php:256
522
  msgid "Assign media to %s"
523
  msgstr ""
524
 
525
+ #: classes/admin/class-product-meta.php:183, classes/admin/class-product-meta.php:201, classes/admin/class-wcv-commissions-csv-exporter.php:47, classes/admin/class-wcv-commissions-page.php:133, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:42, 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
526
  msgid "Commission"
527
  msgstr ""
528
 
529
+ #: classes/admin/class-product-meta.php:210, classes/admin/views/html-vendor-meta.php:110
530
  msgid "Leave blank for default"
531
  msgstr ""
532
 
533
+ #: classes/admin/class-product-meta.php:229
534
  msgid "%s Store "
535
  msgstr ""
536
 
537
+ #: classes/admin/class-product-meta.php:294
538
  msgid "— No change —"
539
  msgstr ""
540
 
554
  msgid "Ready!"
555
  msgstr ""
556
 
557
+ #: classes/admin/class-setup-wizard.php:114
558
+ msgctxt "enhanced select"
559
+ msgid "No matches found"
560
+ msgstr ""
561
+
562
+ #: classes/admin/class-setup-wizard.php:115
563
+ msgctxt "enhanced select"
564
+ msgid "Loading failed"
565
+ msgstr ""
566
+
567
+ #: classes/admin/class-setup-wizard.php:116
568
+ msgctxt "enhanced select"
569
+ msgid "Please enter 1 or more characters"
570
+ msgstr ""
571
+
572
+ #: classes/admin/class-setup-wizard.php:117
573
+ msgctxt "enhanced select"
574
+ msgid "Please enter %qty% or more characters"
575
+ msgstr ""
576
+
577
+ #: classes/admin/class-setup-wizard.php:118
578
+ msgctxt "enhanced select"
579
+ msgid "Please delete 1 character"
580
+ msgstr ""
581
+
582
+ #: classes/admin/class-setup-wizard.php:119
583
+ msgctxt "enhanced select"
584
+ msgid "Please delete %qty% characters"
585
+ msgstr ""
586
+
587
+ #: classes/admin/class-setup-wizard.php:120
588
+ msgctxt "enhanced select"
589
+ msgid "You can only select 1 item"
590
+ msgstr ""
591
+
592
+ #: classes/admin/class-setup-wizard.php:121
593
+ msgctxt "enhanced select"
594
+ msgid "You can only select %qty% items"
595
+ msgstr ""
596
+
597
+ #: classes/admin/class-setup-wizard.php:122
598
+ msgctxt "enhanced select"
599
+ msgid "Loading more results&hellip;"
600
+ msgstr ""
601
+
602
+ #: classes/admin/class-setup-wizard.php:123
603
+ msgctxt "enhanced select"
604
+ msgid "Searching&hellip;"
605
+ msgstr ""
606
+
607
  #. translators: %1$s: link to videos, %2$s: link to docs
608
  #: classes/admin/class-setup-wizard.php:410
609
  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>."
772
  msgid "For more information:"
773
  msgstr ""
774
 
 
 
 
 
775
  #: classes/admin/class-wcv-admin-help.php:120
776
  msgid "Buy extensions"
777
  msgstr ""
989
  msgid "All"
990
  msgstr ""
991
 
992
+ #: classes/admin/class-wcv-commissions-sum-csv-exporter.php:45, classes/gateways/PayPal_AdvPayments/paypal_ap.php:183, classes/gateways/PayPal_AdvPayments/paypal_ap.php:217
993
  msgid "PayPal Email"
994
  msgstr ""
995
 
1959
  msgid "Labels"
1960
  msgstr ""
1961
 
1962
+ #: classes/admin/settings/class-wcv-settings-display.php:66, classes/admin/settings/class-wcv-settings-display.php:102, classes/admin/settings/class-wcv-settings-payments.php:71, classes/admin/settings/class-wcv-settings-payments.php:78, classes/admin/settings/class-wcv-settings-payments.php:131
1963
  msgstr ""
1964
 
1965
  #: classes/admin/settings/class-wcv-settings-display.php:68
2234
  msgid "Payments"
2235
  msgstr ""
2236
 
2237
+ #: classes/admin/settings/class-wcv-settings-payments.php:51
2238
  msgid "PayPal Adaptive Payments"
2239
  msgstr ""
2240
 
2241
+ #: classes/admin/settings/class-wcv-settings-payments.php:73
2242
  msgid "<h3>PayPal Adaptive Payments - Please Note: PayPal Adaptive Payments has been deprecated by PayPal as of September 2017. These options are for existing users only. This will be completely removed in a future version.</h3>"
2243
  msgstr ""
2244
 
2245
+ #: classes/admin/settings/class-wcv-settings-payments.php:80
2246
  msgid "Total Commission due: %s"
2247
  msgstr ""
2248
 
2249
+ #: classes/admin/settings/class-wcv-settings-payments.php:85
2250
  msgid "Instant Pay"
2251
  msgstr ""
2252
 
2253
+ #: classes/admin/settings/class-wcv-settings-payments.php:86
2254
  msgid "Enable instantpay"
2255
  msgstr ""
2256
 
2257
+ #: classes/admin/settings/class-wcv-settings-payments.php:87
2258
  msgid "Instantly pay %1$s their commission when an order is made, and if a %1$s has a valid PayPal email added on their Shop Settings page."
2259
  msgstr ""
2260
 
2261
+ #: classes/admin/settings/class-wcv-settings-payments.php:94
2262
  msgid "Payment schedule"
2263
  msgstr ""
2264
 
2265
+ #: classes/admin/settings/class-wcv-settings-payments.php:95
2266
  msgid "Note: Schedule will only work if instant pay is unchecked"
2267
  msgstr ""
2268
 
2269
+ #: classes/admin/settings/class-wcv-settings-payments.php:99
2270
  msgid "Daily"
2271
  msgstr ""
2272
 
2273
+ #: classes/admin/settings/class-wcv-settings-payments.php:100
2274
  msgid "Weekly"
2275
  msgstr ""
2276
 
2277
+ #: classes/admin/settings/class-wcv-settings-payments.php:101
2278
  msgid "Biweekly"
2279
  msgstr ""
2280
 
2281
+ #: classes/admin/settings/class-wcv-settings-payments.php:102
2282
  msgid "Monthly"
2283
  msgstr ""
2284
 
2285
+ #: classes/admin/settings/class-wcv-settings-payments.php:103
2286
  msgid "Manual"
2287
  msgstr ""
2288
 
2289
+ #: classes/admin/settings/class-wcv-settings-payments.php:104
2290
  msgid "Now"
2291
  msgstr ""
2292
 
2293
+ #: classes/admin/settings/class-wcv-settings-payments.php:109
2294
  msgid "Email notification"
2295
  msgstr ""
2296
 
2297
+ #: classes/admin/settings/class-wcv-settings-payments.php:110
2298
  msgid "Enable notify the admin"
2299
  msgstr ""
2300
 
2301
+ #: classes/admin/settings/class-wcv-settings-payments.php:111
2302
  msgid "Send the marketplace admin an email each time a payment has been made via the payment schedule options above"
2303
  msgstr ""
2304
 
2305
+ #: classes/admin/settings/class-wcv-settings-payments.php:133
2306
  msgid "<strong>Payments controls how your %s commission is paid out. These settings only function if you are using a supported gateway.</strong> "
2307
  msgstr ""
2308
 
2450
  msgid "Our list of premium extesnions for WC Vendors can be found on our website. <a href=\"%s\">Click here to view our extensions list.</a>"
2451
  msgstr ""
2452
 
2453
+ #: classes/admin/views/html-admin-settings.php:43, classes/admin/views/html-admin-settings.php:43
2454
+ msgid "Save changes"
2455
+ msgstr ""
2456
+
2457
  #: classes/admin/views/html-vendor-meta.php:15
2458
  msgid "Enable HTML for the shop description"
2459
  msgstr ""
2610
  msgid "You must accept the terms and conditions to become a vendor."
2611
  msgstr ""
2612
 
2613
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:47
2614
+ msgid "PayPal Adaptive Payments - deprecated do not use"
2615
+ msgstr ""
2616
+
2617
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:123
2618
  msgid "Something went wrong. Response from PayPal invalidated this order. Status: %s."
2619
  msgstr ""
2620
 
2621
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:128
2622
  msgid "IPN payment completed"
2623
  msgstr ""
2624
 
2625
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:150
2626
  msgid "Enable PayPal Adaptive Payments"
2627
  msgstr ""
2628
 
2629
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:156
2630
  msgid "Method Title"
2631
  msgstr ""
2632
 
2633
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:157, classes/gateways/WCV_Gateway_Test/class-wcv-gateway-test.php:70
2634
  msgid "This controls the title which the user sees during checkout."
2635
  msgstr ""
2636
 
2637
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:158
2638
  msgid "PayPal"
2639
  msgstr ""
2640
 
2641
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:163, classes/gateways/WCV_Gateway_Test/class-wcv-gateway-test.php:75
2642
  msgid "Description"
2643
  msgstr ""
2644
 
2645
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:164
2646
  msgid "This controls the description which the user sees during checkout."
2647
  msgstr ""
2648
 
2649
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:165
2650
  msgid "Pay via PayPal!"
2651
  msgstr ""
2652
 
2653
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:176
2654
  msgid "Live Credentials"
2655
  msgstr ""
2656
 
2657
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:178
2658
  msgid "You must have an <a href=\"%s\">Application ID</a> to process live transactions. You do not need one for testing in Sandbox mode."
2659
  msgstr ""
2660
 
2661
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:184, classes/gateways/PayPal_AdvPayments/paypal_ap.php:218
2662
  msgid "The email address main payments should go to."
2663
  msgstr ""
2664
 
2665
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:189, classes/gateways/PayPal_AdvPayments/paypal_ap.php:223
2666
  msgid "API Username"
2667
  msgstr ""
2668
 
2669
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:194, classes/gateways/PayPal_AdvPayments/paypal_ap.php:228
2670
  msgid "API Password"
2671
  msgstr ""
2672
 
2673
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:199, classes/gateways/PayPal_AdvPayments/paypal_ap.php:233
2674
  msgid "API Signature"
2675
  msgstr ""
2676
 
2677
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:204
2678
  msgid "Application ID"
2679
  msgstr ""
2680
 
2681
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:206
2682
  msgid "Only required when doing live transactions."
2683
  msgstr ""
2684
 
2685
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:210
2686
  msgid "Sandbox Credentials"
2687
  msgstr ""
2688
 
2689
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:212
2690
  msgid "You can signup for a sandbox developer account <a href=\"%s\">here</a>. You need a developer account if you want to enable Sandbox mode for testing."
2691
  msgstr ""
2692
 
2693
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:244
2694
  msgid "Misc. Settings"
2695
  msgstr ""
2696
 
2697
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:249
2698
  msgid "Enable PayPal Sandbox mode"
2699
  msgstr ""
2700
 
2701
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:255
2702
  msgid "Enable logging"
2703
  msgstr ""
2704
 
2705
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:273
2706
  msgid "The PayPal Adaptive Payments gateway can instantly pay your vendors their due commission (if enabled). Also used to mass pay vendors on a schedule / manual method (if enabled)."
2707
  msgstr ""
2708
 
2709
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:274
2710
  msgid "Please Note: PayPal has deprecated Adaptive Payments. This will soon cease to function."
2711
  msgstr ""
2712
 
2713
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:285
2714
  msgid "Gateway Disabled"
2715
  msgstr ""
2716
 
2717
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:285
2718
  msgid "%s does not support your store currency."
2719
  msgstr ""
2720
 
2721
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:394, classes/gateways/PayPal_AdvPayments/paypal_ap.php:510, classes/gateways/PayPal_Masspay/class-paypal-masspay.php:156
2722
  msgid "Error: %s"
2723
  msgstr ""
2724
 
2725
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:403, classes/gateways/PayPal_AdvPayments/paypal_ap.php:404
2726
  msgid "Error ID: %s. %s"
2727
  msgstr ""
2728
 
2729
+ #: classes/gateways/PayPal_AdvPayments/paypal_ap.php:518, classes/gateways/PayPal_AdvPayments/paypal_ap.php:519
2730
  msgid "Error ID: %d. %s"
2731
  msgstr ""
2732
 
readme.txt CHANGED
@@ -6,10 +6,10 @@ Author URI: https://www.wcvendors.com/
6
  Plugin URI: https://www.wcvendors.com/
7
  Requires at least: 5.0.0
8
  Requires PHP: 5.6
9
- Tested up to: 5.2.4
10
  WC requires at least: 3.3.0
11
- WC tested up to: 3.8.0
12
- Stable tag: 2.1.16
13
  License: GPLv2 or later
14
 
15
  The number one most downloaded marketplace plugin for WooCommerce. Now you can allow anyone to open a store on your WooCommerce site!
@@ -254,6 +254,15 @@ WC Vendors Marketplace does not work with multisite WordPress. There are no plan
254
 
255
  == Changelog ==
256
 
 
 
 
 
 
 
 
 
 
257
  = Version 2.1.16 - 16th October 2019 =
258
 
259
  * Updated: Extensions page product links
6
  Plugin URI: https://www.wcvendors.com/
7
  Requires at least: 5.0.0
8
  Requires PHP: 5.6
9
+ Tested up to: 5.3.2
10
  WC requires at least: 3.3.0
11
+ WC tested up to: 3.8.1
12
+ Stable tag: 2.1.17
13
  License: GPLv2 or later
14
 
15
  The number one most downloaded marketplace plugin for WooCommerce. Now you can allow anyone to open a store on your WooCommerce site!
254
 
255
  == Changelog ==
256
 
257
+ Version 2.1.17 - 2nd January 2020
258
+
259
+ * Added: New template tag for sold by link (#602)
260
+ * Updated: Disabled PayPal Adaptive payments #596
261
+ * Fixed: text domain on strings
262
+ * Fixed: Performance issue in WP-Admin area in large marketplaces #604 (#608)
263
+ * Fixed: CircleCI (#606)
264
+ * Fixed: Sold by label spacing on single product page #597
265
+
266
  = Version 2.1.16 - 16th October 2019 =
267
 
268
  * Updated: Extensions page product links
templates/front/vendor-sold-by.php CHANGED
@@ -8,7 +8,7 @@
8
  *
9
  * @author Jamie Madden, WC Vendors
10
  * @package WCVendors/Templates/Emails/HTML
11
- * @version 2.0.0
12
  *
13
  *
14
  * Template Variables available
@@ -26,5 +26,4 @@ if ( ! defined( 'ABSPATH' ) ) {
26
  exit;
27
  }
28
  ?>
29
- <small class="wcvendors_sold_by_in_loop"><?php echo apply_filters( 'wcvendors_sold_by_in_loop', $sold_by_label ); ?><?php echo apply_filters( 'wcvendors_sold_by_separator_in_loop', $sold_by_separator ); ?><?php echo $sold_by; ?>
30
- </small><br/>
8
  *
9
  * @author Jamie Madden, WC Vendors
10
  * @package WCVendors/Templates/Emails/HTML
11
+ * @version 2.1.17
12
  *
13
  *
14
  * Template Variables available
26
  exit;
27
  }
28
  ?>
29
+ <small class="wcvendors_sold_by_in_loop"><?php echo wcv_get_vendor_sold_by( $vendor_id ); ?></small><br/>
 
wporg-deply.sh DELETED
@@ -1,101 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Note that this does not use pipefail
4
- # because if the grep later doesn't match any deleted files,
5
- # which is likely the majority case,
6
- # it does not exit with a 0, and I only care about the final exit.
7
- set -eo
8
-
9
- # Ensure SVN username is set
10
- # IMPORTANT: while secrets are encrypted and not viewable in the GitHub UI,
11
- # they are by necessity provided as plaintext in the context of the Action,
12
- # so do not echo or use debug mode unless you want your secrets exposed!
13
- if [[ -z "$SVN_USERNAME" ]]; then
14
- echo "Set the SVN_USERNAME secret or environment variable"
15
- exit 1
16
- fi
17
-
18
- # Set the SLACK Announce URL
19
- if [[ -z "$SLACKURL" ]]; then
20
- echo "Set the SLACKURL secret or environment variable"
21
- exit 1
22
- fi
23
-
24
- # Git path is the current working dir
25
- if [[ -z "$GITPATH" ]]; then
26
- GITPATH=`pwd`
27
- fi
28
- echo "ℹ︎ GITPATH is $GITPATH"
29
-
30
- # Allow some ENV variables to be customized
31
- if [[ -z "$SLUG" ]]; then
32
- SLUG="wc-vendors"
33
- fi
34
- echo "ℹ︎ SLUG is $SLUG"
35
-
36
- # WordPress.org assets dir
37
- if [[ -z "$ASSETS_DIR" ]]; then
38
- ASSETS_DIR=".wordpress-org"
39
- fi
40
- echo "ℹ︎ ASSETS_DIR is $ASSETS_DIR"
41
-
42
- # Get version from the readme
43
- if [[ -z "$VERSION" ]]; then
44
- VERSION=`grep "^Stable tag:" $GITPATH/readme.txt | awk -F' ' '{print $NF}' | tr -d '\015'`
45
- fi
46
- echo "ℹ︎ VERSION is $VERSION"
47
-
48
- SVN_URL="https://plugins.svn.wordpress.org/${SLUG}/"
49
- SVN_DIR="/tmp/${SLUG}"
50
-
51
- # Checkout just trunk and assets for efficiency
52
- # Tagging will be handled on the SVN level
53
- echo "➤ Checking out .org repository..."
54
- svn checkout --depth immediates "$SVN_URL" "$SVN_DIR"
55
- cd "$SVN_DIR"
56
- svn update --set-depth infinity assets
57
- svn update --set-depth infinity trunk
58
-
59
- echo "➤ Copying files..."
60
- cd "$GITPATH"
61
-
62
- # "Export" a cleaned copy to a temp directory
63
- TMP_DIR="/tmp/${SLUG}-clean"
64
- rm -rf "$TMP_DIR"
65
- mkdir "$TMP_DIR"
66
-
67
- # This will exclude everything in the .gitattributes file with the export-ignore flag
68
- git archive HEAD | tar x --directory="$TMP_DIR"
69
-
70
- cd "$SVN_DIR"
71
-
72
- # Copy from clean copy to /trunk, excluding dotorg assets
73
- # The --delete flag will delete anything in destination that no longer exists in source
74
- rsync -rc "$TMP_DIR/" trunk/ --delete
75
-
76
- # Copy dotorg assets to /assets
77
- rsync -rc "$GITPATH/$ASSETS_DIR/" assets/ --delete
78
-
79
- # Add everything and commit to SVN
80
- # The force flag ensures we recurse into subdirectories even if they are already added
81
- # Suppress stdout in favor of svn status later for readability
82
- echo "➤ Preparing files..."
83
- svn add . --force > /dev/null
84
-
85
- # SVN delete all deleted files
86
- # Also suppress stdout here
87
- svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm % > /dev/null
88
-
89
- # Copy tag locally to make this a single commit
90
- echo "➤ Copying tag..."
91
- svn cp "trunk" "tags/$VERSION"
92
-
93
- svn status
94
-
95
- echo "➤ Committing files..."
96
- svn commit -m "Update to version $VERSION from GitHub" --no-auth-cache --non-interactive --username "$SVN_USERNAME"
97
-
98
- echo "➤ Announcing to slack..."
99
- curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"✓ WC Vendors Marketplace $VERSION deployed to wordpress.org\"}" $SLACKURL
100
-
101
- echo "✓ Plugin deployed!"