Skip to content

Commit f413ba5

Browse files
authored
Merge pull request #143 from WebDevStudios/release/1.4.1
Release :: 1.4.1 :: Release PR for 1.4.1
2 parents 1ad619e + 7c70a65 commit f413ba5

File tree

3 files changed

+84
-74
lines changed

3 files changed

+84
-74
lines changed

README.txt

Lines changed: 64 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,92 @@
11
=== Constant Contact + WooCommerce ===
22
Contributors: constantcontact, webdevstudios, znowebdev, jmichaelward, ggwicz, ravedev
3-
Tags: capture, contacts, constant contact, constant contact form, constant contact newsletter, constant contact official, contact forms, email, form, forms, marketing, mobile, newsletter, opt-in, plugin, signup, subscribe, subscription, widget
3+
Tags: Constant Contact, WooCommerce, eCommerce, email marketing, marketing automation, email, form, forms, marketing, mobile, opt-in, plugin, signup, subscribe, subscription, widget
44
Requires at least: 5.2.2
55
Tested up to: 5.9
66
Stable tag: 1.4.0
77
Requires PHP: 7.2
88
License: GPLv3
9+
910
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1011

1112
Add products to your emails and sync your contacts.
1213

1314
== Description ==
1415

15-
Constant Contact is built to simplify the complex and confusing task of marketing your idea, even if you’re a beginner. And our award-winning team of marketing advisors is there for every customer, every step of the way, offering live, real-time marketing advice on the phone or online anytime you get stuck. Whether it’s creating great-looking email marketing campaigns, building an awesome website with ease, creating a beautiful logo for your brand, running Google Ads to get more website traffic, or finding new customers on social media, we’ve got all the tools, features, and expert guidance you need to help you succeed - all in one place.
16-
1716
**Unleash the power of your business — and drive more revenue — by integrating Constant Contact with WooCommerce today.**
1817

19-
https://youtu.be/YXWxySMcCsE
18+
Constant Contact is built to simplify the complex and confusing task of marketing your idea, even if you're a beginner. And our award-winning team of marketing advisors is there for every customer, every step of the way, offering live, real-time marketing advice on the phone or online anytime you get stuck.
2019

21-
With Constant Contact you can:
20+
https://www.youtube.com/watch?v=ZH9G4yhAngk
21+
22+
**With Constant Contact you can:**
2223

2324
* Easily connect WooCommerce to your Constant Contact account and sync contacts automatically.
24-
* Drag and drop a product(s) from your WooCommerce catalog and insert into your email in seconds.
25-
* Target the right customer/prospect with the right message with pre-defined segments based on your customers’ purchasing behavior:
26-
27-
* All WooCommerce contacts who opt in to receive email emarketing
28-
* Recent Customers: Purchased within 30 days
29-
* First-time Customers: Purchased once
30-
* Repeat Customers: Made more than one purchase
31-
* Lapsed Customers: Have not made a purchase in more than 120 days
32-
* Prospects: Have not made a purchase yet
25+
26+
* Drag and drop a product(s) from your WooCommerce catalog and insert them into your email in seconds.
27+
28+
* Target the right customer/prospect with the right message with predefined segments based on your customers’ purchasing behavior:
29+
30+
31+
* All WooCommerce contacts who opt in to receive email e-marketing
32+
33+
* Recent Customers: Purchased within 30 days
34+
35+
* First-time Customers: Purchased once
36+
37+
* Repeat Customers: Made more than one purchase
38+
39+
* Lapsed Customers: Have not made a purchase in more than 120 days
40+
41+
* Prospects: Have not made a purchase yet
42+
3343
* Bring customers back to your online store with automated, targeted emails.
44+
3445
* Find new customers with our social marketing and advertising tools to expand your reach.
46+
3547
* Automatically send a customized branded abandoned cart email to customers who left items in their cart and track resulting revenue.
3648

3749
== Screenshots ==
3850

51+
3952
1. Drag the WooCommerce action block directly into your email.
4053
2. Edit the details of your product.
4154
3. Pre-filtered segmented lists.
4255
4. Syncing status for contacts.
4356

