WC Vendors - Version 1.9.10

Version Description

No Upgrade required at this time.

Download this release

Release Info

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

Code changes from version 1.9.9 to 1.9.10

changelog.txt CHANGED
@@ -1,5 +1,15 @@
1
  Changelog for WC Vendors
2
 
 
 
 
 
 
 
 
 
 
 
3
  Version 1.9.9
4
 
5
  * Added: Filters to vendor admin dashboard class for custom columns #339
1
  Changelog for WC Vendors
2
 
3
+ Version 1.9.10
4
+
5
+ * Fixed: Terms & Conditions Checkbox is not functioning normally #348
6
+ * Fixed: Apply to Become a Vendor Checkbox is Missing with WC 3.0 + WC Vendors 1.9.9 #349
7
+ * Fixed: New product title formatting is showing product #350
8
+ * Fixed: Incorrect use of wpdb->prepare
9
+ * Fixed: Mark shipped filter not providing parameters correctly
10
+ * Fixed: Incorrect reference to billing email in notification email
11
+ * Updated: Removed Sales reports from backend
12
+
13
  Version 1.9.9
14
 
15
  * Added: Filters to vendor admin dashboard class for custom columns #339
class-wc-vendors.php CHANGED
@@ -8,7 +8,7 @@
8
  * Author URI: https://www.wcvendors.com
9
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
10
  *
11
- * Version: 1.9.9
12
  * Requires at least: 4.4.0
13
  * Tested up to: 4.7.1
14
  *
