YITH WooCommerce Catalog Mode - Version 1.1.1

Version Description

  • Fixed: Minor bugs
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Catalog Mode
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1.0 to 1.1.1

class.yith-woocommerce-catalog-mode.php CHANGED
@@ -125,10 +125,17 @@ class YITH_WC_Catalog_Mode {
125
  * Hides "Add to cart" button from single product page
126
  *
127
  * @since 1.0.0
 
 
 
128
  * @author Alberto Ruggiero
129
  * @return void
130
  */
131
- public function hide_add_to_cart_single( $action = 'woocommerce_single_product_summary' ) {
 
 
 
 
132
 
133
  $priority = has_action( $action, 'woocommerce_template_single_add_to_cart' );
134
 
125
  * Hides "Add to cart" button from single product page
126
  *
127
  * @since 1.0.0
128
+ *
129
+ * @param $action
130
+ *
131
  * @author Alberto Ruggiero
132
  * @return void
133
  */
134
+ public function hide_add_to_cart_single( $action = '' ) {
135
+
136
+ if ( $action == '' ) {
137
+ $action = 'woocommerce_single_product_summary';
138
+ }
139
 
140
  $priority = has_action( $action, 'woocommerce_template_single_add_to_cart' );
141
 
init.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
5
  Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
6
  Author: Yithemes
7
  Text Domain: ywctm
8
- Version: 1.1.0
9
  Author URI: http://yithemes.com/
10
  */
11
 
@@ -34,7 +34,7 @@ function ywctm_install_free_admin_notice() {
34
  }
35
 
36
  if ( ! defined( 'YWCTM_VERSION' ) ) {
37
- define( 'YWCTM_VERSION', '1.1.0' );
38
  }
39
 
40
  if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
5
  Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
6
  Author: Yithemes
7
  Text Domain: ywctm
8
+ Version: 1.1.1
9
  Author URI: http://yithemes.com/
10
  */
11
 
34
  }
35
 
36
  if ( ! defined( 'YWCTM_VERSION' ) ) {
37
+ define( 'YWCTM_VERSION', '1.1.1' );
38
  }
39
 
40
  if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
  Tested up to: 4.2.4
7
- Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,6 +48,10 @@ YITH WooCommerce Catalog Mode will add a new tab called "Catalog Mode" inside th
48
 
49
  == Changelog ==
50
 
 
 
 
 
51
  = 1.1.0 =
52
 
53
  * Added: Support to WooCommerce 2.4
@@ -97,7 +101,7 @@ YITH WooCommerce Catalog Mode will add a new tab called "Catalog Mode" inside th
97
 
98
  == Upgrade Notice ==
99
 
100
- Last Stable Tag 1.1.0
101
 
102
  == Suggestions ==
103
 
4
  Tags: woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
  Tested up to: 4.2.4
7
+ Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.1.1 =
52
+
53
+ * Fixed: Minor bugs
54
+
55
  = 1.1.0 =
56
 
57
  * Added: Support to WooCommerce 2.4
101
 
102
  == Upgrade Notice ==
103
 
104
+ Last Stable Tag 1.1.1
105
 
106
  == Suggestions ==
107