Skip to content

Commit 32518d7

Browse files
committed
1.9.2
1 parent bdb3d78 commit 32518d7

File tree

4 files changed

+31
-23
lines changed

4 files changed

+31
-23
lines changed

Diff for: ACTIONS-FILTERS.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ add_filter( 'convertkit_for_woocommerce_order_maybe_subscribe_customer_subscript
198198
</pre>
199199
<h3 id="convertkit_for_woocommerce_order_send_purchase_data">
200200
convertkit_for_woocommerce_order_send_purchase_data
201-
<code>includes/class-ckwc-order.php::499</code>
201+
<code>includes/class-ckwc-order.php::511</code>
202202
</h3><h4>Overview</h4>
203203
<p>Define the data to send to the ConvertKit API to create a Purchase in ConvertKit https://developers.kit.com/#create-a-purchase</p><h4>Parameters</h4>
204204
<table>
@@ -233,7 +233,7 @@ add_filter( 'convertkit_for_woocommerce_order_send_purchase_data', function( $pu
233233
</pre>
234234
<h3 id="convertkit_for_woocommerce_order_should_opt_in_customer">
235235
convertkit_for_woocommerce_order_should_opt_in_customer
236-
<code>includes/class-ckwc-order.php::833</code>
236+
<code>includes/class-ckwc-order.php::847</code>
237237
</h3><h4>Overview</h4>
238238
<p>Determine if the Customer should be opted in to ConvertKit. If the Order already opted in the Customer, this filter will not be fired. If the Order does not permit the Customer be opted in (i.e. they declined at checkout), this filter will not be fired.</p><h4>Parameters</h4>
239239
<table>
@@ -264,7 +264,7 @@ add_filter( 'convertkit_for_woocommerce_order_should_opt_in_customer', function(
264264
</pre>
265265
<h3 id="convertkit_for_woocommerce_email">
266266
convertkit_for_woocommerce_email
267-
<code>includes/class-ckwc-order.php::865</code>
267+
<code>includes/class-ckwc-order.php::879</code>
268268
</h3><h4>Overview</h4>
269269
<p>Returns the customer's email address for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.</p><h4>Parameters</h4>
270270
<table>
@@ -295,7 +295,7 @@ add_filter( 'convertkit_for_woocommerce_email', function( $email, $order ) {
295295
</pre>
296296
<h3 id="convertkit_for_woocommerce_order_name">
297297
convertkit_for_woocommerce_order_name
298-
<code>includes/class-ckwc-order.php::920</code>
298+
<code>includes/class-ckwc-order.php::934</code>
299299
</h3><h4>Overview</h4>
300300
<p>Returns the customer's name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence, or sending Purchase Data.</p><h4>Parameters</h4>
301301
<table>
@@ -326,7 +326,7 @@ add_filter( 'convertkit_for_woocommerce_order_name', function( $name, $order ) {
326326
</pre>
327327
<h3 id="convertkit_for_woocommerce_first_name">
328328
convertkit_for_woocommerce_first_name
329-
<code>includes/class-ckwc-order.php::952</code>
329+
<code>includes/class-ckwc-order.php::966</code>
330330
</h3><h4>Overview</h4>
331331
<p>Returns the customer's first name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.</p><h4>Parameters</h4>
332332
<table>
@@ -357,7 +357,7 @@ add_filter( 'convertkit_for_woocommerce_first_name', function( $first_name, $ord
357357
</pre>
358358
<h3 id="convertkit_for_woocommerce_last_name">
359359
convertkit_for_woocommerce_last_name
360-
<code>includes/class-ckwc-order.php::984</code>
360+
<code>includes/class-ckwc-order.php::998</code>
361361
</h3><h4>Overview</h4>
362362
<p>Returns the customer's last name for the given WooCommerce Order, immediately before it is sent to ConvertKit when subscribing the Customer to a Form, Tag or Sequence.</p><h4>Parameters</h4>
363363
<table>
@@ -388,7 +388,7 @@ add_filter( 'convertkit_for_woocommerce_last_name', function( $last_name, $order
388388
</pre>
389389
<h3 id="convertkit_for_woocommerce_custom_field_data">
390390
convertkit_for_woocommerce_custom_field_data
391-
<code>includes/class-ckwc-order.php::1054</code>
391+
<code>includes/class-ckwc-order.php::1068</code>
392392
</h3><h4>Overview</h4>
393393
<p>Returns an array of ConvertKit Custom Field Key/Value pairs, with values comprising of Order data based, to be sent to ConvertKit when an Order's Customer is subscribed via a Form, Tag or Sequence. Returns false if no Order data should be stored in ConvertKit Custom Fields.</p><h4>Parameters</h4>
394394
<table>

Diff for: languages/woocommerce-convertkit.pot

+18-13
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the same license as the Kit (formerly ConvertKit) for WooCommerce plugin.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Kit (formerly ConvertKit) for WooCommerce 1.9.1\n"
5+
"Project-Id-Version: Kit (formerly ConvertKit) for WooCommerce 1.9.2\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-woocommerce\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-01-23T02:56:00+00:00\n"
12+
"POT-Creation-Date: 2025-01-31T03:00:27+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.10.0\n"
1515
"X-Domain: woocommerce-convertkit\n"
@@ -519,45 +519,50 @@ msgstr ""
519519

520520
#. translators: WooCommerce Order ID
521521
#: includes/class-ckwc-order.php:416
522-
msgid "Order ID %s could not be found in WooCommerce."
522+
msgid "Order ID #%s could not be found in WooCommerce."
523523
msgstr ""
524524

525525
#. translators: WooCommerce Order ID
526-
#: includes/class-ckwc-order.php:430
527-
msgid "Order ID %s has already been sent to Kit."
526+
#: includes/class-ckwc-order.php:428
527+
msgid "Order ID #%s is a refund. Skipping..."
528528
msgstr ""
529529

530-
#: includes/class-ckwc-order.php:461
530+
#. translators: WooCommerce Order ID
531+
#: includes/class-ckwc-order.php:442
532+
msgid "Order ID #%s has already been sent to Kit."
533+
msgstr ""
534+
535+
#: includes/class-ckwc-order.php:473
531536
msgid "[Kit] Purchase Data skipped, as this Order has no Products"
532537
msgstr ""
533538

534539
#. translators: %1$s: Error Code, %2$s: Error Message
535-
#: includes/class-ckwc-order.php:532
540+
#: includes/class-ckwc-order.php:544
536541
msgid "[Kit] Send Purchase Data Error: %1$s %2$s"
537542
msgstr ""
538543

539544
#. translators: ConvertKit Purchase ID
540-
#: includes/class-ckwc-order.php:548
545+
#: includes/class-ckwc-order.php:560
541546
msgid "[Kit] Purchase Data sent successfully: ID [%s]"
542547
msgstr ""
543548

544549
#. translators: %1$s: Error Code, %2$s: Error Message
545-
#: includes/class-ckwc-order.php:573
550+
#: includes/class-ckwc-order.php:585
546551
msgid "[Kit] Purchase Data: Custom Fields: Get Subscriber Error: %1$s %2$s"
547552
msgstr ""
548553

549554
#. translators: %1$s: Error Code, %2$s: Error Message
550-
#: includes/class-ckwc-order.php:587
555+
#: includes/class-ckwc-order.php:599
551556
msgid "[Kit] Purchase Data: Custom Fields: No subscriber found for email address %s"
552557
msgstr ""
553558

554559
#. translators: %1$s: Error Code, %2$s: Error Message
555-
#: includes/class-ckwc-order.php:608
560+
#: includes/class-ckwc-order.php:620
556561
msgid "[Kit] Purchase Data: Custom Fields: Update Subscriber Error: %1$s %2$s"
557562
msgstr ""
558563

559564
#. translators: ConvertKit Subscriber ID
560-
#: includes/class-ckwc-order.php:619
565+
#: includes/class-ckwc-order.php:631
561566
msgid "[Kit] Purchase Data: Custom Fields sent successfully: Subscriber ID [%s]"
562567
msgstr ""
563568

@@ -653,7 +658,7 @@ msgstr[0] ""
653658
msgstr[1] ""
654659

655660
#: views/backend/settings/sync-past-orders.php:16
656-
msgid "Do not navigate away from this page until the process is completed, otherwise complete purchase data will not be sent to ConvertKit. You will be notified via this page when the process is completed."
661+
msgid "Do not navigate away from this page until the process is completed, otherwise complete purchase data will not be sent to Kit. You will be notified via this page when the process is completed."
657662
msgstr ""
658663

659664
#: views/backend/settings/sync-past-orders.php:34

Diff for: readme.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: email, marketing, embed form, convertkit, capture
55
Requires at least: 5.0
66
Tested up to: 6.7.1
77
Requires PHP: 5.6.20
8-
Stable tag: 1.9.1
8+
Stable tag: 1.9.2
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -46,6 +46,9 @@ No. You must first have an account on kit.com, but you do not have to use a paid
4646

4747
== Changelog ==
4848

49+
### 1.9.2 2025-01-31
50+
* Fix: Sync Past Orders: Exclude refund orders, to prevent 500 Internal Server errors
51+
4952
### 1.9.1 2025-01-23
5053
* Added: Populate the referrer property when the Plugin is configured to subscribe an email address to a Kit Form
5154
* Added: Register opt-in checkbox using new `woocommerce_register_additional_checkout_field method`

Diff for: woocommerce-convertkit.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin Name: Kit (formerly ConvertKit) for WooCommerce
1010
* Plugin URI: https://www.kit.com
1111
* Description: Integrates WooCommerce with Kit, allowing customers to be automatically sent to your Kit account.
12-
* Version: 1.9.1
12+
* Version: 1.9.2
1313
* Author: Kit
1414
* Author URI: https://www.kit.com
1515
* Text Domain: woocommerce-convertkit
@@ -28,7 +28,7 @@
2828
define( 'CKWC_PLUGIN_FILE', plugin_basename( __FILE__ ) );
2929
define( 'CKWC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
3030
define( 'CKWC_PLUGIN_PATH', __DIR__ );
31-
define( 'CKWC_PLUGIN_VERSION', '1.9.1' );
31+
define( 'CKWC_PLUGIN_VERSION', '1.9.2' );
3232
define( 'CKWC_OAUTH_CLIENT_ID', 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A' );
3333
define( 'CKWC_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
3434

0 commit comments

Comments
 (0)