Booster for WooCommerce - Version 1.0.4

Version Description

  • 15/06/2014 =
  • Fix - Add to cart text - on archives now calling the right function.
Download this release

Release Info

Developer algoritmika
Plugin Icon 128x128 Booster for WooCommerce
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

includes/class-wcj-add-to-cart.php CHANGED
@@ -22,9 +22,8 @@ class WCJ_Add_to_cart {
22
  // Main hooks
23
  if ( get_option( 'wcj_add_to_cart_enabled' ) == 'yes' ) {
24
 
25
- add_filter( 'woocommerce_product_single_add_to_cart_text', array( $this, 'custom_add_to_cart_button_text_single' ), 100 );
26
- add_filter( 'woocommerce_product_add_to_cart_text', array( $this, 'custom_add_to_cart_button_text_archives' ), 100 );
27
- //add_filter( 'woocommerce_order_button_text', array( $this, 'custom_add_to_cart_button_text_single' ), 9999 );
28
 
29
  }
30
 
@@ -46,9 +45,9 @@ class WCJ_Add_to_cart {
46
  }
47
 
48
  /**
49
- * custom_add_to_cart_button_text_single.
50
  */
51
- public function custom_add_to_cart_button_text_single( $add_to_cart_text) {
52
 
53
  global $product;
54
 
@@ -71,21 +70,6 @@ class WCJ_Add_to_cart {
71
  // Default
72
  return $add_to_cart_text;
73
  }
74
-
75
- /**
76
- * custom_add_to_cart_button_text_archives.
77
- */
78
- public function custom_add_to_cart_button_text_archives( $add_to_cart_text) {
79
-
80
- global $product;
81
-
82
- $product_type = $product->product_type;
83
-
84
- if ( ! in_array( $product_type, array( 'external', 'grouped', 'simple', 'variable' ) ) )
85
- $product_type = 'other';
86
-
87
-
88
- }
89
 
90
  /**
91
  * get_settings.
22
  // Main hooks
23
  if ( get_option( 'wcj_add_to_cart_enabled' ) == 'yes' ) {
24
 
25
+ add_filter( 'woocommerce_product_single_add_to_cart_text', array( $this, 'custom_add_to_cart_button_text' ), 100 );
26
+ add_filter( 'woocommerce_product_add_to_cart_text', array( $this, 'custom_add_to_cart_button_text' ), 100 );
 
27
 
28
  }
29
 
45
  }
46
 
47
  /**
48
+ * custom_add_to_cart_button_text.
49
  */
50
+ public function custom_add_to_cart_button_text( $add_to_cart_text) {
51
 
52
  global $product;
53
 
70
  // Default
71
  return $add_to_cart_text;
72
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
  /**
75
  * get_settings.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://algoritmika.com/donate/
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs
5
  Requires at least: 3.9.1
6
  Tested up to: 3.9.1
7
- Stable tag: 1.0.3
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -48,6 +48,9 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
48
 
49
  == Changelog ==
50
 
 
 
 
51
  = 1.0.3 - 15/06/2014 =
52
  * Feature - Add to cart text by product type.
53
 
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs
5
  Requires at least: 3.9.1
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.0.4
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.0.4 - 15/06/2014 =
52
+ * Fix - Add to cart text - on archives now calling the right function.
53
+
54
  = 1.0.3 - 15/06/2014 =
55
  * Feature - Add to cart text by product type.
56
 
woocommerce-jetpack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
- Version: 1.0.3
7
  Author: Algoritmika Ltd.
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
+ Version: 1.0.4
7
  Author: Algoritmika Ltd.
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.