Version Description
Improved support for WooCommerce 3.8 and other minor bug fixes
Download this release
Release Info
Developer | printful |
Plugin | Printful Integration for WooCommerce |
Version | 2.1.8 |
Comparing to | |
See all releases |
Code changes from version 2.1.7 to 2.1.8
includes/class-printful-admin-settings.php
CHANGED
@@ -110,7 +110,7 @@ class Printful_Admin_Settings {
|
|
110 |
|
111 |
Printful_Admin::load_template( 'setting-submit', array( 'nonce' => wp_create_nonce( 'printful_settings' ), 'disabled' => true ) );
|
112 |
|
113 |
-
|
114 |
|
115 |
Printful_Admin::load_template( 'footer' );
|
116 |
}
|
@@ -200,8 +200,8 @@ class Printful_Admin_Settings {
|
|
200 |
$carrier_regions = Printful_Carriers::instance()->carriers;
|
201 |
|
202 |
if ( empty( $carrier_regions ) ) {
|
203 |
-
|
204 |
-
|
205 |
|
206 |
$us_carriers[ self::CARRIER_REGION_US ] = ( ( ! empty( $_POST[ self::CARRIER_REGION_US ] ) && wp_verify_nonce( $_POST['_wpnonce'], 'printful_settings' ) ) ? $_POST[ self::CARRIER_REGION_US ] : array() );
|
207 |
$eu_carriers[ self::CARRIER_REGION_EU ] = ( ( ! empty( $_POST[ self::CARRIER_REGION_EU ] ) && wp_verify_nonce( $_POST['_wpnonce'], 'printful_settings' ) ) ? $_POST[ self::CARRIER_REGION_EU ] : array() );
|
110 |
|
111 |
Printful_Admin::load_template( 'setting-submit', array( 'nonce' => wp_create_nonce( 'printful_settings' ), 'disabled' => true ) );
|
112 |
|
113 |
+
echo '</form>';
|
114 |
|
115 |
Printful_Admin::load_template( 'footer' );
|
116 |
}
|
200 |
$carrier_regions = Printful_Carriers::instance()->carriers;
|
201 |
|
202 |
if ( empty( $carrier_regions ) ) {
|
203 |
+
return false;
|
204 |
+
}
|
205 |
|
206 |
$us_carriers[ self::CARRIER_REGION_US ] = ( ( ! empty( $_POST[ self::CARRIER_REGION_US ] ) && wp_verify_nonce( $_POST['_wpnonce'], 'printful_settings' ) ) ? $_POST[ self::CARRIER_REGION_US ] : array() );
|
207 |
$eu_carriers[ self::CARRIER_REGION_EU ] = ( ( ! empty( $_POST[ self::CARRIER_REGION_EU ] ) && wp_verify_nonce( $_POST['_wpnonce'], 'printful_settings' ) ) ? $_POST[ self::CARRIER_REGION_EU ] : array() );
|
includes/class-printful-admin-status.php
CHANGED
@@ -307,9 +307,9 @@ class Printful_Admin_Status {
|
|
307 |
return self::PF_STATUS_FAIL;
|
308 |
}
|
309 |
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
|
314 |
return self::PF_STATUS_FAIL;
|
315 |
}
|
307 |
return self::PF_STATUS_FAIL;
|
308 |
}
|
309 |
|
310 |
+
if ( version_compare( $current, $latest, '>=' ) ) {
|
311 |
+
return self::PF_STATUS_OK;
|
312 |
+
}
|
313 |
|
314 |
return self::PF_STATUS_FAIL;
|
315 |
}
|
includes/class-printful-carriers.php
CHANGED
@@ -67,14 +67,17 @@ class Printful_Carriers {
|
|
67 |
*/
|
68 |
public function post_carriers( $data ) {
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
|
74 |
$shipping = new self;
|
75 |
try {
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
78 |
} catch ( PrintfulApiException $e ) {
|
79 |
$carriers = false;
|
80 |
} catch ( PrintfulException $e ) {
|
67 |
*/
|
68 |
public function post_carriers( $data ) {
|
69 |
|
70 |
+
if ( empty( $data ) ) {
|
71 |
+
return false;
|
72 |
+
}
|
73 |
|
74 |
$shipping = new self;
|
75 |
try {
|
76 |
+
$carriers = Printful_Integration::instance()->get_client()->patch( 'store/update-shipping-methods', $data );
|
77 |
+
|
78 |
+
if ( empty( $carriers['error'] ) ) {
|
79 |
+
$shipping->update_carrier_cache( $carriers );
|
80 |
+
}
|
81 |
} catch ( PrintfulApiException $e ) {
|
82 |
$carriers = false;
|
83 |
} catch ( PrintfulException $e ) {
|
includes/templates/quick-links.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<h2>Quick links</h2>
|
2 |
|
3 |
<div class="printful-quick-links">
|
4 |
-
<a href="<?php echo esc_url(Printful_Base::get_printful_host()); ?>dashboard" target="_blank" class="printful-quick-links-item">
|
5 |
<span class="dashicons dashicons-cart"></span>
|
6 |
<h4><?php esc_html_e('Orders', 'printful'); ?></h4>
|
7 |
</a>
|
1 |
<h2>Quick links</h2>
|
2 |
|
3 |
<div class="printful-quick-links">
|
4 |
+
<a href="<?php echo esc_url(Printful_Base::get_printful_host()); ?>dashboard/default/orders" target="_blank" class="printful-quick-links-item">
|
5 |
<span class="dashicons dashicons-cart"></span>
|
6 |
<h4><?php esc_html_e('Orders', 'printful'); ?></h4>
|
7 |
</a>
|
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.
|
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.
|
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.
|
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.8
|
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.9
|
13 |
*/
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
20 |
|
21 |
class Printful_Base {
|
22 |
|
23 |
+
const VERSION = '2.1.8';
|
24 |
const PF_HOST = 'https://www.printful.com/';
|
25 |
const PF_API_HOST = 'https://api.printful.com/';
|
26 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
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.
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -14,32 +14,32 @@ Grow your store with the top print-on-demand dropshipping plugin
|
|
14 |
|
15 |
= Partner with the #1 print-on-demand drop shipping plugin. Over 30,000 active stores and counting! =
|
16 |
|
17 |
-
With Printful, you can focus on building your store. We
|
18 |
|
19 |
-
We
|
20 |
|
21 |
-
Printful
|
22 |
|
23 |
= How does Printful work? =
|
24 |
|
25 |
-
When a customer buys something from your WooCommerce store, the order is automatically imported to Printful, where we fulfill and ship it to them under your brand. You can then see your order, revenue and profit statistics on your WooCommerce dashboard.
|
26 |
|
27 |
-
We’
|
28 |
|
29 |
-
Learn more about the WooCommerce + Printful integration [here](https://www.printful.com/
|
30 |
|
31 |
= With WooCommerce + Printful, you get: =
|
32 |
|
33 |
-
- Control your profit: We charge you to cover production
|
34 |
- Automated tax settings and live shipping rates
|
35 |
- Free design templates: Get creative with our product generator
|
36 |
-
- Product personalization:
|
37 |
-
- Warehousing & Fulfillment services:
|
38 |
- Stress-free shipping: Lost shipments are on us, and we offer shipping methods with tracking
|
39 |
-
-
|
40 |
-
- 24/7
|
41 |
|
42 |
-
Still not convinced? Check out our [demo store](https://demo
|
43 |
|
44 |
== Installation ==
|
45 |
1. Upload 'printful-shipping-for-woocommerce' to the '/wp-content/plugins/' directory
|
@@ -65,6 +65,9 @@ Go to https://www.printful.com/dashboard/store , select your WooCommerce store,
|
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
|
|
|
|
|
|
68 |
= 2.1.7 =
|
69 |
Updated labels in plugin settings
|
70 |
|
@@ -163,6 +166,9 @@ First release
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
166 |
= 2.1.7 =
|
167 |
* Updated labels in plugin settings
|
168 |
|
2 |
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.3
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.1.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
14 |
|
15 |
= Partner with the #1 print-on-demand drop shipping plugin. Over 30,000 active stores and counting! =
|
16 |
|
17 |
+
With Printful, you can focus on building your store. We'll print, fulfill and ship your products for you. Simply upload your design, add it to your store, and we'll do the rest.
|
18 |
|
19 |
+
We offer more than 220 products in various categories, from apparel, home items, jewelry, accessories, and more! Once your orders start rolling in, we’ll fulfill and ship each one under your brand and in an average of 3 business days at our locations in California, North Carolina, Mexico, and Europe.
|
20 |
|
21 |
+
Printful customers have already made more than $310 million in sales, so start selling today!
|
22 |
|
23 |
= How does Printful work? =
|
24 |
|
25 |
+
When a customer buys something from your WooCommerce store, the order is automatically imported to Printful, where we fulfill and ship it to them under your brand. You can then see your order, revenue, and profit statistics on your WooCommerce dashboard.
|
26 |
|
27 |
+
We’re trusted to print over 14 million products. When will we print for you?
|
28 |
|
29 |
+
Learn more about the WooCommerce + Printful integration [here](https://www.printful.com/dashboard/woocommerce/register).
|
30 |
|
31 |
= With WooCommerce + Printful, you get: =
|
32 |
|
33 |
+
- Control over your profit: We charge you to cover production while you set your retail price, and what's left is your profit
|
34 |
- Automated tax settings and live shipping rates
|
35 |
- Free design templates: Get creative with our product generator
|
36 |
+
- Product personalization: Sell designs your customers can personalize themselves
|
37 |
+
- Warehousing & Fulfillment services: Store your inventory at our warehouse, and we'll fulfill all your orders
|
38 |
- Stress-free shipping: Lost shipments are on us, and we offer shipping methods with tracking
|
39 |
+
- Samples orders: Get product samples with 20% off + free shipping to select destinations
|
40 |
+
- 24/7 support: Get in touch with us using chat, email, or phone
|
41 |
|
42 |
+
Still not convinced? Check out our [demo store](https://woocommerce-demo.printful.com/) to see what's possible!
|
43 |
|
44 |
== Installation ==
|
45 |
1. Upload 'printful-shipping-for-woocommerce' to the '/wp-content/plugins/' directory
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
68 |
+
= 2.1.8 =
|
69 |
+
Improved support for WooCommerce 3.8 and other minor bug fixes
|
70 |
+
|
71 |
= 2.1.7 =
|
72 |
Updated labels in plugin settings
|
73 |
|
166 |
|
167 |
== Changelog ==
|
168 |
|
169 |
+
= 2.1.8 =
|
170 |
+
* Improved support for WooCommerce 3.8 and other minor bug fixes
|
171 |
+
|
172 |
= 2.1.7 =
|
173 |
* Updated labels in plugin settings
|
174 |
|