Skip to content

Commit

Permalink
Merge pull request #131 from sendsmaily/release/1.11.0
Browse files Browse the repository at this point in the history
Release 1.11.0
  • Loading branch information
kaittodesk authored Feb 14, 2023
2 parents ec82fab + 500bae0 commit b1810a8
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.11.0

- Reset subscriber's opt-outed status on checkout newsletter subscribe [[#130](https://github.com/sendsmaily/smaily-woocommerce-plugin/pull/130)]

### 1.10.0
- Rework checkout newsletter sign up checkbox rendering [[#126](https://github.com/sendsmaily/smaily-woocommerce-plugin/pull/126)]

Expand Down
5 changes: 5 additions & 0 deletions inc/Base/SubscriberSynchronization.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public function smaily_checkout_subscribe_customer( $order_id ) {
// Data to sent to Smaily API.
$data = [];

// Ensure subscriber's unsubscribed status is reset.
// Note! We are using 'user_newsletter' property value just a precaution to cover
// cases where site provides a default value for the field.
$data['is_unsubscribed'] = (int) $_POST['user_newsletter'] === 1 ? 0 : 1;

// Add store url for refrence in Smaily database.
$data['store'] = get_site_url();

Expand Down
Binary file modified lang/smaily-et.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions lang/smaily-et.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ msgstr ""
"Project-Id-Version: Smaily for WooCommerce\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-"
"woocommerce\n"
"POT-Creation-Date: 2022-11-21 14:00+0200\n"
"PO-Revision-Date: 2022-11-21 14:00+0200\n"
"POT-Creation-Date: 2023-02-14 16:09+0200\n"
"PO-Revision-Date: 2023-02-14 16:09+0200\n"
"Last-Translator: \n"
"Language-Team: Estonian\n"
"Language: et\n"
Expand All @@ -14,7 +14,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n"
"X-Generator: Poedit 3.1.1\n"
"X-Generator: Poedit 3.2.2\n"
"X-Loco-Version: 2.3.3; wp-5.4.1\n"
"X-Poedit-SearchPath-0: .\n"

Expand Down
Binary file modified lang/smaily-et_EE.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions lang/smaily-et_EE.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ msgstr ""
"Project-Id-Version: Smaily for WooCommerce\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-"
"woocommercewoocommerce\n"
"POT-Creation-Date: 2022-11-21 14:00+0200\n"
"PO-Revision-Date: 2022-11-21 14:00+0200\n"
"POT-Creation-Date: 2023-02-14 16:09+0200\n"
"PO-Revision-Date: 2023-02-14 16:09+0200\n"
"Last-Translator: \n"
"Language-Team: Estonian\n"
"Language: et\n"
Expand All @@ -14,7 +14,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n"
"X-Generator: Poedit 3.1.1\n"
"X-Generator: Poedit 3.2.2\n"
"X-Loco-Version: 2.3.3; wp-5.4.1\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: vendor\n"
Expand Down
4 changes: 2 additions & 2 deletions lang/smaily.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ msgid ""
msgstr ""
"Project-Id-Version: Smaily for WooCommerce 1.5.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smaily-for-woocommerce\n"
"POT-Creation-Date: 2022-11-21 14:00+0200\n"
"POT-Creation-Date: 2023-02-14 16:09+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\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"
"X-Generator: Poedit 3.1.1\n"
"X-Generator: Poedit 3.2.2\n"
"X-Domain: smaily\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;esc_html__;esc_attr__;esc_attr_e;esc_html_e\n"
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requires PHP: 5.6
Requires at least: 4.5
Tested up to: 5.8
WC tested up to: 4.7.0
Stable tag: 1.10.0
Stable tag: 1.11.0
License: GPLv3

Simple and flexible Smaily newsletter and RSS-feed integration for WooCommerce.
Expand Down Expand Up @@ -151,6 +151,10 @@ Also you can determine if customer had more than 10 items in cart

== Changelog ==

= 1.11.0 =

- Reset subscriber's opt-outed status on checkout newsletter subscribe

= 1.10.0 =

- Rework checkout newsletter sign up checkbox rendering
Expand Down
4 changes: 2 additions & 2 deletions smaily-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Plugin Name: Smaily for WooCommerce
* Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin
* Description: Smaily email marketing and automation extension plugin for WooCommerce. Set up easy sync for your contacts, add opt-in subscription form, import products directly to your email template and send abandoned cart reminder emails.
* Version: 1.10.0
* Version: 1.11.0
* License: GPL3
* Author: Smaily
* Author URI: https://smaily.com/
Expand Down Expand Up @@ -48,7 +48,7 @@
define( 'SMAILY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) );
define( 'SMAILY_PLUGIN_VERSION', '1.10.0' );
define( 'SMAILY_PLUGIN_VERSION', '1.11.0' );

// Required to use functions is_plugin_active and deactivate_plugins.
require_once ABSPATH . 'wp-admin/includes/plugin.php';
Expand Down

0 comments on commit b1810a8

Please sign in to comment.