44-
== Frequently Asked Questions ==
45-
4657
#### Overall WooCommerce and Constant Contact Guide
47-
[https://knowledgebase.constantcontact.com/guides/KnowledgeBase/34383-Guide-Constant-Contact-and-WooCommerce?q=woocommerce*&lang=en_US](https://knowledgebase.constantcontact.com/guides/KnowledgeBase/34383-Guide-Constant-Contact-and-WooCommerce?q=woocommerce*&lang=en_US)
58+
Our WooCommerce integration is designed to help make your email marketing even easier. You can automatically sync your WooCommerce contacts right into your Constant Contact account, promote your products and services in emails, and recover lost revenue with automated abandoned cart emails!
59+
[Get started with our guide.](https://knowledgebase.constantcontact.com/guides/KnowledgeBase/34383-Guide-Constant-Contact-and-WooCommerce?q=woocommerce*&lang=en_US)
60+
61+
#### Unable to connect WooCommerce to Constant Contact
62+
A benefit of using WordPress is that it's Open Source Software (OSS), meaning its developers are free to modify and enhance the source code. Because this includes WordPress plugins, plugins can sometimes interact with each other in unexpected ways. If you're having trouble connecting WooCommerce to your Constant Contact account, it's likely an interaction between plugins in your WordPress account causing the issue.
63+
[Fortunately, there are steps you can take to resolve this.](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/34401-Unable-to-Connect-WooCommerce-to-Constant-Contact?q=woocommerce&pnx=1&lang=en_US)
4864

4965
#### How to Sync Contacts between WooCommerce and Constant Contact
50-
[https://knowledgebase.constantcontact.com/articles/KnowledgeBase/33143-Sync-Contacts-Between-Your-WooCommerce-Store-and-Constant-Contact?q=woocommerce*&lang=en_US](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/33143-Sync-Contacts-Between-Your-WooCommerce-Store-and-Constant-Contact?q=woocommerce*&lang=en_US)
66+
If you use the WooCommerce Plugin within Wordpress, you can now take advantage of Constant Contact's integration with WooCommerce. By connecting your store and syncing contacts automatically, you can be sure that your contact list is always up-to-date in Constant Contact. [Follow along with our step-by-step guide or video tutorial.](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/33143-Sync-Contacts-Between-Your-WooCommerce-Store-and-Constant-Contact?q=woocommerce*&lang=en_US)
5167

5268
#### How to use the Product Block to insert WooCommerce Products to an Email
53-
[https://knowledgebase.constantcontact.com/articles/KnowledgeBase/33144-Add-Products-from-a-WooCommerce-Store-to-an-Email?q=woocommerce*&lang=en_US](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/33144-Add-Products-from-a-WooCommerce-Store-to-an-Email?q=woocommerce*&lang=en_US)
69+
If you sell products through a WooCommerce store, you can promote your goods to your contacts by dragging a WooCommerce action block directly into your Constant Contact email template. Once your WooCommence account is synced with Constant Contact, insert the block into your email template, and choose an item to display within your email.
70+
**Important:** If you're creating an email with the Cross Device Email Editor, there are some additional steps to take.[See the details on how to use the WooCommerce action block in the Constant Contact Knowledge base.](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/33144-Add-Products-from-a-WooCommerce-Store-to-an-Email?q=woocommerce*&lang=en_US)
5471

5572
#### How to Create an Automated Abandoned Cart Reminder Email for WooCommerce
56-
Customers
57-
[https://knowledgebase.constantcontact.com/articles/KnowledgeBase/36890-Create-an-Automated-Abandoned-Cart-Reminder-Email-for-WooCommerce-Customers?q=woocommerce*&lang=en_US](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/36890-Create-an-Automated-Abandoned-Cart-Reminder-Email-for-WooCommerce-Customers?q=woocommerce*&lang=en_US)
58-
59-
#### VIDEO Tutorial: Create an Automated WooCommerce Abandoned Cart Email
60-
[https://knowledgebase.constantcontact.com/tutorials/KnowledgeBase/37409-Tutorial-Create-an-Automated-WooCommerce-Abandoned-Cart-Email?q=woocommerce*&lang=en_US](https://knowledgebase.constantcontact.com/tutorials/KnowledgeBase/37409-Tutorial-Create-an-Automated-WooCommerce-Abandoned-Cart-Email?q=woocommerce*&lang=en_US)
73+
If you have a WooCommerce store, you've probably had people who added items to their shopping cart but didn't complete the purchase. Some of these customers may have changed their minds about making their purchase, but others may not have intended to abandon their cart. Setting up an automated Abandoned Cart Reminder Email re-engages those customers who left the purchase flow, and encourages them to follow-through.
74+
[See our step-by-step guide to learn how to create an automated abandoned cart reminder email for WooCommerce customers.]
75+
(https://knowledgebase.constantcontact.com/articles/KnowledgeBase/36890-Create-an-Automated-Abandoned-Cart-Reminder-Email-for-WooCommerce-Customers?q=woocommerce*&lang=en_US)
76+
We also have a video tutorial [to illustrate these steps ](https://knowledgebase.constantcontact.com/tutorials/KnowledgeBase/37409-Tutorial-Create-an-Automated-WooCommerce-Abandoned-Cart-Email?q=woocommerce*&lang=en_US)
6177

6278
#### View WooCommerce Sales and Recovered Revenue Reporting
63-
[https://knowledgebase.constantcontact.com/articles/KnowledgeBase/36892-View-Recovered-Revenue-from-the-WooCommerce-Abandoned-Cart-Reminder-Email?q=woocommerce*&lang=en_US](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/36892-View-Recovered-Revenue-from-the-WooCommerce-Abandoned-Cart-Reminder-Email?q=woocommerce*&lang=en_US)
79+
You've connected your WooCommerce store to Constant Contact, promoted your WooCommerce store products in your emails, and activated the abandoned cart reminder email. But how do you know how well it's working? By checking the reporting, you can see the number of WooCommerce orders and the total sales associated with your email campaigns. You can also see how many times the abandoned cart reminder email has been sent over the past 90 days, and how much revenue was generated because of it.
80+
[Learn more with our step-by-step revenue reporting guide.](https://knowledgebase.constantcontact.com/articles/KnowledgeBase/36892-View-Recovered-Revenue-from-the-WooCommerce-Abandoned-Cart-Reminder-Email?q=woocommerce*&lang=en_US)
6481

6582
== Changelog ==
6683

84+
= 1.4.1 =
85+
86+
* Updated - Constant Contact Dashboard button now opens Dashboard in a new tab.
87+
* Updated - Set default value for importing contacts to 'true'.
88+
* Fix - Fixed broken form field layout on 'Import your contacts' tab.
89+
6790
= 1.4.0 =
6891

6992
* New - Add Checkbox Filter Location setting
@@ -100,3 +123,19 @@ Customers
100123
* New - Added Campaign ID data inclusion for purchased orders originating from your mailing campaigns.
101124
* Fix - Fixed compatibility issue with phone numbers and PHP 7.3
102125
* Tweak - Updated wording in our WooCommerce tab.
126+
127+
== Installation ==
128+
129+
Integrating Constant Contact with your WooCommerce store is a simple process:
130+
131+
* Install and activate the Constant Contact + WooCommerce plugin.
132+
133+
* At the top of your screen, click the button that says “Connect Your account”, or create an account if you don’t already have one.
134+
135+
* You will then be directed to the Constant Contact website where you will be prompted to sign in/create an account.
136+
137+
* Upon sign in/account creation, your Constant Contact +WooCommerce plugin will be connected to your Constant Contact account. Finally, you will be redirected back to your WordPress dashboard where you will see a message confirming the connection has been successful.
138+
139+
* You will now need to enter some additional information surround the importing of contacts. You can do this by clicking on the Constant Contact option that is listed under WooCommerce in your left sidebar on your dashboard.
140+
141+
For detailed instructions on integrating Constant Contact and WooCommerce please visit our [Knowledge Base](https://knowledgebase.constantcontact.com/ToolkitPKBFAQs?q=woocommerce&pnx=1&lang=en_US) where you can find Help By *Topic, Video Tutorials,* and *Quick Start Guides.*

src/View/Admin/Field/ImportHistoricalData.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ public function get_form_field() : array {
3737
'desc' => $this->get_description(),
3838
'type' => 'select',
3939
'id' => self::OPTION_FIELD_NAME,
40-
'default' => '',
40+
'default' => 'true',
4141
'custom_attributes' => $this->get_custom_attributes(),
4242
'options' => [
43-
'' => '----',
4443
'false' => esc_html__( 'No', 'cc-woo' ),
4544
'true' => esc_html__( 'Yes', 'cc-woo' ),
4645
],

src/View/Admin/WooTab.php

Lines changed: 19 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ public function register_hooks() {
178178
add_filter( 'woocommerce_settings_start', [ $this, 'validate_option_values' ], 10, 3 );
179179
add_action( "woocommerce_settings_save_{$this->id}", [ $this, 'save' ] );
180180
add_action( "woocommerce_settings_save_{$this->id}", [ $this, 'update_setup_option' ] );
181-
182-
// Custom field for labels.
183-
add_action( 'woocommerce_admin_field_cc_woo_anti_spam_notice', [ $this, 'display_anti_spam_notice' ] );
184181
}
185182

186183
/**
@@ -376,6 +373,7 @@ public function render_cta_button() {
376373
?>
377374
<a
378375
class="button button-primary"
376+
target="_blank"
379377
href="<?php echo esc_url( $url ); ?>"
380378
>
381379
<?php esc_html_e( 'Constant Contact Dashboard', 'cc-woo' ); ?>
@@ -507,38 +505,34 @@ private function get_store_information_settings() {
507505
* @return array
508506
*/
509507
private function get_customer_data_settings() {
508+
509+
$historical_import_field = new \WebDevStudios\CCForWoo\View\Admin\Field\ImportHistoricalData();
510+
510511
$settings = [
511512
[
512513
'title' => esc_html__( 'Import your contacts', 'cc-woo' ),
513514
'id' => 'cc_woo_customer_data_settings',
514515
'type' => 'title',
516+
'desc' => wp_kses(
517+
sprintf(
518+
__( "Start marketing to your customers right away by importing all your contacts now.\n\nDo you want to import your current contacts? By selecting yes below, you agree you have permission to market to your current contacts. \n\nSee more on Constant Contact's <a href='%s' target='_blank'>anti-spam policy</a>.", 'cc-woo' ),
519+
esc_url( 'https://www.constantcontact.com/legal/anti-spam' )
520+
),
521+
[
522+
'a' => [
523+
'href' => [],
524+
'target' => [],
525+
],
526+
]
527+
)
515528
],
529+
$historical_import_field->get_form_field(),
516530
[
517-
'title' => '',
518-
'id' => 'cc_woo_customer_data_message',
519-
'type' => 'title',
520-
'desc' => esc_html__( "Start marketing to your customers right away by importing all your contacts now.\n\nDo you want to import your current contacts? By selecting yes below, you agree you have permission to market to your current contacts.", 'cc-woo' ),
531+
'type' => 'sectionend',
532+
'id' => 'cc_woo_customer_data_settings',
521533
],
522534
];
523535

524-
$historical_import_field = new \WebDevStudios\CCForWoo\View\Admin\Field\ImportHistoricalData();
525-
526-
$settings[] = array_merge(
527-
$settings,
528-
$historical_import_field->get_form_field(),
529-
[
530-
[
531-
'title' => '',
532-
'type' => 'cc_woo_anti_spam_notice',
533-
'id' => 'anti-spam-notice',
534-
],
535-
[
536-
'type' => 'sectionend',
537-
'id' => 'cc_woo_customer_data_settings',
538-
],
539-
]
540-
);
541-
542536
return $settings;
543537
}
544538

@@ -831,28 +825,6 @@ public function get_woo_country() : string {
831825
return wc_get_base_location()['country'] ?? '';
832826
}
833827

834-
/**
835-
* Display a link to the anti-spam policy.
836-
*
837-
* @since 2019-05-17
838-
* @author Zach Owen <zach@webdevstudios>
839-
*/
840-
public function display_anti_spam_notice() {
841-
?>
842-
<tr>
843-
<td colspan="2">
844-
<?php
845-
echo sprintf(
846-
// phpcs:ignore -- output is escaped properly with esc_url.
847-
__( 'See more on Constant Contact\'s <a href="%s" target="_blank">anti-spam policy</a>.', 'cc-woo' ),
848-
esc_url( 'https://www.constantcontact.com/legal/anti-spam' )
849-
);
850-
?>
851-
</td>
852-
</tr>
853-
<?php
854-
}
855-
856828
/**
857829
* Save settings.
858830
*

0 commit comments

Comments
 (0)