@@ -72,7 +72,7 @@ if ( wcv_is_woocommerce_activated() ) {
72
  if ( !defined( 'wcv_plugin_dir_path' ) ) define( 'wcv_plugin_dir_path', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
73
 
74
 
75
- define('WCV_VERSION', '1.9.9' );
76
 
77
  /**
78
  * Main Product Vendor class
8
  * Author URI: https://www.wcvendors.com
9
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
10
  *
11
+ * Version: 1.9.10
12
  * Requires at least: 4.4.0
13
  * Tested up to: 4.7.1
14
  *
72
  if ( !defined( 'wcv_plugin_dir_path' ) ) define( 'wcv_plugin_dir_path', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
73
 
74
 
75
+ define('WCV_VERSION', '1.9.10' );
76
 
77
  /**
78
  * Main Product Vendor class
classes/front/class-vendor-shop.php CHANGED
@@ -51,7 +51,7 @@ class WCV_Vendor_Shop
51
  add_action( 'woocommerce_before_single_product', array('WCV_Vendor_Shop', 'vendor_mini_header'));
52
  }
53
 
54
- add_filter( 'pre_get_document_title', array( $this, 'vendor_page_title' ), 999, 1 );
55
 
56
  }
57
 
@@ -334,18 +334,14 @@ class WCV_Vendor_Shop
334
 
335
  /**
336
  * Add the Vendor shop name to the <title> tag on archive and single product page
337
- *
338
  * @since 1.9.9
339
  */
340
  public function vendor_page_title( $title ){
341
 
342
- if ( is_product() ){
343
- global $post;
344
- return sprintf( '%s - %s', __( 'Products', 'wcvendors' ), WCV_Vendors::get_vendor_shop_name( $post->post_author ) );
345
- }
346
-
347
  if ( WCV_Vendors::is_vendor_page() ) {
348
- return sprintf( '%s - %s', __( 'Products', 'wcvendors' ), self::page_title() );
 
349
  }
350
 
351
  return $title;
51
  add_action( 'woocommerce_before_single_product', array('WCV_Vendor_Shop', 'vendor_mini_header'));
52
  }
53
 
54
+ add_filter( 'document_title_parts', array( $this, 'vendor_page_title' ) );
55
 
56
  }
57
 
334
 
335
  /**
336
  * Add the Vendor shop name to the <title> tag on archive and single product page
337
+ *
338
  * @since 1.9.9
339
  */
340
  public function vendor_page_title( $title ){
341
 
 
 
 
 
 
342
  if ( WCV_Vendors::is_vendor_page() ) {
343
+
344
+ $title[ 'title' ] = self::page_title();
345
  }
346
 
347
  return $title;
classes/front/signup/class-vendor-signup.php CHANGED
@@ -21,7 +21,7 @@ class WCV_Vendor_Signup
21
 
22
  $this->terms_page = WC_Vendors::$pv_options->get_option( 'terms_to_apply_page' );
23
 
24
- add_action( 'register_form', array( $this, 'vendor_option' ) );
25
  // add_action( 'login_form', array( $this, 'login_apply_vendor_option' ) );
26
 
27
  if ( ! class_exists( 'WCVendors_Pro' ) ) {
21
 
22
  $this->terms_page = WC_Vendors::$pv_options->get_option( 'terms_to_apply_page' );
23
 
24
+ add_action( 'woocommerce_register_form', array( $this, 'vendor_option' ) );
25
  // add_action( 'login_form', array( $this, 'login_apply_vendor_option' ) );
26
 
27
  if ( ! class_exists( 'WCVendors_Pro' ) ) {
classes/front/signup/views/html-vendor-signup.php CHANGED
@@ -40,16 +40,27 @@
40
 
41
 
42
  <script type="text/javascript">
43
- jQuery(function () {
44
- if (jQuery('#apply_for_vendor').is(':checked')) {
45
- jQuery('.agree-to-terms-container').show();
46
- }
47
 
48
- jQuery( '#wp-submit' ).on( 'click', function( e ) {
49
- alert('something here..');
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  e.preventDefault();
51
- })
52
- })
 
 
53
  </script>
54
 
55
  <?php endif; ?>
40
 
41
 
42
  <script type="text/javascript">
 
 
 
 
43
 
44
+ var error_message = "<?php _e( 'Please agree to the terms and conditions', 'wcvendors'); ?>";
45
+
46
+ jQuery( function( $ ){
47
+
48
+ $( "#apply_for_vendor" ).change( function() {
49
+ if ( this.checked ) {
50
+ $('.agree-to-terms-container').show();
51
+ } else {
52
+ $('.agree-to-terms-container').hide();
53
+ }
54
+ });
55
+
56
+ $( 'form.register').on( 'submit', function ( e ){
57
+ if ( $('#agree_to_terms').is(':visible') && ! $('#agree_to_terms').is(':checked') ) {
58
+ alert( error_message );
59
  e.preventDefault();
60
+ }
61
+ } );
62
+
63
+ });
64
  </script>
65
 
66
  <?php endif; ?>
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "wcvendors",
3
- "version": "1.9.5",
4
  "private": true,
5
  "dependencies": {},
6
  "devDependencies": {
1
  {
2
  "name": "wcvendors",
3
+ "version": "1.9.10",
4
  "private": true,
5
  "dependencies": {},
6
  "devDependencies": {
readme.txt CHANGED
@@ -6,7 +6,7 @@ Author URI: http://www.wcvendors.com/
6
  Plugin URI: http://www.wcvendors.com/
7
  Requires at least: 4.4.0
8
  Tested up to: 4.7.1
9
- Stable tag: 1.9.9
10
  License: GPLv2 or later
11
 
12
  The free marketplace plugin for WooCommerce. Now you can allow anyone to open a store on your site!
@@ -122,6 +122,16 @@ No Upgrade required at this time.
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
 
 
 
 
 
125
  = Version 1.9.9 - 14th March 2017 =
126
 
127
  * Added: Filters to vendor admin dashboard class for custom columns #339
6
  Plugin URI: http://www.wcvendors.com/
7
  Requires at least: 4.4.0
8
  Tested up to: 4.7.1
9
+ Stable tag: 1.9.10
10
  License: GPLv2 or later
11
 
12
  The free marketplace plugin for WooCommerce. Now you can allow anyone to open a store on your site!
122
 
123
  == Changelog ==
124
 
125
+ = Version 1.9.10 - 10th April 2017 =
126
+
127
+ * Fixed: Terms & Conditions Checkbox is not functioning normally #348
128
+ * Fixed: Apply to Become a Vendor Checkbox is Missing with WC 3.0 + WC Vendors 1.9.9 #349
129
+ * Fixed: New product title formatting is showing product #350
130
+ * Fixed: Incorrect use of wpdb->prepare
131
+ * Fixed: Mark shipped filter not providing parameters correctly
132
+ * Fixed: Incorrect reference to billing email in notification email
133
+ * Updated: Removed Sales reports from backend
134
+
135
  = Version 1.9.9 - 14th March 2017 =
136
 
137
  * Added: Filters to vendor admin dashboard class for custom columns #339