Booster for WooCommerce - Version 1.0.3

Version Description

  • 15/06/2014 =
  • Feature - Add to cart text by product type.
Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

includes/class-wcj-add-to-cart.php ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WooCommerce Jetpack Add to cart
4
+ *
5
+ * The WooCommerce Jetpack Add to cart class.
6
+ *
7
+ * @class WCJ_Add_to_cart
8
+ */
9
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
+
11
+ if ( ! class_exists( 'WCJ_Add_to_cart' ) ) :
12
+
13
+ class WCJ_Add_to_cart {
14
+
15
+ /**
16
+ * Constructor.
17
+ */
18
+ public function __construct() {
19
+
20
+ // HOOKS
21
+
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
+
31
+ // Settings hooks
32
+ add_filter( 'wcj_settings_sections', array( $this, 'settings_section' ) );
33
+ add_filter( 'wcj_settings_add_to_cart', array( $this, 'get_settings' ), 100 );
34
+ add_filter( 'wcj_features_status', array( $this, 'add_enabled_option' ), 100 );
35
+ }
36
+
37
+ /**
38
+ * add_enabled_option.
39
+ */
40
+ public function add_enabled_option( $settings ) {
41
+
42
+ $all_settings = $this->get_settings();
43
+ $settings[] = $all_settings[1];
44
+
45
+ return $settings;
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
+
55
+ $product_type = $product->product_type;
56
+
57
+ if ( ! in_array( $product_type, array( 'external', 'grouped', 'simple', 'variable' ) ) )
58
+ $product_type = 'other';
59
+
60
+ if ( current_filter() == 'woocommerce_product_single_add_to_cart_text' ) {
61
+
62
+ if ( get_option( 'wcj_add_to_cart_text_enabled_on_single_' . $product_type ) == 'yes' ) return get_option( 'wcj_add_to_cart_text_on_single_' . $product_type );
63
+ else return $add_to_cart_text;
64
+ }
65
+ else if ( current_filter() == 'woocommerce_product_add_to_cart_text' ) {
66
+
67
+ if ( get_option( 'wcj_add_to_cart_text_enabled_on_archives_' . $product_type ) == 'yes' ) return get_option( 'wcj_add_to_cart_text_on_archives_' . $product_type );
68
+ else return $add_to_cart_text;
69
+ }
70
+
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.
92
+ */
93
+ function get_settings() {
94
+
95
+ $settings = array(
96
+
97
+ array( 'title' => __( 'Add to Cart Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => '', 'id' => 'wcj_add_to_cart_options' ),
98
+
99
+ array(
100
+ 'title' => __( 'Add to Cart', 'woocommerce-jetpack' ),
101
+ 'desc' => __( 'Enable the Add to Cart feature', 'woocommerce-jetpack' ),
102
+ 'desc_tip' => __( 'Change text for Add to cart button by product type.', 'woocommerce-jetpack' ),
103
+ 'id' => 'wcj_add_to_cart_enabled',
104
+ 'default' => 'yes',
105
+ 'type' => 'checkbox',
106
+ ),
107
+
108
+ //array( 'type' => 'sectionend', 'id' => 'wcj_add_to_cart_options' ),
109
+ );
110
+
111
+ //ADD TO CART TEXT
112
+ $groups_by_product_type = array(
113
+
114
+ array(
115
+ 'id' => 'simple',
116
+ 'title' => __( 'Simple product', 'woocommerce-jetpack' ),
117
+ 'default' => 'Add to cart',
118
+ ),
119
+ array(
120
+ 'id' => 'variable',
121
+ 'title' => __( 'Variable product', 'woocommerce-jetpack' ),
122
+ 'default' => 'Select options',
123
+ ),
124
+ array(
125
+ 'id' => 'external',
126
+ 'title' => __( 'External product', 'woocommerce-jetpack' ),
127
+ 'default' => 'Buy product',
128
+ ),
129
+ array(
130
+ 'id' => 'grouped',
131
+ 'title' => __( 'Grouped product', 'woocommerce-jetpack' ),
132
+ 'default' => 'View products',
133
+ ),
134
+ array(
135
+ 'id' => 'other',
136
+ 'title' => __( 'Other product', 'woocommerce-jetpack' ),
137
+ 'default' => 'Read more',
138
+ ),
139
+ );
140
+
141
+ //$settings[] = array( 'title' => __( 'Add to Cart Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => 'This sets the text on add to cart button by product types.', 'id' => 'wcj_add_to_cart_options' );
142
+
143
+ foreach ( $groups_by_product_type as $group_by_product_type ) {
144
+
145
+ $settings[] =
146
+ array(
147
+ 'title' => $group_by_product_type['title'],
148
+ 'id' => 'wcj_add_to_cart_text_on_single_' . $group_by_product_type['id'],
149
+ 'default' => $group_by_product_type['default'],
150
+ 'type' => 'text',
151
+ 'css' => 'width:30%;min-width:300px;',
152
+ );
153
+
154
+ $settings[] =
155
+ array(
156
+ 'title' => '',//$group_by_product_type['title'],
157
+ 'desc' => __( 'Enable on single product pages', 'woocommerce-jetpack' ),
158
+ 'id' => 'wcj_add_to_cart_text_enabled_on_single_' . $group_by_product_type['id'],
159
+ 'default' => 'yes',
160
+ 'type' => 'checkbox',
161
+ );
162
+
163
+ $settings[] =
164
+ array(
165
+ 'title' => '',//$group_by_product_type['title'],
166
+ 'id' => 'wcj_add_to_cart_text_on_archives_' . $group_by_product_type['id'],
167
+ 'default' => $group_by_product_type['default'],
168
+ 'type' => 'text',
169
+ 'css' => 'width:30%;min-width:300px;',
170
+ //'custom_attributes' => apply_filters( 'get_wc_jetpack_plus_message', '', 'readonly' ),
171
+ );
172
+
173
+ $settings[] =
174
+ array(
175
+ 'title' => '',//$group_by_product_type['title'],
176
+ 'desc' => __( 'Enable on product archives', 'woocommerce-jetpack' ),
177
+ //'desc_tip' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
178
+ 'id' => 'wcj_add_to_cart_text_enabled_on_archives_' . $group_by_product_type['id'],
179
+ 'default' => 'yes',
180
+ 'type' => 'checkbox',
181
+ //'custom_attributes' => apply_filters( 'get_wc_jetpack_plus_message', '', 'disabled' ),
182
+ );
183
+ }
184
+
185
+ //$settings[] = array( 'type' => 'sectionend', 'id' => 'wcj_add_to_cart_options' );
186
+ $settings[] = array( 'type' => 'sectionend', 'id' => 'wcj_add_to_cart_options' );
187
+
188
+
189
+
190
+
191
+ return $settings;
192
+ }
193
+
194
+ /**
195
+ * settings_section.
196
+ */
197
+ function settings_section( $sections ) {
198
+
199
+ $sections['add_to_cart'] = 'Add to cart';
200
+
201
+ return $sections;
202
+ }
203
+ }
204
+
205
+ endif;
206
+
207
+ return new WCJ_Add_to_cart();
includes/class-wcj-call-for-price.php CHANGED
@@ -80,7 +80,7 @@ class WCJ_Call_For_Price {
80
 
81
  $settings = array(
82
 
83
- array( 'title' => __( 'Call for Price Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => 'Leave price empty when adding or editing products. Then set the options here.', 'id' => 'wcj_call_for_price_options' ),
84
 
85
  array(
86
  'title' => __( 'Call for Price', 'woocommerce-jetpack' ),
80
 
81
  $settings = array(
82
 
83
+ array( 'title' => __( 'Call for Price Options', 'woocommerce-jetpack' ), 'type' => 'title', 'desc' => __( 'Leave price empty when adding or editing products. Then set the options here.', 'woocommerce-jetpack' ), 'id' => 'wcj_call_for_price_options' ),
84
 
85
  array(
86
  'title' => __( 'Call for Price', 'woocommerce-jetpack' ),
langs/woocommerce-jetpack-en_EN.mo ADDED
Binary file
langs/woocommerce-jetpack-en_EN.po ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 WooCommerce Jetpack
2
+ # This file is distributed under the same license as the WooCommerce Jetpack package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: WooCommerce Jetpack 1.0.2\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/woocommerce-jetpack\n"
7
+ "POT-Creation-Date: 2014-06-13 22:27:34+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-06-14 01:29+0200\n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
+
16
+ #: includes/admin/settings/class-wc-settings-jetpack.php:20
17
+ msgid "Jetpack"
18
+ msgstr ""
19
+
20
+ #: includes/admin/settings/class-wc-settings-jetpack.php:36
21
+ msgid "Dashboard"
22
+ msgstr ""
23
+
24
+ #: includes/admin/settings/class-wc-settings-jetpack.php:78
25
+ msgid "Features"
26
+ msgstr ""
27
+
28
+ #: includes/class-wcj-call-for-price.php:119
29
+ msgid "Sale!"
30
+ msgstr ""
31
+
32
+ #: includes/class-wcj-call-for-price.php:165
33
+ msgid "Call for Price Options"
34
+ msgstr ""
35
+
36
+ #: includes/class-wcj-call-for-price.php:171
37
+ msgid "Call for Price"
38
+ msgstr ""
39
+
40
+ #: includes/class-wcj-call-for-price.php:173
41
+ msgid "Enable the Call for Price feature"
42
+ msgstr ""
43
+
44
+ #: includes/class-wcj-call-for-price.php:175
45
+ msgid "Create any custom price label for all products with empty price."
46
+ msgstr ""
47
+
48
+ #: includes/class-wcj-call-for-price.php:189
49
+ #: includes/class-wcj-product-info.php:163
50
+ msgid "Text to Show"
51
+ msgstr ""
52
+
53
+ #: includes/class-wcj-call-for-price.php:191
54
+ msgid "This sets the html to output on empty price."
55
+ msgstr ""
56
+
57
+ #: includes/class-wcj-call-for-price.php:213
58
+ msgid "Show on Single Product"
59
+ msgstr ""
60
+
61
+ #: includes/class-wcj-call-for-price.php:215
62
+ msgid "Check to show on single products page"
63
+ msgstr ""
64
+
65
+ #: includes/class-wcj-call-for-price.php:229
66
+ msgid "Show on Products Archive"
67
+ msgstr ""
68
+
69
+ #: includes/class-wcj-call-for-price.php:231
70
+ msgid "Check to show on products archive page"
71
+ msgstr ""
72
+
73
+ #: includes/class-wcj-call-for-price.php:245
74
+ msgid "Show on Home Page"
75
+ msgstr ""
76
+
77
+ #: includes/class-wcj-call-for-price.php:247
78
+ msgid "Check to show on home page"
79
+ msgstr ""
80
+
81
+ #: includes/class-wcj-call-for-price.php:261
82
+ msgid "Hide Sale! Tag"
83
+ msgstr ""
84
+
85
+ #: includes/class-wcj-call-for-price.php:263
86
+ msgid "Hide the tag"
87
+ msgstr ""
88
+
89
+ #: includes/class-wcj-currencies.php:777
90
+ msgid "Currency Symbol"
91
+ msgstr ""
92
+
93
+ #: includes/class-wcj-currencies.php:779
94
+ msgid "This sets the currency symbol."
95
+ msgstr ""
96
+
97
+ #: includes/class-wcj-currencies.php:819
98
+ msgid "Currencies Options"
99
+ msgstr ""
100
+
101
+ #: includes/class-wcj-currencies.php:825
102
+ msgid "Currencies"
103
+ msgstr ""
104
+
105
+ #: includes/class-wcj-currencies.php:827
106
+ msgid "Enable the Currencies feature"
107
+ msgstr ""
108
+
109
+ #: includes/class-wcj-currencies.php:829
110
+ msgid "Add all world currencies, change currency symbol."
111
+ msgstr ""
112
+
113
+ #: includes/class-wcj-currencies.php:845
114
+ msgid "Currency Symbol Options"
115
+ msgstr ""
116
+
117
+ #: includes/class-wcj-old-slugs.php:105
118
+ msgid "Old Slugs Options"
119
+ msgstr ""
120
+
121
+ #: includes/class-wcj-old-slugs.php:111
122
+ msgid "Old Slugs"
123
+ msgstr ""
124
+
125
+ #: includes/class-wcj-old-slugs.php:113
126
+ msgid "Enable the Remove Old Product Slugs feature"
127
+ msgstr ""
128
+
129
+ #: includes/class-wcj-old-slugs.php:115
130
+ msgid ""
131
+ "Remove old product slugs. Tool is accessible through <a href=\"/wp-admin/"
132
+ "admin.php?page=woocommerce-jetpack-old-slugs\">WooCommerce > Remove Old "
133
+ "Slugs</a>."
134
+ msgstr ""
135
+
136
+ #: includes/class-wcj-price-labels.php:479
137
+ msgid "Custom Price Labels Options"
138
+ msgstr ""
139
+
140
+ #: includes/class-wcj-price-labels.php:485
141
+ msgid "Custom Price Labels"
142
+ msgstr ""
143
+
144
+ #: includes/class-wcj-price-labels.php:487
145
+ msgid "Enable the Custom Price Labels feature"
146
+ msgstr ""
147
+
148
+ #: includes/class-wcj-price-labels.php:489
149
+ msgid "Create any custom price label for any product."
150
+ msgstr ""
151
+
152
+ #: includes/class-wcj-product-info.php:111
153
+ msgid "Product Info Options"
154
+ msgstr ""
155
+
156
+ #: includes/class-wcj-product-info.php:117
157
+ msgid "Product Info"
158
+ msgstr ""
159
+
160
+ #: includes/class-wcj-product-info.php:119
161
+ msgid "Enable the Product Info feature"
162
+ msgstr ""
163
+
164
+ #: includes/class-wcj-product-info.php:121
165
+ msgid "Display total product sales etc."
166
+ msgstr ""
167
+
168
+ #: includes/class-wcj-product-info.php:139
169
+ msgid "Total Sales Options"
170
+ msgstr ""
171
+
172
+ #: includes/class-wcj-product-info.php:145 includes/class-wcj-sorting.php:393
173
+ #: includes/class-wcj-sorting.php:429 includes/class-wcj-sorting.php:465
174
+ #: includes/class-wcj-sorting.php:501
175
+ msgid "Enable"
176
+ msgstr ""
177
+
178
+ #: includes/class-wcj-product-info.php:147
179
+ msgid "Enable Total Sales"
180
+ msgstr ""
181
+
182
+ #: includes/class-wcj-product-info.php:165
183
+ msgid ""
184
+ "This sets the text to output for total sales. Default is \"Total Sales: "
185
+ "[TOTALSALES]\""
186
+ msgstr ""
187
+
188
+ #: includes/class-wcj-product-info.php:171
189
+ msgid "Total Sales: [TOTALSALES]"
190
+ msgstr ""
191
+
192
+ #: includes/class-wcj-sorting.php:131 includes/class-wcj-sorting.php:337
193
+ #: includes/class-wcj-sorting.php:343
194
+ msgid "Remove All Sorting"
195
+ msgstr ""
196
+
197
+ #: includes/class-wcj-sorting.php:141
198
+ msgid "Completely remove sorting from the shop front end"
199
+ msgstr ""
200
+
201
+ #: includes/class-wcj-sorting.php:311
202
+ msgid "Sorting Options"
203
+ msgstr ""
204
+
205
+ #: includes/class-wcj-sorting.php:317
206
+ msgid "Sorting"
207
+ msgstr ""
208
+
209
+ #: includes/class-wcj-sorting.php:319
210
+ msgid "Enable the Sorting feature"
211
+ msgstr ""
212
+
213
+ #: includes/class-wcj-sorting.php:321
214
+ msgid "Add more sorting options or remove all sorting including default."
215
+ msgstr ""
216
+
217
+ #: includes/class-wcj-sorting.php:345
218
+ msgid "Remove all sorting (including WooCommerce default)"
219
+ msgstr ""
220
+
221
+ #: includes/class-wcj-sorting.php:367
222
+ msgid "Add More Sorting"
223
+ msgstr ""
224
+
225
+ #: includes/class-wcj-sorting.php:373 includes/class-wcj-sorting.php:391
226
+ msgid "Sort by Name - Asc"
227
+ msgstr ""
228
+
229
+ #: includes/class-wcj-sorting.php:375 includes/class-wcj-sorting.php:411
230
+ #: includes/class-wcj-sorting.php:447 includes/class-wcj-sorting.php:483
231
+ msgid "Text visible at front end"
232
+ msgstr ""
233
+
234
+ #: includes/class-wcj-sorting.php:395 includes/class-wcj-sorting.php:431
235
+ #: includes/class-wcj-sorting.php:467 includes/class-wcj-sorting.php:503
236
+ msgid "Check to enable."
237
+ msgstr ""
238
+
239
+ #: includes/class-wcj-sorting.php:409 includes/class-wcj-sorting.php:427
240
+ msgid "Sort by Name - Desc"
241
+ msgstr ""
242
+
243
+ #: includes/class-wcj-sorting.php:445 includes/class-wcj-sorting.php:463
244
+ msgid "Sort by SKU - Asc"
245
+ msgstr ""
246
+
247
+ #: includes/class-wcj-sorting.php:481 includes/class-wcj-sorting.php:499
248
+ msgid "Sort by SKU - Desc"
249
+ msgstr ""
250
+
251
+ #: woocommerce-jetpack.php:211
252
+ msgid "Install WooCommerce Jetpack Plus to unlock all features"
253
+ msgstr ""
254
+
255
+ #: woocommerce-jetpack.php:213
256
+ msgid ""
257
+ "Some settings fields are locked and you will need %s to modify all locked "
258
+ "fields."
259
+ msgstr ""
260
+
261
+ #: woocommerce-jetpack.php:215
262
+ msgid "Buy now just for %s"
263
+ msgstr ""
264
+
265
+ #: woocommerce-jetpack.php:215
266
+ msgid "Visit %s"
267
+ msgstr ""
268
+
269
+ #: woocommerce-jetpack.php:223
270
+ msgid ""
271
+ "Get <a href=\"http://woojetpack.com/plus/\" target=\"_blank\">WooCommerce "
272
+ "Jetpack Plus</a> to change value."
273
+ msgstr ""
274
+
275
+ #: woocommerce-jetpack.php:229
276
+ msgid ""
277
+ "Get <a href=\"http://woojetpack.com/plus/\" target=\"_blank\">WooCommerce "
278
+ "Jetpack Plus</a> to change values below."
279
+ msgstr ""
280
+
281
+ #: woocommerce-jetpack.php:235
282
+ msgid "Get WooCommerce Jetpack Plus to change value."
283
+ msgstr ""
284
+
285
+ #. Plugin Name of the plugin/theme
286
+ msgid "WooCommerce Jetpack"
287
+ msgstr ""
288
+
289
+ #. Plugin URI of the plugin/theme
290
+ msgid "http://woojetpack.com"
291
+ msgstr ""
292
+
293
+ #. Description of the plugin/theme
294
+ msgid "Supercharge your WooCommerce site with these awesome powerful features."
295
+ msgstr ""
296
+
297
+ #. Author of the plugin/theme
298
+ msgid "Algoritmika Ltd."
299
+ msgstr ""
300
+
301
+ #. Author URI of the plugin/theme
302
+ msgid "http://www.algoritmika.com"
303
+ msgstr ""
langs/woocommerce-jetpack.pot ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 WooCommerce Jetpack
2
+ # This file is distributed under the same license as the WooCommerce Jetpack package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: WooCommerce Jetpack 1.0.2\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/woocommerce-jetpack\n"
7
+ "POT-Creation-Date: 2014-06-13 22:27:34+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: includes/admin/settings/class-wc-settings-jetpack.php:20
16
+ msgid "Jetpack"
17
+ msgstr ""
18
+
19
+ #: includes/admin/settings/class-wc-settings-jetpack.php:36
20
+ msgid "Dashboard"
21
+ msgstr ""
22
+
23
+ #: includes/admin/settings/class-wc-settings-jetpack.php:78
24
+ msgid "Features"
25
+ msgstr ""
26
+
27
+ #: includes/class-wcj-call-for-price.php:119
28
+ msgid "Sale!"
29
+ msgstr ""
30
+
31
+ #: includes/class-wcj-call-for-price.php:165
32
+ msgid "Call for Price Options"
33
+ msgstr ""
34
+
35
+ #: includes/class-wcj-call-for-price.php:171
36
+ msgid "Call for Price"
37
+ msgstr ""
38
+
39
+ #: includes/class-wcj-call-for-price.php:173
40
+ msgid "Enable the Call for Price feature"
41
+ msgstr ""
42
+
43
+ #: includes/class-wcj-call-for-price.php:175
44
+ msgid "Create any custom price label for all products with empty price."
45
+ msgstr ""
46
+
47
+ #: includes/class-wcj-call-for-price.php:189
48
+ #: includes/class-wcj-product-info.php:163
49
+ msgid "Text to Show"
50
+ msgstr ""
51
+
52
+ #: includes/class-wcj-call-for-price.php:191
53
+ msgid "This sets the html to output on empty price."
54
+ msgstr ""
55
+
56
+ #: includes/class-wcj-call-for-price.php:213
57
+ msgid "Show on Single Product"
58
+ msgstr ""
59
+
60
+ #: includes/class-wcj-call-for-price.php:215
61
+ msgid "Check to show on single products page"
62
+ msgstr ""
63
+
64
+ #: includes/class-wcj-call-for-price.php:229
65
+ msgid "Show on Products Archive"
66
+ msgstr ""
67
+
68
+ #: includes/class-wcj-call-for-price.php:231
69
+ msgid "Check to show on products archive page"
70
+ msgstr ""
71
+
72
+ #: includes/class-wcj-call-for-price.php:245
73
+ msgid "Show on Home Page"
74
+ msgstr ""
75
+
76
+ #: includes/class-wcj-call-for-price.php:247
77
+ msgid "Check to show on home page"
78
+ msgstr ""
79
+
80
+ #: includes/class-wcj-call-for-price.php:261
81
+ msgid "Hide Sale! Tag"
82
+ msgstr ""
83
+
84
+ #: includes/class-wcj-call-for-price.php:263
85
+ msgid "Hide the tag"
86
+ msgstr ""
87
+
88
+ #: includes/class-wcj-currencies.php:777
89
+ msgid "Currency Symbol"
90
+ msgstr ""
91
+
92
+ #: includes/class-wcj-currencies.php:779
93
+ msgid "This sets the currency symbol."
94
+ msgstr ""
95
+
96
+ #: includes/class-wcj-currencies.php:819
97
+ msgid "Currencies Options"
98
+ msgstr ""
99
+
100
+ #: includes/class-wcj-currencies.php:825
101
+ msgid "Currencies"
102
+ msgstr ""
103
+
104
+ #: includes/class-wcj-currencies.php:827
105
+ msgid "Enable the Currencies feature"
106
+ msgstr ""
107
+
108
+ #: includes/class-wcj-currencies.php:829
109
+ msgid "Add all world currencies, change currency symbol."
110
+ msgstr ""
111
+
112
+ #: includes/class-wcj-currencies.php:845
113
+ msgid "Currency Symbol Options"
114
+ msgstr ""
115
+
116
+ #: includes/class-wcj-old-slugs.php:105
117
+ msgid "Old Slugs Options"
118
+ msgstr ""
119
+
120
+ #: includes/class-wcj-old-slugs.php:111
121
+ msgid "Old Slugs"
122
+ msgstr ""
123
+
124
+ #: includes/class-wcj-old-slugs.php:113
125
+ msgid "Enable the Remove Old Product Slugs feature"
126
+ msgstr ""
127
+
128
+ #: includes/class-wcj-old-slugs.php:115
129
+ msgid ""
130
+ "Remove old product slugs. Tool is accessible through <a href=\"/wp-admin/"
131
+ "admin.php?page=woocommerce-jetpack-old-slugs\">WooCommerce > Remove Old "
132
+ "Slugs</a>."
133
+ msgstr ""
134
+
135
+ #: includes/class-wcj-price-labels.php:479
136
+ msgid "Custom Price Labels Options"
137
+ msgstr ""
138
+
139
+ #: includes/class-wcj-price-labels.php:485
140
+ msgid "Custom Price Labels"
141
+ msgstr ""
142
+
143
+ #: includes/class-wcj-price-labels.php:487
144
+ msgid "Enable the Custom Price Labels feature"
145
+ msgstr ""
146
+
147
+ #: includes/class-wcj-price-labels.php:489
148
+ msgid "Create any custom price label for any product."
149
+ msgstr ""
150
+
151
+ #: includes/class-wcj-product-info.php:111
152
+ msgid "Product Info Options"
153
+ msgstr ""
154
+
155
+ #: includes/class-wcj-product-info.php:117
156
+ msgid "Product Info"
157
+ msgstr ""
158
+
159
+ #: includes/class-wcj-product-info.php:119
160
+ msgid "Enable the Product Info feature"
161
+ msgstr ""
162
+
163
+ #: includes/class-wcj-product-info.php:121
164
+ msgid "Display total product sales etc."
165
+ msgstr ""
166
+
167
+ #: includes/class-wcj-product-info.php:139
168
+ msgid "Total Sales Options"
169
+ msgstr ""
170
+
171
+ #: includes/class-wcj-product-info.php:145 includes/class-wcj-sorting.php:393
172
+ #: includes/class-wcj-sorting.php:429 includes/class-wcj-sorting.php:465
173
+ #: includes/class-wcj-sorting.php:501
174
+ msgid "Enable"
175
+ msgstr ""
176
+
177
+ #: includes/class-wcj-product-info.php:147
178
+ msgid "Enable Total Sales"
179
+ msgstr ""
180
+
181
+ #: includes/class-wcj-product-info.php:165
182
+ msgid ""
183
+ "This sets the text to output for total sales. Default is \"Total Sales: "
184
+ "[TOTALSALES]\""
185
+ msgstr ""
186
+
187
+ #: includes/class-wcj-product-info.php:171
188
+ msgid "Total Sales: [TOTALSALES]"
189
+ msgstr ""
190
+
191
+ #: includes/class-wcj-sorting.php:131 includes/class-wcj-sorting.php:337
192
+ #: includes/class-wcj-sorting.php:343
193
+ msgid "Remove All Sorting"
194
+ msgstr ""
195
+
196
+ #: includes/class-wcj-sorting.php:141
197
+ msgid "Completely remove sorting from the shop front end"
198
+ msgstr ""
199
+
200
+ #: includes/class-wcj-sorting.php:311
201
+ msgid "Sorting Options"
202
+ msgstr ""
203
+
204
+ #: includes/class-wcj-sorting.php:317
205
+ msgid "Sorting"
206
+ msgstr ""
207
+
208
+ #: includes/class-wcj-sorting.php:319
209
+ msgid "Enable the Sorting feature"
210
+ msgstr ""
211
+
212
+ #: includes/class-wcj-sorting.php:321
213
+ msgid "Add more sorting options or remove all sorting including default."
214
+ msgstr ""
215
+
216
+ #: includes/class-wcj-sorting.php:345
217
+ msgid "Remove all sorting (including WooCommerce default)"
218
+ msgstr ""
219
+
220
+ #: includes/class-wcj-sorting.php:367
221
+ msgid "Add More Sorting"
222
+ msgstr ""
223
+
224
+ #: includes/class-wcj-sorting.php:373 includes/class-wcj-sorting.php:391
225
+ msgid "Sort by Name - Asc"
226
+ msgstr ""
227
+
228
+ #: includes/class-wcj-sorting.php:375 includes/class-wcj-sorting.php:411
229
+ #: includes/class-wcj-sorting.php:447 includes/class-wcj-sorting.php:483
230
+ msgid "Text visible at front end"
231
+ msgstr ""
232
+
233
+ #: includes/class-wcj-sorting.php:395 includes/class-wcj-sorting.php:431
234
+ #: includes/class-wcj-sorting.php:467 includes/class-wcj-sorting.php:503
235
+ msgid "Check to enable."
236
+ msgstr ""
237
+
238
+ #: includes/class-wcj-sorting.php:409 includes/class-wcj-sorting.php:427
239
+ msgid "Sort by Name - Desc"
240
+ msgstr ""
241
+
242
+ #: includes/class-wcj-sorting.php:445 includes/class-wcj-sorting.php:463
243
+ msgid "Sort by SKU - Asc"
244
+ msgstr ""
245
+
246
+ #: includes/class-wcj-sorting.php:481 includes/class-wcj-sorting.php:499
247
+ msgid "Sort by SKU - Desc"
248
+ msgstr ""
249
+
250
+ #: woocommerce-jetpack.php:211
251
+ msgid "Install WooCommerce Jetpack Plus to unlock all features"
252
+ msgstr ""
253
+
254
+ #: woocommerce-jetpack.php:213
255
+ msgid ""
256
+ "Some settings fields are locked and you will need %s to modify all locked "
257
+ "fields."
258
+ msgstr ""
259
+
260
+ #: woocommerce-jetpack.php:215
261
+ msgid "Buy now just for %s"
262
+ msgstr ""
263
+
264
+ #: woocommerce-jetpack.php:215
265
+ msgid "Visit %s"
266
+ msgstr ""
267
+
268
+ #: woocommerce-jetpack.php:223
269
+ msgid ""
270
+ "Get <a href=\"http://woojetpack.com/plus/\" target=\"_blank\">WooCommerce "
271
+ "Jetpack Plus</a> to change value."
272
+ msgstr ""
273
+
274
+ #: woocommerce-jetpack.php:229
275
+ msgid ""
276
+ "Get <a href=\"http://woojetpack.com/plus/\" target=\"_blank\">WooCommerce "
277
+ "Jetpack Plus</a> to change values below."
278
+ msgstr ""
279
+
280
+ #: woocommerce-jetpack.php:235
281
+ msgid "Get WooCommerce Jetpack Plus to change value."
282
+ msgstr ""
283
+
284
+ #. Plugin Name of the plugin/theme
285
+ msgid "WooCommerce Jetpack"
286
+ msgstr ""
287
+
288
+ #. Plugin URI of the plugin/theme
289
+ msgid "http://woojetpack.com"
290
+ msgstr ""
291
+
292
+ #. Description of the plugin/theme
293
+ msgid "Supercharge your WooCommerce site with these awesome powerful features."
294
+ msgstr ""
295
+
296
+ #. Author of the plugin/theme
297
+ msgid "Algoritmika Ltd."
298
+ msgstr ""
299
+
300
+ #. Author URI of the plugin/theme
301
+ msgid "http://www.algoritmika.com"
302
+ msgstr ""
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.2
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -14,12 +14,13 @@ Supercharge your WordPress WooCommerce site with these awesome powerful features
14
 
15
  WooCommerce Jetpack is a WordPress plugin that supercharges your site with awesome powerful features. Features are absolutely required for anyone using excellent WordPress WooCommerce platform.
16
 
17
- **What features does it have?**
18
 
19
  * Custom Price Labels - Create any custom price label for any product.
20
  * Call for Price - Create any custom price label, like "Call for price", for all products with empty price.
21
  * Currencies - Add all world currencies, change currency symbol.
22
  * More Sorting Options - Add more sorting options or remove sorting (including default) at all.
 
23
  * Old Slugs - Remove old product slugs.
24
 
25
  = Feedback =
@@ -47,6 +48,9 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.0.2 - 14/06/2014 =
51
  * Dev - Added loading plugin textdomain.
52
 
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
 
14
 
15
  WooCommerce Jetpack is a WordPress plugin that supercharges your site with awesome powerful features. Features are absolutely required for anyone using excellent WordPress WooCommerce platform.
16
 
17
+ = Features =
18
 
19
  * Custom Price Labels - Create any custom price label for any product.
20
  * Call for Price - Create any custom price label, like "Call for price", for all products with empty price.
21
  * Currencies - Add all world currencies, change currency symbol.
22
  * More Sorting Options - Add more sorting options or remove sorting (including default) at all.
23
+ * Buttons - Change text for add to cart buttons for each product type.
24
  * Old Slugs - Remove old product slugs.
25
 
26
  = Feedback =
48
 
49
  == Changelog ==
50
 
51
+ = 1.0.3 - 15/06/2014 =
52
+ * Feature - Add to cart text by product type.
53
+
54
  = 1.0.2 - 14/06/2014 =
55
  * Dev - Added loading plugin textdomain.
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.2
7
  Author: Algoritmika Ltd.
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
@@ -166,6 +166,7 @@ final class WC_Jetpack {
166
  $settings[] = include_once( 'includes/class-wcj-currencies.php' );
167
  $settings[] = include_once( 'includes/class-wcj-sorting.php' );
168
  $settings[] = include_once( 'includes/class-wcj-old-slugs.php' );
 
169
  //$settings[] = include_once( 'includes/class-wcj-product-info.php' );
170
 
171
  // Add options
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.
166
  $settings[] = include_once( 'includes/class-wcj-currencies.php' );
167
  $settings[] = include_once( 'includes/class-wcj-sorting.php' );
168
  $settings[] = include_once( 'includes/class-wcj-old-slugs.php' );
169
+ $settings[] = include_once( 'includes/class-wcj-add-to-cart.php' );
170
  //$settings[] = include_once( 'includes/class-wcj-product-info.php' );
171
 
172
  // Add options