Printful Integration for WooCommerce - Version 2.1.6

Version Description

Added the ability to change personalization popup title

Download this release

Release Info

Developer printful
Plugin Icon 128x128 Printful Integration for WooCommerce
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

assets/js/product-customizer.js CHANGED
@@ -82,7 +82,7 @@ var Printful_Product_Customizer;
82
var modalHeaderTitle = document.createElement('h4');
83
modalHeaderTitle.className = 'product-customizer__header-title';
84
modalHeaderTitle.setAttribute('style', 'float: left;font-weight:bold;font-size:23px;color:#222;line-height:30px;margin:0px;clear:none;');
85
- modalHeaderTitle.innerText = 'Create a personalized design';
86
modalHeader.appendChild(modalHeaderTitle);
87
88
var modalContent = document.createElement('div');
82
var modalHeaderTitle = document.createElement('h4');
83
modalHeaderTitle.className = 'product-customizer__header-title';
84
modalHeaderTitle.setAttribute('style', 'float: left;font-weight:bold;font-size:23px;color:#222;line-height:30px;margin:0px;clear:none;');
85
+ modalHeaderTitle.innerText = window.pfGlobal && window.pfGlobal.modal_title ? window.pfGlobal.modal_title : 'Create a personalized design';
86
modalHeader.appendChild(modalHeaderTitle);
87
88
var modalContent = document.createElement('div');
i18n/languages/printful.pot CHANGED
@@ -2,7 +2,7 @@
2
msgid ""
3
msgstr ""
4
"Project-Id-Version: \n"
5
- "POT-Creation-Date: 2019-05-28 12:28+0300\n"
6
"PO-Revision-Date: 2018-04-26 13:50+0300\n"
7
"Last-Translator: \n"
8
"Language-Team: \n"
@@ -25,138 +25,137 @@ msgstr ""
25
msgid "Loading your orders..."
26
msgstr ""
27
28
- #: includes/class-printful-admin-settings.php:24
29
msgid "states where Printful applies sales tax"
30
msgstr ""
31
32
- #: includes/class-printful-admin-settings.php:29
33
msgid "Printful store API key"
34
msgstr ""
35
36
- #: includes/class-printful-admin-settings.php:32
37
msgid "Your store's Printful API key. Create it in the Prinful dashboard"
38
msgstr ""
39
40
- #: includes/class-printful-admin-settings.php:36
41
msgid "Calculate sales tax"
42
msgstr ""
43
44
- #: includes/class-printful-admin-settings.php:45
45
msgid "Disable SSL"
46
msgstr ""
47
48
- #: includes/class-printful-admin-settings.php:47
49
msgid ""
50
"Use HTTP instead of HTTPS to connect to the Printful API (may be required if "
51
"the plugin does not work for some hosting configurations)"
52
msgstr ""
53
54
- #: includes/class-printful-admin-settings.php:51
55
- #: includes/class-printful-admin-settings.php:53
56
msgid "Personalization button text"
57
msgstr ""
58
59
- #: includes/class-printful-admin-settings.php:57
60
msgid "Personalization button color"
61
msgstr ""
62
63
- #: includes/class-printful-admin-settings.php:59
64
msgid "Personalization button background color"
65
msgstr ""
66
67
- #: includes/class-printful-admin-settings.php:154
68
msgid "flat rates"
69
msgstr ""
70
71
- #: includes/class-printful-admin-settings.php:158
72
msgid "Shipping Methods"
73
msgstr ""
74
75
- #: includes/class-printful-admin-settings.php:171
76
msgid "You need to be connected to Printful API to edit carrier settings!"
77
msgstr ""
78
79
- #: includes/class-printful-admin-settings.php:310
80
msgid "International from USA"
81
msgstr ""
82
83
- #: includes/class-printful-admin-settings.php:316
84
msgid "International from EU"
85
msgstr ""
86
87
- #: includes/class-printful-admin-status.php:22
88
msgid "Connection to Printful API"
89
msgstr ""
90
91
- #: includes/class-printful-admin-status.php:23
92
msgid "Is your store successfully connected to Printful API?"
93
msgstr ""
94
95
- #: includes/class-printful-admin-status.php:27
96
msgid "Printful API key is set"
97
msgstr ""
98
99
- #: includes/class-printful-admin-status.php:28
100
msgid ""
101
"Your store needs access to Printful API to use most of it's features like "
102
"shipping rates, tax rates and other settings."
103
msgstr ""
104
105
- #: includes/class-printful-admin-status.php:32
106
msgid "WordPress Permalinks"
107
msgstr ""
108
109
- #: includes/class-printful-admin-status.php:33
110
msgid ""
111
"WooCommerce API will not work unless your permalinks in Settings > "
112
"Permalinks are set up correctly. Make sure you that they are NOT set to "
113
"\"plain\"."
114
msgstr ""
115
116
- #: includes/class-printful-admin-status.php:37
117
msgid "WordPress version"
118
msgstr ""
119
120
- #: includes/class-printful-admin-status.php:38
121
msgid ""
122
"WordPress should always be updated to the latest version. Updates can be "
123
"installed from your WordPress admin dashboard."
124
msgstr ""
125
126
- #: includes/class-printful-admin-status.php:42
127
- msgid "WooCommerce API enabled"
128
- msgstr ""
129
-
130
- #: includes/class-printful-admin-status.php:43
131
- msgid ""
132
- "Your site needs to enable WooCommerce API so that Printful can connect to it."
133
- msgstr ""
134
-
135
- #: includes/class-printful-admin-status.php:47
136
msgid "WooCommerce Webhooks"
137
msgstr ""
138
139
- #: includes/class-printful-admin-status.php:48
140
msgid ""
141
"Printful requires WooCommerce webhooks to be set up to quickly capture you "
142
"incoming orders, products updates etc."
143
msgstr ""
144
145
- #: includes/class-printful-admin-status.php:52
146
msgid "WooCommerce API keys are set"
147
msgstr ""
148
149
- #: includes/class-printful-admin-status.php:53
150
msgid ""
151
"Printful needs access to your WooCommerce API for the integration to work - "
152
"otherwise we can't sync your store, push or pull your products etc."
153
msgstr ""
154
155
- #: includes/class-printful-admin-status.php:57
156
msgid "WooCommerce authentication URL access"
157
msgstr ""
158
159
- #: includes/class-printful-admin-status.php:58
160
msgid ""
161
"Printful needs access to WooCommerce API authorize page. This sometimes may "
162
"get blocked due to hosts having unnecessarily intrusive security checks in "
@@ -165,99 +164,99 @@ msgid ""
165
"authorize Printful app."
166
msgstr ""
167
168
- #: includes/class-printful-admin-status.php:62
169
msgid "WordPress remote requests"
170
msgstr ""
171
172
- #: includes/class-printful-admin-status.php:63
173
msgid ""
174
"WordPress needs to be able to connect to Printful server to call webhooks. "
175
"If this check fails, contact your hosting support."
176
msgstr ""
177
178
- #: includes/class-printful-admin-status.php:67
179
- msgid "WordPress site url"
180
msgstr ""
181
182
- #: includes/class-printful-admin-status.php:68
183
msgid ""
184
"If your currently setup WordPress site URL is redirected to another URL the "
185
"integration might not work correctly. Typically this happens with incorrect "
186
"http to https redirects. Go to Settings > General to fix this."
187
msgstr ""
188
189
- #: includes/class-printful-admin-status.php:72
190
msgid "Recent store sync errors"
191
msgstr ""
192
193
- #: includes/class-printful-admin-status.php:73
194
msgid ""
195
"Printful will connect to your store's API regularly and sync your latest "
196
"products, orders etc. If there have been any recent issues with sync, this "
197
"check will fail."
198
msgstr ""
199
200
- #: includes/class-printful-admin-status.php:77
201
msgid "Write permissions"
202
msgstr ""
203
204
- #: includes/class-printful-admin-status.php:78
205
msgid ""
206
"Make the uploads directory writable. This is required for mockup generator "
207
"product push to work correctly. Contact your hosting provider if you need "
208
"help with this."
209
msgstr ""
210
211
- #: includes/class-printful-admin-status.php:82
212
msgid "PHP memory limit"
213
msgstr ""
214
215
- #: includes/class-printful-admin-status.php:83
216
msgid ""
217
"Set PHP allocated memory limit to at least 128mb. Contact your hosting "
218
"provider if you need help with this."
219
msgstr ""
220
221
- #: includes/class-printful-admin-status.php:87
222
msgid "PHP script time limit"
223
msgstr ""
224
225
- #: includes/class-printful-admin-status.php:88
226
msgid ""
227
"Set PHP script execution time limit to at least 30 seconds. This is required "
228
"to successfully push products with many variants. Contact your hosting "
229
"provider if you need help with this."
230
msgstr ""
231
232
- #: includes/class-printful-admin-status.php:92
233
msgid "W3 Total Cache DB Cache"
234
msgstr ""
235
236
- #: includes/class-printful-admin-status.php:93
237
msgid ""
238
"If you are using W3 Total Cache, the database caching feature needs to be "
239
"disabled since it can cause issues with product push to store."
240
msgstr ""
241
242
- #: includes/class-printful-admin-status.php:98
243
msgid "WP SpamShield"
244
msgstr ""
245
246
- #: includes/class-printful-admin-status.php:99
247
msgid ""
248
"If you are using WP SpamShield, you might experience problems connecting to "
249
"Printful and pushing products."
250
msgstr ""
251
252
- #: includes/class-printful-admin-status.php:104
253
msgid "Remove Print Aura plugin"
254
msgstr ""
255
256
- #: includes/class-printful-admin-status.php:105
257
msgid "Print Aura plugin is known to cause issues so it needs to be removed."
258
msgstr ""
259
260
- #: includes/class-printful-admin-status.php:146
261
msgid "Testing your store (this may take up to 30 seconds)..."
262
msgstr ""
263
@@ -265,7 +264,7 @@ msgstr ""
265
msgid "Building support report (this may take up to 30 seconds)..."
266
msgstr ""
267
268
- #: includes/class-printful-admin-support.php:68
269
msgid "##### Printful Checklist #####\n"
270
msgstr ""
271
@@ -279,7 +278,7 @@ msgstr ""
279
280
#: includes/class-printful-admin.php:112 includes/templates/order-table.php:12
281
#: includes/templates/order-table.php:58 includes/templates/status-table.php:21
282
- #: includes/templates/status-table.php:49
283
msgid "Status"
284
msgstr ""
285
@@ -327,11 +326,11 @@ msgstr ""
327
msgid "You do not have permission to edit the size chart"
328
msgstr ""
329
330
- #: includes/class-printful-rest-api-controller.php:209
331
msgid "Sorry, you cannot list resources."
332
msgstr ""
333
334
- #: includes/class-printful-rest-api-controller.php:226
335
msgid "Sorry, you are not allowed to edit this resource."
336
msgstr ""
337
@@ -515,12 +514,12 @@ msgid ""
515
msgstr ""
516
517
#: includes/templates/status-table.php:19
518
- #: includes/templates/status-table.php:47
519
msgid "Name"
520
msgstr ""
521
522
#: includes/templates/status-table.php:20
523
- #: includes/templates/status-table.php:48
524
msgid "Description"
525
msgstr ""
526
@@ -533,10 +532,14 @@ msgid "WARNING"
533
msgstr ""
534
535
#: includes/templates/status-table.php:38
536
msgid "FAIL"
537
msgstr ""
538
539
- #: includes/templates/status-table.php:54
540
msgid ""
541
"Warnings are issued when the test was unable to come to a definite "
542
"conclusion or if the result was passable, but not ideal."
2
msgid ""
3
msgstr ""
4
"Project-Id-Version: \n"
5
+ "POT-Creation-Date: 2019-08-15 10:44+0300\n"
6
"PO-Revision-Date: 2018-04-26 13:50+0300\n"
7
"Last-Translator: \n"
8
"Language-Team: \n"
25
msgid "Loading your orders..."
26
msgstr ""
27
28
+ #: includes/class-printful-admin-settings.php:25
29
msgid "states where Printful applies sales tax"
30
msgstr ""
31
32
+ #: includes/class-printful-admin-settings.php:30
33
msgid "Printful store API key"
34
msgstr ""
35
36
+ #: includes/class-printful-admin-settings.php:33
37
msgid "Your store's Printful API key. Create it in the Prinful dashboard"
38
msgstr ""
39
40
+ #: includes/class-printful-admin-settings.php:37
41
msgid "Calculate sales tax"
42
msgstr ""
43
44
+ #: includes/class-printful-admin-settings.php:46
45
msgid "Disable SSL"
46
msgstr ""
47
48
+ #: includes/class-printful-admin-settings.php:48
49
msgid ""
50
"Use HTTP instead of HTTPS to connect to the Printful API (may be required if "
51
"the plugin does not work for some hosting configurations)"
52
msgstr ""
53
54
+ #: includes/class-printful-admin-settings.php:52
55
+ #: includes/class-printful-admin-settings.php:54
56
msgid "Personalization button text"
57
msgstr ""
58
59
+ #: includes/class-printful-admin-settings.php:58
60
msgid "Personalization button color"
61
msgstr ""
62
63
+ #: includes/class-printful-admin-settings.php:60
64
msgid "Personalization button background color"
65
msgstr ""
66
67
+ #: includes/class-printful-admin-settings.php:64
68
+ msgid "Personalization popup title"
69
+ msgstr ""
70
+
71
+ #: includes/class-printful-admin-settings.php:66
72
+ msgid "Personalization popup title text"
73
+ msgstr ""
74
+
75
+ #: includes/class-printful-admin-settings.php:161
76
msgid "flat rates"
77
msgstr ""
78
79
+ #: includes/class-printful-admin-settings.php:165
80
msgid "Shipping Methods"
81
msgstr ""
82
83
+ #: includes/class-printful-admin-settings.php:178
84
msgid "You need to be connected to Printful API to edit carrier settings!"
85
msgstr ""
86
87
+ #: includes/class-printful-admin-settings.php:317
88
msgid "International from USA"
89
msgstr ""
90
91
+ #: includes/class-printful-admin-settings.php:323
92
msgid "International from EU"
93
msgstr ""
94
95
+ #: includes/class-printful-admin-status.php:29
96
msgid "Connection to Printful API"
97
msgstr ""
98
99
+ #: includes/class-printful-admin-status.php:30
100
msgid "Is your store successfully connected to Printful API?"
101
msgstr ""
102
103
+ #: includes/class-printful-admin-status.php:34
104
msgid "Printful API key is set"
105
msgstr ""
106
107
+ #: includes/class-printful-admin-status.php:35
108
msgid ""
109
"Your store needs access to Printful API to use most of it's features like "
110
"shipping rates, tax rates and other settings."
111
msgstr ""
112
113
+ #: includes/class-printful-admin-status.php:39
114
msgid "WordPress Permalinks"
115
msgstr ""
116
117
+ #: includes/class-printful-admin-status.php:40
118
msgid ""
119
"WooCommerce API will not work unless your permalinks in Settings > "
120
"Permalinks are set up correctly. Make sure you that they are NOT set to "
121
"\"plain\"."
122
msgstr ""
123
124
+ #: includes/class-printful-admin-status.php:44
125
msgid "WordPress version"
126
msgstr ""
127
128
+ #: includes/class-printful-admin-status.php:45
129
msgid ""
130
"WordPress should always be updated to the latest version. Updates can be "
131
"installed from your WordPress admin dashboard."
132
msgstr ""
133
134
+ #: includes/class-printful-admin-status.php:49
135
msgid "WooCommerce Webhooks"
136
msgstr ""
137
138
+ #: includes/class-printful-admin-status.php:50
139
msgid ""
140
"Printful requires WooCommerce webhooks to be set up to quickly capture you "
141
"incoming orders, products updates etc."
142
msgstr ""
143
144
+ #: includes/class-printful-admin-status.php:54
145
msgid "WooCommerce API keys are set"
146
msgstr ""
147
148
+ #: includes/class-printful-admin-status.php:55
149
msgid ""
150
"Printful needs access to your WooCommerce API for the integration to work - "
151
"otherwise we can't sync your store, push or pull your products etc."
152
msgstr ""
153
154
+ #: includes/class-printful-admin-status.php:59
155
msgid "WooCommerce authentication URL access"
156
msgstr ""
157
158
+ #: includes/class-printful-admin-status.php:60
159
msgid ""
160
"Printful needs access to WooCommerce API authorize page. This sometimes may "
161
"get blocked due to hosts having unnecessarily intrusive security checks in "
164
"authorize Printful app."
165
msgstr ""
166
167
+ #: includes/class-printful-admin-status.php:64
168
msgid "WordPress remote requests"
169
msgstr ""
170
171
+ #: includes/class-printful-admin-status.php:65
172
msgid ""
173
"WordPress needs to be able to connect to Printful server to call webhooks. "
174
"If this check fails, contact your hosting support."
175
msgstr ""
176
177
+ #: includes/class-printful-admin-status.php:69
178
+ msgid "WordPress Site URL"
179
msgstr ""
180
181
+ #: includes/class-printful-admin-status.php:70
182
msgid ""
183
"If your currently setup WordPress site URL is redirected to another URL the "
184
"integration might not work correctly. Typically this happens with incorrect "
185
"http to https redirects. Go to Settings > General to fix this."
186
msgstr ""
187
188
+ #: includes/class-printful-admin-status.php:74
189
msgid "Recent store sync errors"
190
msgstr ""
191
192
+ #: includes/class-printful-admin-status.php:75
193
msgid ""
194
"Printful will connect to your store's API regularly and sync your latest "
195
"products, orders etc. If there have been any recent issues with sync, this "
196
"check will fail."
197
msgstr ""
198
199
+ #: includes/class-printful-admin-status.php:79
200
msgid "Write permissions"
201
msgstr ""
202
203
+ #: includes/class-printful-admin-status.php:80
204
msgid ""
205
"Make the uploads directory writable. This is required for mockup generator "
206
"product push to work correctly. Contact your hosting provider if you need "
207
"help with this."
208
msgstr ""
209
210
+ #: includes/class-printful-admin-status.php:84
211
msgid "PHP memory limit"
212
msgstr ""
213
214
+ #: includes/class-printful-admin-status.php:85
215
msgid ""
216
"Set PHP allocated memory limit to at least 128mb. Contact your hosting "
217
"provider if you need help with this."
218
msgstr ""
219
220
+ #: includes/class-printful-admin-status.php:89
221
msgid "PHP script time limit"
222
msgstr ""
223
224
+ #: includes/class-printful-admin-status.php:90
225
msgid ""
226
"Set PHP script execution time limit to at least 30 seconds. This is required "
227
"to successfully push products with many variants. Contact your hosting "
228
"provider if you need help with this."
229
msgstr ""
230
231
+ #: includes/class-printful-admin-status.php:94
232
msgid "W3 Total Cache DB Cache"
233
msgstr ""
234
235
+ #: includes/class-printful-admin-status.php:95
236
msgid ""
237
"If you are using W3 Total Cache, the database caching feature needs to be "
238
"disabled since it can cause issues with product push to store."
239
msgstr ""
240
241
+ #: includes/class-printful-admin-status.php:100
242
msgid "WP SpamShield"
243
msgstr ""
244
245
+ #: includes/class-printful-admin-status.php:101
246
msgid ""
247
"If you are using WP SpamShield, you might experience problems connecting to "
248
"Printful and pushing products."
249
msgstr ""
250
251
+ #: includes/class-printful-admin-status.php:106
252
msgid "Remove Print Aura plugin"
253
msgstr ""
254
255
+ #: includes/class-printful-admin-status.php:107
256
msgid "Print Aura plugin is known to cause issues so it needs to be removed."
257
msgstr ""
258
259
+ #: includes/class-printful-admin-status.php:148
260
msgid "Testing your store (this may take up to 30 seconds)..."
261
msgstr ""
262
264
msgid "Building support report (this may take up to 30 seconds)..."
265
msgstr ""
266
267
+ #: includes/class-printful-admin-support.php:69
268
msgid "##### Printful Checklist #####\n"
269
msgstr ""
270
278
279
#: includes/class-printful-admin.php:112 includes/templates/order-table.php:12
280
#: includes/templates/order-table.php:58 includes/templates/status-table.php:21
281
+ #: includes/templates/status-table.php:51
282
msgid "Status"
283
msgstr ""
284
326
msgid "You do not have permission to edit the size chart"
327
msgstr ""
328
329
+ #: includes/class-printful-rest-api-controller.php:211
330
msgid "Sorry, you cannot list resources."
331
msgstr ""
332
333
+ #: includes/class-printful-rest-api-controller.php:228
334
msgid "Sorry, you are not allowed to edit this resource."
335
msgstr ""
336
514
msgstr ""
515
516
#: includes/templates/status-table.php:19
517
+ #: includes/templates/status-table.php:49
518
msgid "Name"
519
msgstr ""
520
521
#: includes/templates/status-table.php:20
522
+ #: includes/templates/status-table.php:50
523
msgid "Description"
524
msgstr ""
525
532
msgstr ""
533
534
#: includes/templates/status-table.php:38
535
+ msgid "NOT CONNECTED"
536
+ msgstr ""
537
+
538
+ #: includes/templates/status-table.php:40
539
msgid "FAIL"
540
msgstr ""
541
542
+ #: includes/templates/status-table.php:56
543
msgid ""
544
"Warnings are issued when the test was unable to come to a definite "
545
"conclusion or if the result was passable, but not ideal."
includes/class-printful-admin-settings.php CHANGED
@@ -12,6 +12,7 @@ class Printful_Admin_Settings {
12
const CARRIER_REGION_EU = 'LV';
13
const DEFAULT_PERSONALIZE_BUTTON_TEXT = 'Personalize Design';
14
const DEFAULT_PERSONALIZE_BUTTON_COLOR = '#eee';
15
16
/**
17
* @return array
@@ -58,7 +59,13 @@ class Printful_Admin_Settings {
58
'type' => 'color-picker',
59
'description' => __( 'Personalization button background color', 'printful' ),
60
'default' => self::DEFAULT_PERSONALIZE_BUTTON_COLOR,
61
- )
62
);
63
}
64
12
const CARRIER_REGION_EU = 'LV';
13
const DEFAULT_PERSONALIZE_BUTTON_TEXT = 'Personalize Design';
14
const DEFAULT_PERSONALIZE_BUTTON_COLOR = '#eee';
15
+ const DEFAULT_PERSONALIZE_MODAL_TITLE = 'Create a personalized design';
16
17
/**
18
* @return array
59
'type' => 'color-picker',
60
'description' => __( 'Personalization button background color', 'printful' ),
61
'default' => self::DEFAULT_PERSONALIZE_BUTTON_COLOR,
62
+ ),
63
+ 'pfc_modal_title' => array(
64
+ 'title' => __( 'Personalization popup title', 'printful' ),
65
+ 'type' => 'text',
66
+ 'description' => __( 'Personalization popup title text', 'printful' ),
67
+ 'default' => self::DEFAULT_PERSONALIZE_MODAL_TITLE,
68
+ ),
69
);
70
}
71
includes/class-printful-customizer.php CHANGED
@@ -39,9 +39,11 @@ class Printful_Customizer {
39
if ($is_customized_product || is_cart()) {
40
$customizer_script_handle = 'printful-product-customizer';
41
wp_enqueue_script( $customizer_script_handle, plugins_url( '../assets/js/product-customizer.js', __FILE__ ) );
42
- wp_localize_script( $customizer_script_handle, 'pfGlobal', [
43
- 'admin_url' => esc_url(admin_url())
44
- ] );
45
}
46
}
47
39
if ($is_customized_product || is_cart()) {
40
$customizer_script_handle = 'printful-product-customizer';
41
wp_enqueue_script( $customizer_script_handle, plugins_url( '../assets/js/product-customizer.js', __FILE__ ) );
42
+ wp_localize_script( $customizer_script_handle, 'pfGlobal', array(
43
+ 'admin_url' => esc_url(admin_url()),
44
+ 'modal_title' => Printful_Integration::instance()
45
+ ->get_option( 'pfc_modal_title', Printful_Admin_Settings::DEFAULT_PERSONALIZE_MODAL_TITLE )
46
+ ));
47
}
48
}
49
includes/class-printful-template.php CHANGED
@@ -36,7 +36,8 @@ class Printful_Template {
36
Printful_Admin::load_template( 'personalize-button', array(
37
'site_url' => get_site_url(),
38
'pfc_button_color' => Printful_Integration::instance()->get_option( 'pfc_button_color' ) ?: Printful_Admin_Settings::DEFAULT_PERSONALIZE_BUTTON_COLOR,
39
- 'pfc_button_text' => Printful_Integration::instance()->get_option( 'pfc_button_text' ) ?: Printful_Admin_Settings::DEFAULT_PERSONALIZE_BUTTON_TEXT
40
) );
41
}
42
}
36
Printful_Admin::load_template( 'personalize-button', array(
37
'site_url' => get_site_url(),
38
'pfc_button_color' => Printful_Integration::instance()->get_option( 'pfc_button_color' ) ?: Printful_Admin_Settings::DEFAULT_PERSONALIZE_BUTTON_COLOR,
39
+ 'pfc_button_text' => Printful_Integration::instance()->get_option( 'pfc_button_text' ) ?: Printful_Admin_Settings::DEFAULT_PERSONALIZE_BUTTON_TEXT,
40
+ 'pfc_modal_title' => Printful_Integration::instance()->get_option( 'pfc_modal_title' ) ?: Printful_Admin_Settings::DEFAULT_PERSONALIZE_MODAL_TITLE,
41
) );
42
}
43
}
printful-shipping.php CHANGED
@@ -3,13 +3,13 @@
3
Plugin Name: Printful Integration for WooCommerce
4
Plugin URI: https://wordpress.org/plugins/printful-shipping-for-woocommerce/
5
Description: Calculate correct shipping and tax rates for your Printful-Woocommerce integration.
6
- Version: 2.1.5
7
Author: Printful
8
Author URI: http://www.printful.com
9
License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
10
Text Domain: printful
11
WC requires at least: 3.0.0
12
- WC tested up to: 3.6
13
*/
14
15
if ( ! defined( 'ABSPATH' ) ) exit;
@@ -20,7 +20,7 @@ if ( ! defined( 'PF_PLUGIN_FILE' ) ) {
20
21
class Printful_Base {
22
23
- const VERSION = '2.1.5';
24
const PF_HOST = 'https://www.printful.com/';
25
const PF_API_HOST = 'https://api.printful.com/';
26
3
Plugin Name: Printful Integration for WooCommerce
4
Plugin URI: https://wordpress.org/plugins/printful-shipping-for-woocommerce/
5
Description: Calculate correct shipping and tax rates for your Printful-Woocommerce integration.
6
+ Version: 2.1.6
7
Author: Printful
8
Author URI: http://www.printful.com
9
License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
10
Text Domain: printful
11
WC requires at least: 3.0.0
12
+ WC tested up to: 3.7
13
*/
14
15
if ( ! defined( 'ABSPATH' ) ) exit;
20
21
class Printful_Base {
22
23
+ const VERSION = '2.1.6';
24
const PF_HOST = 'https://www.printful.com/';
25
const PF_API_HOST = 'https://api.printful.com/';
26
readme.txt CHANGED
@@ -3,7 +3,8 @@ Contributors: girts_u, kievins, kberzins
3
Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillment, printing, fedex, carriers, checkout, t-shirts
4
Requires at least: 4.4
5
Tested up to: 5.2
6
- Stable tag: 2.1.5
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -64,6 +65,9 @@ Go to https://www.printful.com/dashboard/store , select your WooCommerce store,
64
65
== Upgrade Notice ==
66
67
= 2.1.5 =
68
Fixed issues with personalization tool and other minor improvements
69
@@ -156,6 +160,9 @@ First release
156
157
== Changelog ==
158
159
= 2.1.5 =
160
* Fixed issues with personalization tool and other minor improvements
161
3
Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillment, printing, fedex, carriers, checkout, t-shirts
4
Requires at least: 4.4
5
Tested up to: 5.2
6
+ Requires PHP: 5.6
7
+ Stable tag: 2.1.6
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
65
66
== Upgrade Notice ==
67
68
+ = 2.1.6 =
69
+ Added the ability to change personalization popup title
70
+
71
= 2.1.5 =
72
Fixed issues with personalization tool and other minor improvements
73
160
161
== Changelog ==
162
163
+ = 2.1.6 =
164
+ * Added the ability to change personalization popup title
165
+
166
= 2.1.5 =
167
* Fixed issues with personalization tool and other minor improvements
168