Skip to content

Commit 6bd3f8f

Browse files
committed
Merge branch 'release/2.0.8'
2 parents 555e9e1 + 9b4116a commit 6bd3f8f

6 files changed

Lines changed: 33 additions & 15 deletions

File tree

conversion-tracking.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: WooCommerce Conversion Tracking
44
Plugin URI: https://wedevs.com/woocommerce-conversion-tracking/
55
Description: Adds various conversion tracking codes to cart, checkout, registration success and product page on WooCommerce
6-
Version: 2.0.7
6+
Version: 2.0.8
77
Author: weDevs
88
Author URI: https://wedevs.com/?utm_source=ORG_Author_URI_WCCT
99
License: GPL2
@@ -54,7 +54,7 @@ class WeDevs_WC_Conversion_Tracking {
5454
*
5555
* @var string
5656
*/
57-
public $version = '2.0.6';
57+
public $version = '2.0.8';
5858

5959
/**
6060
* Holds various class instances

includes/class-ajax.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class WCCT_Ajax {
1111
public function __construct() {
1212
add_action( 'wp_ajax_wcct_save_settings', array( $this, 'wcct_save_settings' ) );
1313
add_action( 'wp_ajax_activate_happy_addons', array( $this, 'wcct_install_happy_addons' ) );
14+
15+
add_action( 'wp_ajax_wcct_dismissable_notice', array( $this, 'wcct_dismissable_notice' ) );
1416
}
1517

1618
/**
@@ -98,4 +100,19 @@ public function wcct_install_happy_addons() {
98100
'message' => __( 'Successfully installed and activate,', 'woocommerce-conversion-tracking' )
99101
]);
100102
}
103+
104+
/**
105+
* Dismissable notice
106+
*
107+
* @return object
108+
*/
109+
public function wcct_dismissable_notice() {
110+
if ( ! current_user_can( 'manage_options' ) ) {
111+
return;
112+
}
113+
114+
update_option( 'wcct_dismissable_notice', 'closed' );
115+
116+
wp_send_json_success();
117+
}
101118
}

includes/class-integration-pro-features.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,8 @@ public function profeature_ad() {
135135
<li>Bing Ads</li>
136136
</ul>
137137

138-
<a href="https://wedevs.com/woocommerce-conversion-tracking/upgrade-to-pro/?utm_source=wp-admin&utm_medium=pro-upgrade&utm_campaign=wcct_upgrade&utm_content=Get_Premium" target="_blank" class="button button-primary"><?php esc_html_e( 'Get Premium', 'woocommerce-conversion-tracking' ) ?></a>
139-
140-
<p style="margin-bottom: 0" class="help">
141-
Get <strong>50% Discount</strong> on pro upgrade for a limited time.
142-
</p>
138+
<a href="https://woocommerce.com/products/woocommerce-conversion-tracking-pro/" target="_blank" class="button button-primary"><?php esc_html_e( 'Get Premium', 'woocommerce-conversion-tracking' ) ?></a>
143139
</div>
144140
<?php
145141
}
146-
}
142+
}

languages/woocommerce-conversion-tracking.pot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the GPL2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: WooCommerce Conversion Tracking 2.0.7\n"
5+
"Project-Id-Version: WooCommerce Conversion Tracking 2.0.8\n"
66
"Report-Msgid-Bugs-To: https://example.com\n"
7-
"POT-Creation-Date: 2020-05-02 07:11:26+00:00\n"
7+
"POT-Creation-Date: 2020-06-10 06:53:08+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -45,15 +45,15 @@ msgstr ""
4545
msgid "Integrations"
4646
msgstr ""
4747

48-
#: includes/class-ajax.php:52
48+
#: includes/class-ajax.php:54
4949
msgid "Settings has been saved successfully!"
5050
msgstr ""
5151

52-
#: includes/class-ajax.php:73
52+
#: includes/class-ajax.php:75
5353
msgid "ERROR: Error fetching plugin information: %s"
5454
msgstr ""
5555

56-
#: includes/class-ajax.php:98
56+
#: includes/class-ajax.php:100
5757
msgid "Successfully installed and activate,"
5858
msgstr ""
5959

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Woocommerce-Conversion-Tracking",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"description": "Conversion tracking plugin for WooCommerce",
55
"author": "Tareq Hasan",
66
"license": "GPL",

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: ecommerce, e-commerce, commerce, woocommerce, tracking, facebook, google,
44
Donate link: https://tareq.co/donate/
55
Requires at least: 4.0
66
Tested up to: 5.4
7-
Stable tag: 2.0.7
7+
Stable tag: 2.0.8
88
License: GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -101,6 +101,11 @@ Additionally, read weDevs [privacy policy](https://wedevs.com/privacy-policy/) f
101101

102102
== Changelog ==
103103

104+
= Version 2.0.8 (10 June, 2020) =
105+
106+
* **Fix:** Dismissable HA notice, was introduced in v2.0.7.
107+
* **Fix:** Removed discount notice as it was deprecated.
108+
104109
= Version 2.0.7 (2 May, 2020) =
105110

106111
* **Fix:** Removed unnecessary usage of `wp_kses_post()`, which was breaking the plugin.

0 commit comments

Comments
 (0)