Facebook for WooCommerce - Version 1.11.1

Version Description

Download this release

Release Info

Developer SkyVerge
Plugin Icon Facebook for WooCommerce
Version 1.11.1
Comparing to
See all releases

Code changes from version 1.11.0 to 1.11.1

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
*** Facebook for WooCommerce Changelog ***
2
3
2020.04.23 - version 1.11.0
4
* Tweak - Sync products using Facebook's feed pull method
5
* Fix - When filtering products by sync enabled status, make sure variable products with sync disabled status do not show up in results
1
*** Facebook for WooCommerce Changelog ***
2
3
+ 2020.04.27 - version 1.11.1
4
+ * Fix - Fix integration with WPML
5
+
6
2020.04.23 - version 1.11.0
7
* Tweak - Sync products using Facebook's feed pull method
8
* Fix - When filtering products by sync enabled status, make sure variable products with sync disabled status do not show up in results
class-wc-facebookcommerce.php CHANGED
@@ -19,7 +19,7 @@ if ( ! class_exists( 'WC_Facebookcommerce' ) ) :
19
20
21
/** @var string the plugin version */
22
- const VERSION = '1.11.0';
23
24
/** @var string for backwards compatibility TODO: remove this in v2.0.0 {CW 2020-02-06} */
25
const PLUGIN_VERSION = self::VERSION;
@@ -84,6 +84,7 @@ if ( ! class_exists( 'WC_Facebookcommerce' ) ) :
84
85
include_once 'facebook-commerce.php';
86
87
require_once __DIR__ . '/includes/Products.php';
88
require_once __DIR__ . '/includes/Products/Feed.php';
89
require_once __DIR__ . '/includes/fbproductfeed.php';
@@ -100,6 +101,9 @@ if ( ! class_exists( 'WC_Facebookcommerce' ) ) :
100
101
// register the WooCommerce integration
102
add_filter( 'woocommerce_integrations', [ $this, 'add_woocommerce_integration' ] );
103
}
104
}
105
19
20
21
/** @var string the plugin version */
22
+ const VERSION = '1.11.1';
23
24
/** @var string for backwards compatibility TODO: remove this in v2.0.0 {CW 2020-02-06} */
25
const PLUGIN_VERSION = self::VERSION;
84
85
include_once 'facebook-commerce.php';
86
87
+ require_once __DIR__ . '/includes/Integrations/Integrations.php';
88
require_once __DIR__ . '/includes/Products.php';
89
require_once __DIR__ . '/includes/Products/Feed.php';
90
require_once __DIR__ . '/includes/fbproductfeed.php';
101
102
// register the WooCommerce integration
103
add_filter( 'woocommerce_integrations', [ $this, 'add_woocommerce_integration' ] );
104
+
105
+ $this->integrations = new \SkyVerge\WooCommerce\Facebook\Integrations\Integrations( $this );
106
+
107
}
108
}
109
facebook-commerce.php CHANGED
@@ -406,14 +406,11 @@ class WC_Facebookcommerce_Integration extends WC_Integration {
406
if ( isset( $_GET['remove_sticky'] ) ) {
407
$this->remove_sticky_message();
408
}
409
-
410
- if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
411
- include_once 'includes/fbwpml.php';
412
- new WC_Facebook_WPML_Injector();
413
- }
414
}
415
$this->load_background_sync_process();
416
}
417
// Must be outside of admin for cron to schedule correctly.
418
add_action( 'sync_all_fb_products_using_feed', [ $this, 'handle_scheduled_resync_action' ], self::FB_PRIORITY_MID );
419
406
if ( isset( $_GET['remove_sticky'] ) ) {
407
$this->remove_sticky_message();
408
}
409
}
410
+
411
$this->load_background_sync_process();
412
}
413
+
414
// Must be outside of admin for cron to schedule correctly.
415
add_action( 'sync_all_fb_products_using_feed', [ $this, 'handle_scheduled_resync_action' ], self::FB_PRIORITY_MID );
416
facebook-for-woocommerce.php CHANGED
@@ -10,7 +10,7 @@
10
* Description: Grow your business on Facebook! Use this official plugin to help sell more of your products using Facebook. After completing the setup, you'll be ready to create ads that promote your products and you can also create a shop section on your Page where customers can browse your products on Facebook.
11
* Author: Facebook
12
* Author URI: https://www.facebook.com/
13
- * Version: 1.11.0
14
* Text Domain: facebook-for-woocommerce
15
* WC requires at least: 3.5.0
16
* WC tested up to: 4.0.1
10
* Description: Grow your business on Facebook! Use this official plugin to help sell more of your products using Facebook. After completing the setup, you'll be ready to create ads that promote your products and you can also create a shop section on your Page where customers can browse your products on Facebook.
11
* Author: Facebook
12
* Author URI: https://www.facebook.com/
13
+ * Version: 1.11.1
14
* Text Domain: facebook-for-woocommerce
15
* WC requires at least: 3.5.0
16
* WC tested up to: 4.0.1
i18n/languages/facebook-for-woocommerce.pot CHANGED
@@ -2,10 +2,10 @@
2
# This file is distributed under the same license as the Facebook for WooCommerce package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: Facebook for WooCommerce 1.11.0\n"
6
"Report-Msgid-Bugs-To: "
7
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
8
- "POT-Creation-Date: 2020-04-23 23:00:28+00:00\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=utf-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
@@ -13,7 +13,7 @@ msgstr ""
13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
"Language-Team: LANGUAGE <LL@li.org>\n"
15
16
- #: class-wc-facebookcommerce.php:142
17
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
18
#. <a> tag, %4$s - </a> tag, %5$s - <a> tag, %6$s - </a> tag
19
msgid ""
@@ -23,7 +23,7 @@ msgid ""
23
"more%6$s."
24
msgstr ""
25
26
- #: class-wc-facebookcommerce.php:152
27
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
28
#. <a> tag, %4$s - </a> tag, %5$s - <a> tag, %6$s - </a> tag
29
msgid ""
@@ -41,36 +41,36 @@ msgstr ""
41
msgid "Facebook Commerce and Dynamic Ads (Pixel) Extension"
42
msgstr ""
43
44
- #: facebook-commerce.php:598
45
msgid "Facebook ID:"
46
msgstr ""
47
48
- #: facebook-commerce.php:609
49
msgid "Variant IDs:"
50
msgstr ""
51
52
- #: facebook-commerce.php:649
53
msgid "Reset Facebook metadata"
54
msgstr ""
55
56
- #: facebook-commerce.php:654
57
msgid "Delete product(s) on Facebook"
58
msgstr ""
59
60
- #: facebook-commerce.php:662
61
msgid "This product is not yet synced to Facebook."
62
msgstr ""
63
64
- #: facebook-commerce.php:1340
65
msgid "Nothing to update for product group for %1$s"
66
msgstr ""
67
68
- #: facebook-commerce.php:1788
69
#. translators: Placeholders %1$s - original error message from Facebook API
70
msgid "There was an issue connecting to the Facebook API: %1$s"
71
msgstr ""
72
73
- #: facebook-commerce.php:1922
74
#. translators: Placeholders %1$s - opening strong HTML tag, %2$s - closing
75
#. strong HTML tag, %3$s - opening link HTML tag, %4$s - closing link HTML tag
76
msgid ""
@@ -78,43 +78,43 @@ msgid ""
78
"configuration, %3$scomplete the setup steps%4$s."
79
msgstr ""
80
81
- #: facebook-commerce.php:1941
82
#. translators: Placeholders %1$s - WooCommerce version
83
msgid ""
84
"Facebook product sync may not work correctly in WooCommerce version %1$s. "
85
"Please upgrade to WooCommerce 3."
86
msgstr ""
87
88
- #: facebook-commerce.php:2160
89
msgid "Your connection has expired."
90
msgstr ""
91
92
- #: facebook-commerce.php:2160
93
msgid ""
94
"Please click Manage connection > Advanced Options > Update Token to refresh "
95
"your connection to Facebook."
96
msgstr ""
97
98
- #: facebook-commerce.php:2167
99
#. translators: Placeholders %s - error message
100
msgid "There was an error trying to sync the products to Facebook. %s"
101
msgstr ""
102
103
- #: facebook-commerce.php:2190 facebook-commerce.php:2369
104
msgid "Product sync is disabled."
105
msgstr ""
106
107
- #: facebook-commerce.php:2197 facebook-commerce.php:2376
108
msgid "The page access token or product catalog ID are missing."
109
msgstr ""
110
111
- #: facebook-commerce.php:2220
112
msgid ""
113
"A product sync is in progress. Please wait until the sync finishes before "
114
"starting a new one."
115
msgstr ""
116
117
- #: facebook-commerce.php:2232 facebook-commerce.php:2390
118
msgid ""
119
"We've detected that your Facebook Product Catalog is no longer valid. This "
120
"may happen if it was deleted, but could also be a temporary error. If the "
@@ -122,19 +122,19 @@ msgid ""
122
"and setup the plugin again."
123
msgstr ""
124
125
- #: facebook-commerce.php:2420
126
msgid "We couldn't create the feed or upload the product information."
127
msgstr ""
128
129
- #: facebook-commerce.php:2511
130
msgid "Hi! We're here to answer any questions you may have."
131
msgstr ""
132
133
- #: facebook-commerce.php:2534
134
msgid "Use Advanced Matching"
135
msgstr ""
136
137
- #: facebook-commerce.php:2537
138
#. translators: Placeholders: %1$s - opening <a> HTML link tag, %2$s - closing
139
#. </a> HTML link tag
140
msgid ""
@@ -143,144 +143,144 @@ msgid ""
143
"number). %1$sLearn more%2$s."
144
msgstr ""
145
146
- #: facebook-commerce.php:2554 facebook-commerce.php:2901
147
msgid "Product sync"
148
msgstr ""
149
150
- #: facebook-commerce.php:2558
151
msgid "Enable product sync"
152
msgstr ""
153
154
- #: facebook-commerce.php:2566
155
msgid "Exclude categories from sync"
156
msgstr ""
157
158
- #: facebook-commerce.php:2570
159
msgid "Products in one or more of these categories will not sync to Facebook."
160
msgstr ""
161
162
- #: facebook-commerce.php:2574
163
msgid "Search for a product category&hellip;"
164
msgstr ""
165
166
- #: facebook-commerce.php:2579
167
msgid "Exclude tags from sync"
168
msgstr ""
169
170
- #: facebook-commerce.php:2583
171
msgid "Products with one or more of these tags will not sync to Facebook."
172
msgstr ""
173
174
- #: facebook-commerce.php:2587
175
msgid "Search for a product tag&hellip;"
176
msgstr ""
177
178
- #: facebook-commerce.php:2592
179
msgid "Product description sync"
180
msgstr ""
181
182
- #: facebook-commerce.php:2595
183
msgid "Choose which product description to display in the Facebook catalog."
184
msgstr ""
185
186
- #: facebook-commerce.php:2598
187
msgid "Standard description"
188
msgstr ""
189
190
- #: facebook-commerce.php:2599
191
msgid "Short description"
192
msgstr ""
193
194
- #: facebook-commerce.php:2612
195
msgid "Messenger"
196
msgstr ""
197
198
- #: facebook-commerce.php:2617
199
msgid "Enable Messenger"
200
msgstr ""
201
202
- #: facebook-commerce.php:2621
203
msgid "Enable and customize Facebook Messenger on your store."
204
msgstr ""
205
206
- #: facebook-commerce.php:2626
207
msgid "Language"
208
msgstr ""
209
210
- #: facebook-commerce.php:2639
211
msgid "Greeting"
212
msgstr ""
213
214
- #: facebook-commerce.php:2651
215
msgid "Colors"
216
msgstr ""
217
218
- #: facebook-commerce.php:2662
219
msgid "Debug"
220
msgstr ""
221
222
- #: facebook-commerce.php:2667
223
msgid "Enable debug mode"
224
msgstr ""
225
226
- #: facebook-commerce.php:2669
227
msgid "Log plugin events for debugging"
228
msgstr ""
229
230
- #: facebook-commerce.php:2670
231
msgid "Only enable this if you are experiencing problems with the plugin."
232
msgstr ""
233
234
- #: facebook-commerce.php:2700
235
msgid "Connection"
236
msgstr ""
237
238
- #: facebook-commerce.php:2707
239
msgid "Manage connection"
240
msgstr ""
241
242
- #: facebook-commerce.php:2825
243
msgid "Pixel"
244
msgstr ""
245
246
- #: facebook-commerce.php:2871
247
msgid "Create ad"
248
msgstr ""
249
250
- #: facebook-commerce.php:2909
251
msgid "Sync products"
252
msgstr ""
253
254
- #: facebook-commerce.php:3111
255
msgid "am"
256
msgstr ""
257
258
- #: facebook-commerce.php:3116
259
msgid "pm"
260
msgstr ""
261
262
- #: facebook-commerce.php:3236
263
msgid "The greeting hasn't been updated."
264
msgstr ""
265
266
- #: facebook-commerce.php:3255
267
#. translators: Placeholder: %d - maximum number of allowed characters
268
msgid "The Messenger greeting must be %d characters or less."
269
msgstr ""
270
271
- #: facebook-commerce.php:4008
272
msgid "Facebook for WooCommerce error:"
273
msgstr ""
274
275
- #: facebook-commerce.php:4114
276
msgid "Get started with Messenger Customer Chat"
277
msgstr ""
278
279
- #: facebook-commerce.php:4115
280
msgid "Get started with Instagram Shopping"
281
msgstr ""
282
283
- #: facebook-commerce.php:4165
284
msgid ""
285
"You're using Remove HTTP which has incompatibilities with our extension. "
286
"Please disable it, or select the \"Ignore external links\" option on the "
@@ -291,35 +291,35 @@ msgstr ""
291
msgid "Facebook"
292
msgstr ""
293
294
- #: facebook-commerce.php:4174
295
msgid "Control how WooCommerce integrates with your Facebook store."
296
msgstr ""
297
298
- #: facebook-commerce.php:4188
299
msgid "Grow your business on Facebook"
300
msgstr ""
301
302
- #: facebook-commerce.php:4191
303
msgid "Use this WooCommerce and Facebook integration to:"
304
msgstr ""
305
306
- #: facebook-commerce.php:4195
307
msgid "Easily install a tracking pixel"
308
msgstr ""
309
310
- #: facebook-commerce.php:4196
311
msgid "Upload your products and create a shop"
312
msgstr ""
313
314
- #: facebook-commerce.php:4197
315
msgid "Create dynamic ads with your products and pixel"
316
msgstr ""
317
318
- #: facebook-commerce.php:4205
319
msgid "Get Started"
320
msgstr ""
321
322
- #: facebook-commerce.php:4372
323
#. translators: Placeholders %1$s - original error message from Facebook API
324
msgid "There was an issue connecting to the Facebook API: %s"
325
msgstr ""
@@ -638,23 +638,23 @@ msgstr ""
638
msgid "Could not open the product catalog feed file for writing"
639
msgstr ""
640
641
- #: includes/fbwpml.php:105
642
msgid "Facebook Visibility"
643
msgstr ""
644
645
- #: includes/fbwpml.php:108
646
msgid ""
647
"WooCommerce Products with languages that are selected here will be visible "
648
"to customers who see your Facebook Shop."
649
msgstr ""
650
651
- #: includes/fbwpml.php:128
652
- #. translators: Placeholders %1$s - opening link HTML tag, %2$s - closing link
653
- #. HTML tag
654
- msgid "Saved. You should now %1$sRe-Sync%2$s your products with Facebook."
655
msgstr ""
656
657
- #: includes/fbwpml.php:136
658
msgid "Save"
659
msgstr ""
660
@@ -675,7 +675,7 @@ msgstr ""
675
msgid "https://www.facebook.com/"
676
msgstr ""
677
678
- #: facebook-commerce-messenger-chat.php:258 facebook-commerce.php:2507
679
msgctxt "language"
680
msgid "English (United States)"
681
msgstr ""
2
# This file is distributed under the same license as the Facebook for WooCommerce package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: Facebook for WooCommerce 1.11.1\n"
6
"Report-Msgid-Bugs-To: "
7
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
8
+ "POT-Creation-Date: 2020-04-27 23:27:02+00:00\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=utf-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
"Language-Team: LANGUAGE <LL@li.org>\n"
15
16
+ #: class-wc-facebookcommerce.php:146
17
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
18
#. <a> tag, %4$s - </a> tag, %5$s - <a> tag, %6$s - </a> tag
19
msgid ""
23
"more%6$s."
24
msgstr ""
25
26
+ #: class-wc-facebookcommerce.php:156
27
#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag, %3$s -
28
#. <a> tag, %4$s - </a> tag, %5$s - <a> tag, %6$s - </a> tag
29
msgid ""
41
msgid "Facebook Commerce and Dynamic Ads (Pixel) Extension"
42
msgstr ""
43
44
+ #: facebook-commerce.php:595
45
msgid "Facebook ID:"
46
msgstr ""
47
48
+ #: facebook-commerce.php:606
49
msgid "Variant IDs:"
50
msgstr ""
51
52
+ #: facebook-commerce.php:646
53
msgid "Reset Facebook metadata"
54
msgstr ""
55
56
+ #: facebook-commerce.php:651
57
msgid "Delete product(s) on Facebook"
58
msgstr ""
59
60
+ #: facebook-commerce.php:659
61
msgid "This product is not yet synced to Facebook."
62
msgstr ""
63
64
+ #: facebook-commerce.php:1337
65
msgid "Nothing to update for product group for %1$s"
66
msgstr ""
67
68
+ #: facebook-commerce.php:1785
69
#. translators: Placeholders %1$s - original error message from Facebook API
70
msgid "There was an issue connecting to the Facebook API: %1$s"
71
msgstr ""
72
73
+ #: facebook-commerce.php:1919
74
#. translators: Placeholders %1$s - opening strong HTML tag, %2$s - closing
75
#. strong HTML tag, %3$s - opening link HTML tag, %4$s - closing link HTML tag
76
msgid ""
78
"configuration, %3$scomplete the setup steps%4$s."
79
msgstr ""
80
81
+ #: facebook-commerce.php:1938
82
#. translators: Placeholders %1$s - WooCommerce version
83
msgid ""
84
"Facebook product sync may not work correctly in WooCommerce version %1$s. "
85
"Please upgrade to WooCommerce 3."
86
msgstr ""
87
88
+ #: facebook-commerce.php:2157
89
msgid "Your connection has expired."
90
msgstr ""
91
92
+ #: facebook-commerce.php:2157
93
msgid ""
94
"Please click Manage connection > Advanced Options > Update Token to refresh "
95
"your connection to Facebook."
96
msgstr ""
97
98
+ #: facebook-commerce.php:2164
99
#. translators: Placeholders %s - error message
100
msgid "There was an error trying to sync the products to Facebook. %s"
101
msgstr ""
102
103
+ #: facebook-commerce.php:2187 facebook-commerce.php:2366
104
msgid "Product sync is disabled."
105
msgstr ""
106
107
+ #: facebook-commerce.php:2194 facebook-commerce.php:2373
108
msgid "The page access token or product catalog ID are missing."
109
msgstr ""
110
111
+ #: facebook-commerce.php:2217
112
msgid ""
113
"A product sync is in progress. Please wait until the sync finishes before "
114
"starting a new one."
115
msgstr ""
116
117
+ #: facebook-commerce.php:2229 facebook-commerce.php:2387
118
msgid ""
119
"We've detected that your Facebook Product Catalog is no longer valid. This "
120
"may happen if it was deleted, but could also be a temporary error. If the "
122
"and setup the plugin again."
123
msgstr ""
124
125
+ #: facebook-commerce.php:2417
126
msgid "We couldn't create the feed or upload the product information."
127
msgstr ""
128
129
+ #: facebook-commerce.php:2508
130
msgid "Hi! We're here to answer any questions you may have."
131
msgstr ""
132
133
+ #: facebook-commerce.php:2531
134
msgid "Use Advanced Matching"
135
msgstr ""
136
137
+ #: facebook-commerce.php:2534
138
#. translators: Placeholders: %1$s - opening <a> HTML link tag, %2$s - closing
139
#. </a> HTML link tag
140
msgid ""
143
"number). %1$sLearn more%2$s."
144
msgstr ""
145
146
+ #: facebook-commerce.php:2551 facebook-commerce.php:2898
147
msgid "Product sync"
148
msgstr ""
149
150
+ #: facebook-commerce.php:2555
151
msgid "Enable product sync"
152
msgstr ""
153
154
+ #: facebook-commerce.php:2563
155
msgid "Exclude categories from sync"
156
msgstr ""
157
158
+ #: facebook-commerce.php:2567
159
msgid "Products in one or more of these categories will not sync to Facebook."
160
msgstr ""
161
162
+ #: facebook-commerce.php:2571
163
msgid "Search for a product category&hellip;"
164
msgstr ""
165
166
+ #: facebook-commerce.php:2576
167
msgid "Exclude tags from sync"
168
msgstr ""
169
170
+ #: facebook-commerce.php:2580
171
msgid "Products with one or more of these tags will not sync to Facebook."
172
msgstr ""
173
174
+ #: facebook-commerce.php:2584
175
msgid "Search for a product tag&hellip;"
176
msgstr ""
177
178
+ #: facebook-commerce.php:2589
179
msgid "Product description sync"
180
msgstr ""
181
182
+ #: facebook-commerce.php:2592
183
msgid "Choose which product description to display in the Facebook catalog."
184
msgstr ""
185
186
+ #: facebook-commerce.php:2595
187
msgid "Standard description"
188
msgstr ""
189
190
+ #: facebook-commerce.php:2596
191
msgid "Short description"
192
msgstr ""
193
194
+ #: facebook-commerce.php:2609
195
msgid "Messenger"
196
msgstr ""
197
198
+ #: facebook-commerce.php:2614
199
msgid "Enable Messenger"
200
msgstr ""
201
202
+ #: facebook-commerce.php:2618
203
msgid "Enable and customize Facebook Messenger on your store."
204
msgstr ""
205
206
+ #: facebook-commerce.php:2623
207
msgid "Language"
208
msgstr ""
209
210
+ #: facebook-commerce.php:2636
211
msgid "Greeting"
212
msgstr ""
213
214
+ #: facebook-commerce.php:2648
215
msgid "Colors"
216
msgstr ""
217
218
+ #: facebook-commerce.php:2659
219
msgid "Debug"
220
msgstr ""
221
222
+ #: facebook-commerce.php:2664
223
msgid "Enable debug mode"
224
msgstr ""
225
226
+ #: facebook-commerce.php:2666
227
msgid "Log plugin events for debugging"
228
msgstr ""
229
230
+ #: facebook-commerce.php:2667
231
msgid "Only enable this if you are experiencing problems with the plugin."
232
msgstr ""
233
234
+ #: facebook-commerce.php:2697
235
msgid "Connection"
236
msgstr ""
237
238
+ #: facebook-commerce.php:2704
239
msgid "Manage connection"
240
msgstr ""
241
242
+ #: facebook-commerce.php:2822
243
msgid "Pixel"
244
msgstr ""
245
246
+ #: facebook-commerce.php:2868
247
msgid "Create ad"
248
msgstr ""
249
250
+ #: facebook-commerce.php:2906
251
msgid "Sync products"
252
msgstr ""
253
254
+ #: facebook-commerce.php:3108
255
msgid "am"
256
msgstr ""
257
258
+ #: facebook-commerce.php:3113
259
msgid "pm"
260
msgstr ""
261
262
+ #: facebook-commerce.php:3233
263
msgid "The greeting hasn't been updated."
264
msgstr ""
265
266
+ #: facebook-commerce.php:3252
267
#. translators: Placeholder: %d - maximum number of allowed characters
268
msgid "The Messenger greeting must be %d characters or less."
269
msgstr ""
270
271
+ #: facebook-commerce.php:4005
272
msgid "Facebook for WooCommerce error:"
273
msgstr ""
274
275
+ #: facebook-commerce.php:4111
276
msgid "Get started with Messenger Customer Chat"
277
msgstr ""
278
279
+ #: facebook-commerce.php:4112
280
msgid "Get started with Instagram Shopping"
281
msgstr ""
282
283
+ #: facebook-commerce.php:4162
284
msgid ""
285
"You're using Remove HTTP which has incompatibilities with our extension. "
286
"Please disable it, or select the \"Ignore external links\" option on the "
291
msgid "Facebook"
292
msgstr ""
293
294
+ #: facebook-commerce.php:4171
295
msgid "Control how WooCommerce integrates with your Facebook store."
296
msgstr ""
297
298
+ #: facebook-commerce.php:4185
299
msgid "Grow your business on Facebook"
300
msgstr ""
301
302
+ #: facebook-commerce.php:4188
303
msgid "Use this WooCommerce and Facebook integration to:"
304
msgstr ""
305
306
+ #: facebook-commerce.php:4192
307
msgid "Easily install a tracking pixel"
308
msgstr ""
309
310
+ #: facebook-commerce.php:4193
311
msgid "Upload your products and create a shop"
312
msgstr ""
313
314
+ #: facebook-commerce.php:4194
315
msgid "Create dynamic ads with your products and pixel"
316
msgstr ""
317
318
+ #: facebook-commerce.php:4202
319
msgid "Get Started"
320
msgstr ""
321
322
+ #: facebook-commerce.php:4369
323
#. translators: Placeholders %1$s - original error message from Facebook API
324
msgid "There was an issue connecting to the Facebook API: %s"
325
msgstr ""
638
msgid "Could not open the product catalog feed file for writing"
639
msgstr ""
640
641
+ #: includes/fbwpml.php:114
642
msgid "Facebook Visibility"
643
msgstr ""
644
645
+ #: includes/fbwpml.php:117
646
msgid ""
647
"WooCommerce Products with languages that are selected here will be visible "
648
"to customers who see your Facebook Shop."
649
msgstr ""
650
651
+ #: includes/fbwpml.php:134
652
+ msgid ""
653
+ "Saved. An automated sync from Facebook will run every hour to update the "
654
+ "catalog with any changes you've made."
655
msgstr ""
656
657
+ #: includes/fbwpml.php:140
658
msgid "Save"
659
msgstr ""
660
675
msgid "https://www.facebook.com/"
676
msgstr ""
677
678
+ #: facebook-commerce-messenger-chat.php:258 facebook-commerce.php:2504
679
msgctxt "language"
680
msgid "English (United States)"
681
msgstr ""
includes/Integrations/Integrations.php ADDED
@@ -0,0 +1,68 @@
1
+ <?php
2
+ /**
3
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ *
8
+ * @package FacebookCommerce
9
+ */
10
+
11
+ namespace SkyVerge\WooCommerce\Facebook\Integrations;
12
+
13
+ defined( 'ABSPATH' ) or exit;
14
+
15
+ use SkyVerge\WooCommerce\PluginFramework\v5_5_4 as Framework;
16
+
17
+ /**
18
+ * The integrations handler.
19
+ *
20
+ * @since 1.11.1
21
+ */
22
+ class Integrations {
23
+
24
+
25
+ /** @var Framework\SV_WC_Plugin plugin instance */
26
+ private $plugin;
27
+
28
+ /** @var object[] integration instances */
29
+ private $integrations;
30
+
31
+
32
+ /**
33
+ * Integrations constructor.
34
+ *
35
+ * @since 1.11.0-dev.1
36
+ *
37
+ * @param Framework\SV_WC_Plugin $plugin plugin instance
38
+ */
39
+ public function __construct( $plugin ) {
40
+
41
+ $this->plugin = $plugin;
42
+
43
+ $this->load_integrations();
44
+ }
45
+
46
+
47
+ /**
48
+ * Loads integration classes.
49
+ *
50
+ * @since 1.11.0-dev.1
51
+ */
52
+ private function load_integrations() {
53
+
54
+ $registered_integrations = [
55
+ 'WC_Facebook_WPML_Injector' => '/includes/fbwpml.php',
56
+ ];
57
+
58
+ foreach ( $registered_integrations as $class_name => $path ) {
59
+
60
+ if ( ! class_exists( $class_name ) && ! is_readable( $path ) ) {
61
+
62
+ $this->integrations[ $class_name ] = $this->plugin->load_class( $path, $class_name );
63
+ }
64
+ }
65
+ }
66
+
67
+
68
+ }
includes/fbwpml.php CHANGED
@@ -25,13 +25,22 @@ if ( ! class_exists( 'WC_Facebook_WPML_Injector' ) ) :
25
public static $default_lang = null;
26
const OPTION = 'fb_wmpl_language_visibility';
27
28
public function __construct() {
29
- add_action( 'icl_menu_footer', array( $this, 'wpml_support' ) );
30
- add_action( 'icl_ajx_custom_call', array( $this, 'wpml_ajax_support' ), 10, 2 );
31
self::$settings = get_option( self::OPTION );
32
self::$default_lang = apply_filters( 'wpml_default_language', null );
33
}
34
35
public static function should_hide( $wp_id ) {
36
$product_lang = apply_filters( 'wpml_post_language_details', null, $wp_id );
37
$settings = self::$settings;
@@ -121,15 +130,10 @@ if ( ! class_exists( 'WC_Facebook_WPML_Injector' ) ) :
121
122
<?php endforeach; ?>
123
124
<p class="buttons-wrap">
125
- <span class="icl_ajx_response_fb" id="icl_ajx_response_fb" hidden="true">
126
- <?php printf(
127
- /* translators: Placeholders %1$s - opening link HTML tag, %2$s - closing link HTML tag */
128
- esc_html__( 'Saved. You should now %1$sRe-Sync%2$s your products with Facebook.', 'facebook-for-woocommerce' ),
129
- sprintf( '<a href="%s">', esc_url( add_query_arg( 'fb_force_resync', 'true', WOOCOMMERCE_FACEBOOK_PLUGIN_SETTINGS_URL ) ) ),
130
- '</a>'
131
- ); ?>
132
- </span>
133
<input
134
class="button button-primary"
135
name="save"
25
public static $default_lang = null;
26
const OPTION = 'fb_wmpl_language_visibility';
27
28
+
29
+ /**
30
+ * Constructor for WC_Facebook_WPML_Injector class.
31
+ */
32
public function __construct() {
33
+
34
self::$settings = get_option( self::OPTION );
35
self::$default_lang = apply_filters( 'wpml_default_language', null );
36
+
37
+ if ( is_admin() ) {
38
+ add_action( 'icl_menu_footer', [ $this, 'wpml_support' ] );
39
+ add_action( 'icl_ajx_custom_call', [ $this, 'wpml_ajax_support' ], 10, 2 );
40
+ }
41
}
42
43
+
44
public static function should_hide( $wp_id ) {
45
$product_lang = apply_filters( 'wpml_post_language_details', null, $wp_id );
46
$settings = self::$settings;
130
131
<?php endforeach; ?>
132
133
+ <?php // TODO: restore success message removed in e7f290f when FBE 2.0 changes are available {WV 2020-04-27} ?>
134
+ <p class="icl_ajx_response_fb" id="icl_ajx_response_fb" hidden="true"><?php esc_html_e( "Saved. An automated sync from Facebook will run every hour to update the catalog with any changes you've made.", 'facebook-for-woocommerce' ); ?></p>
135
+
136
<p class="buttons-wrap">
137
<input
138
class="button button-primary"
139
name="save"
readme.txt CHANGED
@@ -39,6 +39,9 @@ When opening a bug on GitHub, please give us as many details as possible.
39
40
== Changelog ==
41
42
= 2020.04.23 - version 1.11.0 =
43
* Tweak - Sync products using Facebook's feed pull method
44
* Fix - When filtering products by sync enabled status, make sure variable products with sync disabled status do not show up in results
39
40
== Changelog ==
41
42
+ = 2020.04.27 - version 1.11.1 =
43
+ * Fix - Fix integration with WPML
44
+
45
= 2020.04.23 - version 1.11.0 =
46
* Tweak - Sync products using Facebook's feed pull method
47
* Fix - When filtering products by sync enabled status, make sure variable products with sync disabled status do not show up in results