Skip to content

Commit

Permalink
1.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Sep 13, 2024
1 parent 2e44e72 commit 4a3e536
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 20 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,6 @@ jobs:
sudo chmod g+w ${{ env.PLUGIN_DIR }}
sudo chown www-data:www-data ${{ env.PLUGIN_DIR }}
# This ensures WooCommerce log files can be written to.
- name: Set Permissions for WooCommerce Logs Directory
run: |
sudo chmod g+w ${{ env.ROOT_DIR }}/wp-content/uploads/wc-logs
sudo chown www-data:www-data ${{ env.ROOT_DIR }}/wp-content/uploads/wc-logs
# Build Codeception Tests.
- name: Build Tests
working-directory: ${{ env.PLUGIN_DIR }}
Expand Down
12 changes: 6 additions & 6 deletions ACTIONS-FILTERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ add_filter( 'convertkit_for_woocommerce_order_send_purchase_data', function( $pu
</pre>
<h3 id="convertkit_for_woocommerce_order_should_opt_in_customer">
convertkit_for_woocommerce_order_should_opt_in_customer
<code>includes/class-ckwc-order.php::729</code>
<code>includes/class-ckwc-order.php::794</code>
</h3><h4>Overview</h4>
<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>
<table>
Expand Down Expand Up @@ -264,7 +264,7 @@ add_filter( 'convertkit_for_woocommerce_order_should_opt_in_customer', function(
</pre>
<h3 id="convertkit_for_woocommerce_email">
convertkit_for_woocommerce_email
<code>includes/class-ckwc-order.php::761</code>
<code>includes/class-ckwc-order.php::826</code>
</h3><h4>Overview</h4>
<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>
<table>
Expand Down Expand Up @@ -295,7 +295,7 @@ add_filter( 'convertkit_for_woocommerce_email', function( $email, $order ) {
</pre>
<h3 id="convertkit_for_woocommerce_order_name">
convertkit_for_woocommerce_order_name
<code>includes/class-ckwc-order.php::816</code>
<code>includes/class-ckwc-order.php::881</code>
</h3><h4>Overview</h4>
<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>
<table>
Expand Down Expand Up @@ -326,7 +326,7 @@ add_filter( 'convertkit_for_woocommerce_order_name', function( $name, $order ) {
</pre>
<h3 id="convertkit_for_woocommerce_first_name">
convertkit_for_woocommerce_first_name
<code>includes/class-ckwc-order.php::848</code>
<code>includes/class-ckwc-order.php::913</code>
</h3><h4>Overview</h4>
<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>
<table>
Expand Down Expand Up @@ -357,7 +357,7 @@ add_filter( 'convertkit_for_woocommerce_first_name', function( $first_name, $ord
</pre>
<h3 id="convertkit_for_woocommerce_last_name">
convertkit_for_woocommerce_last_name
<code>includes/class-ckwc-order.php::880</code>
<code>includes/class-ckwc-order.php::945</code>
</h3><h4>Overview</h4>
<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>
<table>
Expand Down Expand Up @@ -388,7 +388,7 @@ add_filter( 'convertkit_for_woocommerce_last_name', function( $last_name, $order
</pre>
<h3 id="convertkit_for_woocommerce_custom_field_data">
convertkit_for_woocommerce_custom_field_data
<code>includes/class-ckwc-order.php::934</code>
<code>includes/class-ckwc-order.php::999</code>
</h3><h4>Overview</h4>
<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>
<table>
Expand Down
30 changes: 27 additions & 3 deletions languages/woocommerce-convertkit.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,38 @@
# This file is distributed under the same license as the ConvertKit for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: ConvertKit for WooCommerce 1.8.3\n"
"Project-Id-Version: ConvertKit for WooCommerce 1.8.4\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-08-15T03:33:44+00:00\n"
"POT-Creation-Date: 2024-09-13T02:02:15+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Generator: WP-CLI 2.10.0\n"
"X-Domain: woocommerce-convertkit\n"

#. Plugin Name of the plugin
#: woocommerce-convertkit.php
#: views/backend/post-type/bulk-edit.php:11
#: views/backend/post-type/quick-edit.php:11
msgid "ConvertKit for WooCommerce"
msgstr ""

#. Plugin URI of the plugin
#. Author URI of the plugin
#: woocommerce-convertkit.php
msgid "https://www.convertkit.com"
msgstr ""

#. Description of the plugin
#: woocommerce-convertkit.php
msgid "Integrates WooCommerce with ConvertKit, allowing customers to be automatically sent to your ConvertKit account."
msgstr ""

#. Author of the plugin
#: woocommerce-convertkit.php
#: includes/class-ckwc-integration.php:82
msgid "ConvertKit"
msgstr ""
Expand Down Expand Up @@ -531,6 +535,26 @@ msgstr ""
msgid "[ConvertKit] Purchase Data sent successfully: ID [%s]"
msgstr ""

#. translators: %1$s: Error Code, %2$s: Error Message
#: includes/class-ckwc-order.php:573
msgid "[ConvertKit] Purchase Data: Custom Fields: Get Subscriber Error: %1$s %2$s"
msgstr ""

#. translators: %1$s: Error Code, %2$s: Error Message
#: includes/class-ckwc-order.php:587
msgid "[ConvertKit] Purchase Data: Custom Fields: No subscriber found for email address %s"
msgstr ""

#. translators: %1$s: Error Code, %2$s: Error Message
#: includes/class-ckwc-order.php:608
msgid "[ConvertKit] Purchase Data: Custom Fields: Update Subscriber Error: %1$s %2$s"
msgstr ""

#. translators: ConvertKit Subscriber ID
#: includes/class-ckwc-order.php:619
msgid "[ConvertKit] Purchase Data: Custom Fields sent successfully: Subscriber ID [%s]"
msgstr ""

#: includes/class-wp-ckwc.php:195
msgid "Sync past orders with ConvertKit Purchase Data."
msgstr ""
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: nathanbarry, growdev, travisnorthcutt, convertkit
Donate link: https://convertkit.com
Tags: email, marketing, embed form, convertkit, capture
Requires at least: 5.0
Tested up to: 6.6.1
Tested up to: 6.6.2
Requires PHP: 5.6.20
Stable tag: 1.8.3
Stable tag: 1.8.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -46,6 +46,11 @@ No. You must first have an account on ConvertKit.com, but you do not have to use

== Changelog ==

### 1.8.4 2024-09-13
* Added: Map WooCommerce Order Data (Phone, Billing Address etc) to ConvertKit Subscriber's Custom Fields when sending purchase data
* Updated: ConvertKit WordPress Libraries to 2.0.2
* Fix: Don't automatically refresh tokens on non-production sites

### 1.8.3 2024-08-15
* Fix: Set subscriber to `inactive` when a ConvertKit Form is specified, honoring the Form's opt in setting.

Expand Down
6 changes: 3 additions & 3 deletions woocommerce-convertkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* Plugin Name: ConvertKit for WooCommerce
* Plugin URI: https://www.convertkit.com
* Description: Integrates WooCommerce with ConvertKit, allowing customers to be automatically sent to your ConvertKit account.
* Version: 1.8.3
* Version: 1.8.4
* Author: ConvertKit
* Author URI: https://www.convertkit.com
* Text Domain: woocommerce-convertkit
*
* WC requires at least: 3.0
* WC tested up to: 9.1.2
* WC tested up to: 9.3.1
*/

// Bail if Plugin is already loaded.
Expand All @@ -28,7 +28,7 @@
define( 'CKWC_PLUGIN_FILE', plugin_basename( __FILE__ ) );
define( 'CKWC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CKWC_PLUGIN_PATH', __DIR__ );
define( 'CKWC_PLUGIN_VERSION', '1.8.3' );
define( 'CKWC_PLUGIN_VERSION', '1.8.4' );
define( 'CKWC_OAUTH_CLIENT_ID', 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A' );
define( 'CKWC_OAUTH_CLIENT_REDIRECT_URI', 'https://app.convertkit.com/wordpress/redirect' );

Expand Down

0 comments on commit 4a3e536

Please sign in to comment.