Changeset 1900023
- Timestamp:
- 06/27/2018 01:54:06 PM (8 years ago)
- Location:
- message-business/trunk
- Files:
-
- 10 edited
-
README.txt (modified) (5 diffs)
-
admin/partials/message-business-admin-settings.php (modified) (1 diff)
-
includes/functions.php (modified) (1 diff)
-
languages/message-business-fr_FR.mo (modified) (previous)
-
languages/message-business-fr_FR.po (modified) (1 diff)
-
languages/message-business.pot (modified) (1 diff)
-
message-business.php (modified) (3 diffs)
-
woocommerce/css/message-business-woocommerce.css (modified) (1 diff)
-
woocommerce/message-business-woocommerce.php (modified) (5 diffs)
-
woocommerce/partials/message-business-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
message-business/trunk/README.txt
r1897204 r1900023 1 === M essage Business Plugin for WordPress/WooCommerce===1 === Marketing automation, Email and SMS for Woocommerce and Wordpress === 2 2 Contributors: msgbusiness 3 Tags: Message Business, newsletters, forms, marketing automation, email, emailing, sms3 Tags: Message Business, formulaire, autorépondeur, autoresponder, trigger, newsletter, forms, marketing automation, email, emailing, sms, webform, survey 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.9.6 6 6 Requires PHP: 5.4.0 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Publish a form on your WordPress site to collect contact information on a Message Business account and send them emailings, marketing sms. 11 Synchronize your Woocommerce clients and Wordpress visitors with Message Business application for Marketing automation, email marketing, sms marketing, webform, abandoned cart etc. 100% Compliant GDPR 12 12 13 13 == Description == 14 14 15 The Message Business Plugin for WordPress lets you publish a form on your WordPress site to collect contact information directly into your Message Business account to: 16 - Centralize all your contacts within the base of your Message Business account, 15 Synchronize your Woocommerce clients lists informations (email, purchase date, cart etc…) with your Message Business account, an europeean based application based in Paris and fully compliant with GDPR. 17 16 - Segment these contacts according to their collection sources, their behaviors and / or any other information concerning them, 18 - Edit emails that are natively adapted to the reading terminals of your contacts,17 - Edit responsive emails that are natively adapted to the reading terminals of your contacts, 19 18 - Edit SMS marketing by taking advantage of a direct connection operators, 20 - Send your transactions according to dates or automatic senders, 21 - Follow the results of your various shipments on each of the recipient contacts, 22 - Take advantage of our support to develop your relationship with your contacts, 19 - Create marketing automation scenario based on purchase behavior, email click and open 20 - Follow the results of your various campaigns contact by contact and globally, 23 21 - And more! 24 22 The Message Business Plugin for WordPress is free and installs in just a few clicks. 23 This extension is compatible with versions from WordPress 4.9.5 and PHP 5.4.0 / WooCommerce from version 2.6 (API Rest). 25 24 Like all our users, enjoy the power of professional online software to simply manage your relationship with your contacts. 26 27 Requires at least PHP 5.4.0.28 25 29 26 == Installation == 30 27 31 1. Search for 'Message Business' on the WordPress admin panel and click 'Install now' 32 1. Or extract the 'message-business.zip' folder and upload `message-business` directory to your `/wp-content/plugins/` directory 33 2. Activate the plugin through the 'Plugins' menu in WordPress 34 3. Configure the plugin on the settings page 35 4. Build your form through the form settings tab in the Message Business plugin page 36 5. Add the Message Business Widget to your WordPress site 28 1. Log in as administrator in WordPress. 29 2. Go to Plugins > Add and send message-business.zip. 30 2. Or extract the 'message-business.zip' file and upload `message-business` directory to your `/wp-content/plugins/` directory 31 3. Activate the Message Business extension through the 'Plugins' menu in WordPress 32 4. Configure the plugin on the settings page 33 5. Build your form through the form settings tab in the Message Business plugin page 34 6. Add the Message Business Widget to your WordPress site 35 36 You must have cURL extension enabled. PHP 5.4.0 or later version is required. 37 37 38 38 == Frequently Asked Questions == … … 40 40 = What is Message Business? = 41 41 42 Message Business is an 100% French online software designed for your email and SMS marketing management.42 Message Business is an 100% French online software designed for your email and SMS marketing campaign and marketin automation scenario. 43 43 44 44 * Email Marketing Features … … 47 47 Simple and conditional customization (direct mail and display based on criteria) 48 48 Campaign planning (immediate, planned or regulated dispatch) 49 Automatic triggering (trigger, birthday, satisfaction ...)50 49 Unlimited test not counted from the sending credit 51 50 Report of advanced campaigns by segments, terminals, time zone, hot zones ... 52 51 Responsive campaign templates and newsletters 53 52 Turnkey marketing programs (reception, thank you, ...) 53 54 * Marketing automation 55 56 Automatic triggering (trigger, birthday, satisfaction ...) 57 Scenario 54 58 55 59 * Delivery expertise … … 92 96 Campaign Report 93 97 94 = What is the M essage Business Plugin for WordPress? =98 = What is the Marketing automation, Email and SMS for Woocommerce and Wordpress plugin ? = 95 99 96 Th e Message Business Plugin for WordPress allows you to publish a form on your WordPress site to collect contact information directly into your Message Business account.100 This Message Business Plugin let you synchronize your Woocommerce clients informations (email, purchase date, birthdate etc…) with your Message Business application fully compliant with GDPR. 97 101 98 102 = Do I need a Message Business account? = … … 102 106 If you do not have an account yet, Message Business makes it easy to start with a Free Offer including 1000 Emailing, 10 000 sendings via SMTP Transactional (to connect your Ecommerce or your CRM for example) and 10 SMS offered each month. 103 107 104 = How does the M essage Business Plugin for WordPresswork? =108 = How does the Marketing automation, Email and SMS for Woocommerce and Wordpress plugin work? = 105 109 106 110 It's simple : 107 1. Install the Message Business Plugin for WordPress, 108 2. Set the content and fields to use in your form, 109 3. Place the widget including the form in the structure of your WordPress site, 111 1. Install the Message Business plugin for WordPress/WooCommerce, 112 2. Set the content and fields to use in your form, 113 3. Position the widget including the form in the structure of your WordPress site, 114 4. Set up the WooCommerce API connection, 115 5. Launch automatic synchronization of clients based on contacts. 110 116 Et voila ! 111 The contacts fill in their details in the form published on your WordPress site and can be found in the contact database of your Message Business account.112 117 113 = In which language the Message Business Plugin for WordPress is available? = 118 The contacts fill in their details in the form published on your WordPress site and your WooCommerce customers can be found in the contact database of your Message Business account. 114 119 115 The Message Business Plugin for WordPress is available in English and French. 120 = In which language the Marketing automation, Email and SMS for Woocommerce and Wordpress plugin is available? = 121 122 This Message Business Plugin is available in English and French. 116 123 117 124 == Screenshots == 118 125 119 1. Configure Message Business Plugin for WordPress by providing your Account number and API key. 120 2. Edit your subscription form by dragging and dropping the appropriated fields. 121 3. Import all your contacts to your Message Business account. 126 1. Webform edition. 127 2. Widget Edition. 128 3. API Message Business configuration. 129 4. Sync frequency configuration. 130 5. In MB app, Woocommerce fields. 131 6. In MB app, Responsive Email editor. 132 7. In MB app, mobile preview. 133 8. In MB app, trigger configuration. 134 9. In MB app, campaign report (global). 135 10. In MB app, campaign report (mobile). 136 11. In MB app, delivery monitoring. 122 137 123 138 == Changelog == 139 140 = 1.1.1 = 141 * README/txt updated. 142 * New screenshots added. 143 * Import contacts feature updated. 144 * Help options added to help the user to configure the WooCommerce API. 124 145 125 146 = 1.1.0 = -
message-business/trunk/admin/partials/message-business-admin-settings.php
r1897204 r1900023 66 66 67 67 // if WooCommerce is installed and activated, we create all the WooCoommerce fields needed for the plugin 68 if( message_business_is_woocommerce_activated() ) { 69 $accountApi = new Swagger\Client\Api\Message_Business_AccountApi(); 70 71 // contact fields 72 $json_string = file_get_contents(MESSAGE_BUSINESS_PLUGIN_DIR. 'includes/woocommerce-fields.json'); 73 $woo_fields = json_decode($json_string); 74 75 if( !empty($woo_fields) ) { 76 foreach( $woo_fields as $woo_field ) { 77 $contact_field = new Swagger\Client\Model\Message_Business_ContactField(); 78 $contact_field->setName( $woo_field->name ); 79 $contact_field->setFormat( $woo_field->format ); 80 try { 81 $accountApi->accountPostContactAttribute( $contact_field ); 82 } catch( Exception $e ) { 83 $e->getMessage(); 84 } 85 } 86 } 87 } 68 message_business_create_woocommerce_custom_fields(); 88 69 } catch(Exception $e) { 89 70 add_settings_error( 'message_business_messages', 'message_business_message_api_key', __( 'Please verify your Account number and Api key.', 'message-business' ), 'error' ); -
message-business/trunk/includes/functions.php
r1897204 r1900023 216 216 } 217 217 218 function message_business_create_woocommerce_custom_fields() { 219 if( message_business_is_woocommerce_activated() ) { 220 $accountApi = new Swagger\Client\Api\Message_Business_AccountApi(); 221 222 // contact fields 223 $json_string = file_get_contents(MESSAGE_BUSINESS_PLUGIN_DIR. 'includes/woocommerce-fields.json'); 224 $woo_fields = json_decode($json_string); 225 226 if( !empty($woo_fields) ) { 227 foreach( $woo_fields as $woo_field ) { 228 $contact_field = new Swagger\Client\Model\Message_Business_ContactField(); 229 $contact_field->setName( $woo_field->name ); 230 $contact_field->setFormat( $woo_field->format ); 231 try { 232 $accountApi->accountPostContactAttribute( $contact_field ); 233 } catch( Exception $e ) { 234 $e->getMessage(); 235 } 236 } 237 } 238 } 239 } 240 218 241 function message_business_get_custom_fields_object() { 219 242 $accountApi = new Swagger\Client\Api\Message_Business_AccountApi(); -
message-business/trunk/languages/message-business-fr_FR.po
r1897204 r1900023 431 431 msgstr "Une erreur inattendue s'est produite. Veuillez essayer à nouveau." 432 432 433 #: woocommerce/message-business-woocommerce.php:485 434 msgid "Please specify your shop url." 435 msgstr "Veuillez indiquer l'adresse URL du site." 436 437 #: woocommerce/message-business-woocommerce.php:488 438 msgid "Please specify a consumer key." 439 msgstr "Veuillez indiquer votre clé client." 440 441 #: woocommerce/message-business-woocommerce.php:491 442 msgid "Please specify a consumer secret." 443 msgstr "Veuillez indiquer votre secret client." 444 445 #: woocommerce/message-business-woocommerce.php:494 446 msgid "Please select a valid frequency." 447 msgstr "Veuillez sélectionner une fréquence de synchronisation valide." 448 449 #: woocommerce/partials/message-business-woocommerce.php:28 450 msgid "" 451 "To obtain a consumer key, go to your WooCommerce extension > Settings > API " 452 "> keys and apps > Add key > Name your description > Change the permissions " 453 "to \"Read Write\" > Generate API key." 454 msgstr "" 455 "Pour obtenir une clé client, allez sur votre plugin WooCommerce > Réglages > " 456 "API > Clés/Apps > Ajouter une clé > Nommez votre clé dans le champ " 457 "description > Changez les permissions à \"Lecture/Ecriture\" > Générer une " 458 "clé API." 459 460 #: woocommerce/partials/message-business-woocommerce.php:37 461 msgid "" 462 "To obtain a consumer secret, go to your WooCommerce extension > Settings > " 463 "API > keys and apps > Add key > Name your description > Change the " 464 "permissions to \"Read Write\" > Generate API key." 465 msgstr "" 466 "Pour obtenir une secret client, allez sur votre plugin WooCommerce > " 467 "Réglages > API > Clés/Apps > Ajouter une clé > Nommez votre clé dans le " 468 "champ description > Changez les permissions à \"Lecture/Ecriture\" > Générer " 469 "une clé API." 470 433 471 #~ msgid "<a href=\"%s\">Add the Message Business widget</a> on your web site." 434 472 #~ msgstr "" -
message-business/trunk/languages/message-business.pot
r1897204 r1900023 367 367 msgid "An error has occurred during the process. Please try again." 368 368 msgstr "" 369 370 #: woocommerce/message-business-woocommerce.php:485 371 msgid "Please specify your shop url." 372 msgstr "" 373 374 #: woocommerce/message-business-woocommerce.php:488 375 msgid "Please specify a consumer key." 376 msgstr "" 377 378 #: woocommerce/message-business-woocommerce.php:491 379 msgid "Please specify a consumer secret." 380 msgstr "" 381 382 #: woocommerce/message-business-woocommerce.php:494 383 msgid "Please select a valid frequency." 384 msgstr "" 385 386 #: woocommerce/partials/message-business-woocommerce.php:28 387 msgid "To obtain a consumer key, go to your WooCommerce extension > Settings > API > keys and apps > Add key > Name your description > Change the permissions to "Read Write" > Generate API key." 388 msgstr "" 389 390 #: woocommerce/partials/message-business-woocommerce.php:37 391 msgid "To obtain a consumer secret, go to your WooCommerce extension > Settings > API > keys and apps > Add key > Name your description > Change the permissions to "Read Write" > Generate API key." 392 msgstr "" -
message-business/trunk/message-business.php
r1897204 r1900023 14 14 * 15 15 * @wordpress-plugin 16 * Plugin Name: M essage Business for WooCommerce16 * Plugin Name: Marketing automation, Email and SMS for Woocommerce and Wordpress 17 17 * Plugin URI: https://wordpress.org/plugins/message-business 18 * Description: Message Business plugin for WooCommerce.19 * Version: 1.1. 018 * Description: Synchronize your Woocommerce clients and Wordpress visitors with Message Business application for Marketing automation, email marketing, sms marketing, webform, abandoned cart etc. 100% Compliant GDPR. 19 * Version: 1.1.1 20 20 * Author: Message Business 21 21 * Author URI: https://www.message-business.com/ … … 24 24 * Text Domain: message-business 25 25 * Domain Path: /languages 26 * WC requires at least: 2.6.0 27 * WC tested up to: 3.2.5 26 28 */ 27 29 … … 35 37 * Start at version 1.0.0 and use SemVer - https://semver.org 36 38 */ 37 define( 'MESSAGE_BUSINESS_VERSION', '1.1. 0' );39 define( 'MESSAGE_BUSINESS_VERSION', '1.1.1' ); 38 40 define( 'MESSAGE_BUSINESS_PLUGIN_DIR', dirname( __FILE__ ) . '/' ); 39 41 -
message-business/trunk/woocommerce/css/message-business-woocommerce.css
r1897204 r1900023 26 26 font-weight: bold; 27 27 } 28 29 /** HELP ICON TOOLTIP **/ 30 .help-tip{ 31 /*position: absolute; 32 top: 18px; 33 right: 18px;*/ 34 display: inline-block; 35 text-align: center; 36 background-color: #00aaff; 37 border-radius: 50%; 38 width: 24px; 39 height: 24px; 40 font-size: 14px; 41 line-height: 26px; 42 cursor: default; 43 } 44 45 .help-tip:before{ 46 content:'?'; 47 font-weight: bold; 48 color:#fff; 49 } 50 51 .help-tip:hover p{ 52 display:block; 53 transform-origin: 100% 0%; 54 55 -webkit-animation: fadeIn 0.3s ease-in-out; 56 animation: fadeIn 0.3s ease-in-out; 57 58 } 59 60 .help-tip p{ /* The tooltip */ 61 display: none; 62 text-align: left; 63 background-color: #3f3f3f; 64 padding: 20px; 65 width: 300px; 66 position: absolute; 67 border-radius: 3px; 68 box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2); 69 /*right: -4px;*/ 70 color: #FFF; 71 font-size: 13px; 72 line-height: 1.4; 73 } 74 75 .help-tip p:before{ /* The pointer of the tooltip */ 76 position: absolute; 77 content: ''; 78 width:0; 79 height: 0; 80 border:6px solid transparent; 81 border-bottom-color:#3f3f3f; 82 left:7px; 83 top:-12px; 84 } 85 86 .help-tip p:after{ /* Prevents the tooltip from being hidden */ 87 width:100%; 88 height:40px; 89 content:''; 90 position: absolute; 91 top:-40px; 92 left:0; 93 } 94 95 /* CSS animation */ 96 97 @-webkit-keyframes fadeIn { 98 0% { 99 opacity:0; 100 transform: scale(0.6); 101 } 102 103 100% { 104 opacity:100%; 105 transform: scale(1); 106 } 107 } 108 109 @keyframes fadeIn { 110 0% { opacity:0; } 111 100% { opacity:100%; } 112 } 113 /** END HELP ICON TOOLTIP **/ -
message-business/trunk/woocommerce/message-business-woocommerce.php
r1897204 r1900023 267 267 if( !is_null( $woo_last_order_date_id ) ) { 268 268 // get last order date value 269 $order = wc_get_orders( array( 'limit' => 1, 'orderby' => 'date', 'order' => 'DESC', 'status' => 'completed', 'customer_id' => $customer->id ) );269 $order = wc_get_orders( array( 'limit' => 1, 'orderby' => 'date', 'order' => 'DESC', 'status' => array( 'pending', 'on-hold', 'processing', 'completed' ), 'customer_id' => $customer->id ) ); 270 270 if( !empty( $order ) ) { 271 271 $order_data = $order[0]->get_data(); … … 315 315 if( !is_null( $woo_first_order_date_id ) ) { 316 316 // get first order date 317 $order = wc_get_orders( array( 'limit' => 1, 'orderby' => 'date', 'order' => 'ASC', ' customer_id' => $customer->id ) );317 $order = wc_get_orders( array( 'limit' => 1, 'orderby' => 'date', 'order' => 'ASC', 'status' => array( 'pending', 'on-hold', 'processing', 'completed' ), 'customer_id' => $customer->id ) ); 318 318 if( !empty( $order ) ) { 319 319 $order_data = $order[0]->get_data(); … … 351 351 if( !is_null( $woo_orders_count_id ) ) { 352 352 // get orders count value 353 $orders_count = $customer->orders_count; 353 $args = array( 354 'status' => array( 'pending', 'on-hold', 'processing', 'completed' ), 355 'customer_id' => $customer->id 356 ); 357 $orders = wc_get_orders( $args ); 358 $orders_count = sizeof( $orders ); 359 // $orders_count = $customer->orders_count; 354 360 $woo_orders_count = new Swagger\Client\Model\Message_Business_ContactAttribute(); 355 361 $woo_orders_count->setId( $woo_orders_count_id ); … … 434 440 435 441 // ini_set('max_execution_time', 300); 442 443 // if WooCommerce is installed and activated, we create all the WooCoommerce fields needed for the plugin 444 message_business_create_woocommerce_custom_fields(); 436 445 437 446 $shop_url = ( !empty( $_POST['MESSAGE_BUSINESS_SHOP_URL'] ) ? $_POST['MESSAGE_BUSINESS_SHOP_URL'] : '' ); … … 474 483 if( empty( $shop_url ) && esc_url( $shop_url ) ) { 475 484 $json['status'] = 'error'; 476 $json['message'] = 'Please specify your shop url.'; 477 // add_settings_error( 'message_business_messages', 'message_business_message_shop_url', __( 'Please specify your shop url.', 'message-business' ), 'error' ); 485 $json['message'] = __( 'Please specify your shop url.', 'message-business' ); 478 486 } elseif( empty( $consumer_key ) ) { 479 487 $json['status'] = 'error'; 480 $json['message'] = 'Please specify a consumer key.'; 481 // add_settings_error( 'message_business_messages', 'message_business_message_consumer_key', __( 'Please specify a consumer key.', 'message-business' ), 'error' ); 488 $json['message'] = __( 'Please specify a consumer key.', 'message-business' ); 482 489 } elseif( empty( $consumer_secret ) ) { 483 490 $json['status'] = 'error'; 484 $json['message'] = 'Please specify a consumer secret.'; 485 // add_settings_error( 'message_business_messages', 'message_business_message_consumer_secret', __( 'Please specify a consumer secret.', 'message-business' ), 'error' ); 491 $json['message'] = __( 'Please specify a consumer secret.', 'message-business' ); 486 492 } elseif( !in_array( $frequency, $frequencies ) ) { 487 493 $json['status'] = 'error'; 488 $json['message'] = 'Please select a correct frequency.';494 $json['message'] = __( 'Please select a valid frequency.', 'message-business' ); 489 495 } else { 490 496 // save the shop url and consumer keys then show a success message -
message-business/trunk/woocommerce/partials/message-business-woocommerce.php
r1897204 r1900023 15 15 <?php do_settings_sections( 'message-business-woocommerce-settings-group' ); ?> 16 16 17 <table style="width: 50%;float:left">17 <table style="width:75%;float:left"> 18 18 <tr> 19 19 <td valign="top"><label for="MESSAGE_BUSINESS_SHOP_URL" style="text-align:right; white-space: nowrap;" ><?php echo esc_html( __( 'Shop URL', 'message-business' ) ); ?></label></td> … … 23 23 <tr> 24 24 <td valign="top"><label for="MESSAGE_BUSINESS_CONSUMER_KEY" style="text-align:right; white-space: nowrap;" ><?php echo esc_html( __( 'Consumer key', 'message-business' ) ); ?></label></td> 25 <td valign="top"><input style="width:300px;" type="text" id="MESSAGE_BUSINESS_CONSUMER_KEY" name="MESSAGE_BUSINESS_CONSUMER_KEY" value="<?php echo esc_attr( get_option('MESSAGE_BUSINESS_CONSUMER_KEY') ); ?>" required></td> 25 <td valign="top"> 26 <input style="width:300px;" type="text" id="MESSAGE_BUSINESS_CONSUMER_KEY" name="MESSAGE_BUSINESS_CONSUMER_KEY" value="<?php echo esc_attr( get_option('MESSAGE_BUSINESS_CONSUMER_KEY') ); ?>" required> 27 <div class="help-tip"> 28 <p><?php echo __( 'To obtain a consumer key, go to your WooCommerce extension > Settings > API > keys and apps > Add key > Name your description > Change the permissions to "Read Write" > Generate API key.', 'message-business' ); ?></p> 29 </div> 30 </td> 26 31 </tr> 27 32 <tr> 28 33 <td valign="top"><label for="MESSAGE_BUSINESS_CONSUMER_SECRET" style="text-align:right; white-space: nowrap;" ><?php echo esc_html( __( 'Consumer secret', 'message-business' ) ); ?></label></td> 29 <td valign="top"><input style="width:300px;" type="text" id="MESSAGE_BUSINESS_CONSUMER_SECRET" name="MESSAGE_BUSINESS_CONSUMER_SECRET" value="<?php echo esc_attr( get_option('MESSAGE_BUSINESS_CONSUMER_SECRET') ); ?>" required></td> 34 <td valign="top"> 35 <input style="width:300px;" type="text" id="MESSAGE_BUSINESS_CONSUMER_SECRET" name="MESSAGE_BUSINESS_CONSUMER_SECRET" value="<?php echo esc_attr( get_option('MESSAGE_BUSINESS_CONSUMER_SECRET') ); ?>" required> 36 <div class="help-tip"> 37 <p><?php echo __( 'To obtain a consumer secret, go to your WooCommerce extension > Settings > API > keys and apps > Add key > Name your description > Change the permissions to "Read Write" > Generate API key.', 'message-business' ); ?></p> 38 </div> 39 </td> 30 40 </tr> 31 41 <tr>
Note: See TracChangeset
for help on using the changeset viewer.