Plugin Directory

Changeset 1900023


Ignore:
Timestamp:
06/27/2018 01:54:06 PM (8 years ago)
Author:
msgbusiness
Message:

1.1.1

  • README/txt updated.
  • Import contacts feature updated.
  • Help options added to help the user to configure the WooCommerce API.
Location:
message-business/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • message-business/trunk/README.txt

    r1897204 r1900023  
    1 === Message Business Plugin for WordPress/WooCommerce ===
     1=== Marketing automation, Email and SMS for Woocommerce and Wordpress ===
    22Contributors: msgbusiness
    3 Tags: Message Business, newsletters, forms, marketing automation, email, emailing, sms
     3Tags: Message Business, formulaire, autorépondeur, autoresponder, trigger, newsletter, forms, marketing automation, email, emailing, sms, webform, survey
    44Requires at least: 3.0.1
    55Tested up to: 4.9.6
    66Requires PHP: 5.4.0
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Publish a form on your WordPress site to collect contact information on a Message Business account and send them emailings, marketing sms.
     11Synchronize your Woocommerce clients and Wordpress visitors with Message Business application for Marketing automation, email marketing, sms marketing, webform, abandoned cart etc.  100% Compliant GDPR
    1212
    1313== Description ==
    1414
    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,
     15Synchronize 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.
    1716-   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,
    1918-   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,
    2321-   And more!
    2422The Message Business Plugin for WordPress is free and installs in just a few clicks.
     23This extension is compatible with versions from WordPress 4.9.5 and PHP 5.4.0 / WooCommerce from version 2.6 (API Rest).
    2524Like 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.
    2825
    2926== Installation ==
    3027
    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
     281. Log in as administrator in WordPress.
     292. Go to Plugins > Add and send message-business.zip.
     302. Or extract the 'message-business.zip' file and upload `message-business` directory to your `/wp-content/plugins/` directory
     313. Activate the Message Business extension through the 'Plugins' menu in WordPress
     324. Configure the plugin on the settings page
     335. Build your form through the form settings tab in the Message Business plugin page
     346. Add the Message Business Widget to your WordPress site
     35
     36You must have cURL extension enabled. PHP 5.4.0 or later version is required.
    3737
    3838== Frequently Asked Questions ==
     
    4040= What is Message Business? =
    4141
    42 Message Business is an 100% French online software designed for your email and SMS marketing management.
     42Message Business is an 100% French online software designed for your email and SMS marketing campaign and marketin automation scenario.
    4343
    4444* Email Marketing Features
     
    4747Simple and conditional customization (direct mail and display based on criteria)
    4848Campaign planning (immediate, planned or regulated dispatch)
    49 Automatic triggering (trigger, birthday, satisfaction ...)
    5049Unlimited test not counted from the sending credit
    5150Report of advanced campaigns by segments, terminals, time zone, hot zones ...
    5251Responsive campaign templates and newsletters
    5352Turnkey marketing programs (reception, thank you, ...)
     53
     54* Marketing automation
     55
     56Automatic triggering (trigger, birthday, satisfaction ...)
     57Scenario
    5458
    5559* Delivery expertise
     
    9296Campaign Report
    9397
    94 = What is the Message Business Plugin for WordPress? =
     98= What is the Marketing automation, Email and SMS for Woocommerce and Wordpress plugin ? =
    9599
    96 The 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.
     100This Message Business Plugin let you synchronize your Woocommerce clients informations (email, purchase date, birthdate etc…) with your Message Business application fully compliant with GDPR.
    97101
    98102= Do I need a Message Business account? =
     
    102106If 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.
    103107
    104 = How does the Message Business Plugin for WordPress work? =
     108= How does the Marketing automation, Email and SMS for Woocommerce and Wordpress plugin work? =
    105109
    106110It'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,
     1111. Install the Message Business plugin for WordPress/WooCommerce,
     1122. Set the content and fields to use in your form,
     1133. Position the widget including the form in the structure of your WordPress site,
     1144. Set up the WooCommerce API connection,
     1155. Launch automatic synchronization of clients based on contacts.
    110116Et 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.
    112117
    113 = In which language the Message Business Plugin for WordPress is available? =
     118The 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.
    114119
    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
     122This Message Business Plugin is available in English and French.
    116123
    117124== Screenshots ==
    118125
    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.
     1261. Webform edition.
     1272. Widget Edition.
     1283. API Message Business configuration.
     1294. Sync frequency configuration.
     1305. In MB app, Woocommerce fields.
     1316. In MB app, Responsive Email editor.
     1327. In MB app, mobile preview.
     1338. In MB app, trigger configuration.
     1349. In MB app, campaign report (global).
     13510. In MB app, campaign report (mobile).
     13611. In MB app, delivery monitoring.
    122137
    123138== 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.
    124145
    125146= 1.1.0 =
  • message-business/trunk/admin/partials/message-business-admin-settings.php

    r1897204 r1900023  
    6666
    6767                        // 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();
    8869                    } catch(Exception $e) {
    8970                        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  
    216216}
    217217
     218function 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
    218241function message_business_get_custom_fields_object() {
    219242    $accountApi = new Swagger\Client\Api\Message_Business_AccountApi();
  • message-business/trunk/languages/message-business-fr_FR.po

    r1897204 r1900023  
    431431msgstr "Une erreur inattendue s'est produite. Veuillez essayer à nouveau."
    432432
     433#: woocommerce/message-business-woocommerce.php:485
     434msgid "Please specify your shop url."
     435msgstr "Veuillez indiquer l'adresse URL du site."
     436
     437#: woocommerce/message-business-woocommerce.php:488
     438msgid "Please specify a consumer key."
     439msgstr "Veuillez indiquer votre clé client."
     440
     441#: woocommerce/message-business-woocommerce.php:491
     442msgid "Please specify a consumer secret."
     443msgstr "Veuillez indiquer votre secret client."
     444
     445#: woocommerce/message-business-woocommerce.php:494
     446msgid "Please select a valid frequency."
     447msgstr "Veuillez sélectionner une fréquence de synchronisation valide."
     448
     449#: woocommerce/partials/message-business-woocommerce.php:28
     450msgid ""
     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."
     454msgstr ""
     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
     461msgid ""
     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."
     465msgstr ""
     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
    433471#~ msgid "<a href=\"%s\">Add the Message Business widget</a> on your web site."
    434472#~ msgstr ""
  • message-business/trunk/languages/message-business.pot

    r1897204 r1900023  
    367367msgid "An error has occurred during the process. Please try again."
    368368msgstr ""
     369
     370#: woocommerce/message-business-woocommerce.php:485
     371msgid "Please specify your shop url."
     372msgstr ""
     373
     374#: woocommerce/message-business-woocommerce.php:488
     375msgid "Please specify a consumer key."
     376msgstr ""
     377
     378#: woocommerce/message-business-woocommerce.php:491
     379msgid "Please specify a consumer secret."
     380msgstr ""
     381
     382#: woocommerce/message-business-woocommerce.php:494
     383msgid "Please select a valid frequency."
     384msgstr ""
     385
     386#: woocommerce/partials/message-business-woocommerce.php:28
     387msgid "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."
     388msgstr ""
     389
     390#: woocommerce/partials/message-business-woocommerce.php:37
     391msgid "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."
     392msgstr ""
  • message-business/trunk/message-business.php

    r1897204 r1900023  
    1414 *
    1515 * @wordpress-plugin
    16  * Plugin Name:       Message Business for WooCommerce
     16 * Plugin Name:       Marketing automation, Email and SMS for Woocommerce and Wordpress
    1717 * Plugin URI:        https://wordpress.org/plugins/message-business
    18  * Description:       Message Business plugin for WooCommerce.
    19  * Version:           1.1.0
     18 * 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
    2020 * Author:            Message Business
    2121 * Author URI:        https://www.message-business.com/
     
    2424 * Text Domain:       message-business
    2525 * Domain Path:       /languages
     26 * WC requires at least: 2.6.0
     27 * WC tested up to: 3.2.5
    2628 */
    2729
     
    3537 * Start at version 1.0.0 and use SemVer - https://semver.org
    3638 */
    37 define( 'MESSAGE_BUSINESS_VERSION', '1.1.0' );
     39define( 'MESSAGE_BUSINESS_VERSION', '1.1.1' );
    3840define( 'MESSAGE_BUSINESS_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
    3941
  • message-business/trunk/woocommerce/css/message-business-woocommerce.css

    r1897204 r1900023  
    2626  font-weight: bold;
    2727}
     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  
    267267            if( !is_null( $woo_last_order_date_id ) ) {
    268268                // 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 ) );
    270270                if( !empty( $order ) ) {
    271271                    $order_data = $order[0]->get_data();
     
    315315            if( !is_null( $woo_first_order_date_id ) ) {
    316316                // 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 ) );
    318318                if( !empty( $order ) ) {
    319319                    $order_data = $order[0]->get_data();
     
    351351            if( !is_null( $woo_orders_count_id ) ) {
    352352                // 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;
    354360                $woo_orders_count = new Swagger\Client\Model\Message_Business_ContactAttribute();
    355361                $woo_orders_count->setId( $woo_orders_count_id );
     
    434440
    435441        // 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();
    436445
    437446        $shop_url = ( !empty( $_POST['MESSAGE_BUSINESS_SHOP_URL'] ) ? $_POST['MESSAGE_BUSINESS_SHOP_URL'] : '' );
     
    474483        if( empty( $shop_url ) && esc_url( $shop_url ) ) {
    475484            $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' );
    478486        } elseif( empty( $consumer_key ) ) {
    479487            $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' );
    482489        } elseif( empty( $consumer_secret ) ) {
    483490            $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' );
    486492        } elseif( !in_array( $frequency, $frequencies ) ) {
    487493            $json['status'] = 'error';
    488             $json['message'] = 'Please select a correct frequency.';
     494            $json['message'] = __( 'Please select a valid frequency.', 'message-business' );
    489495        } else {
    490496            // save the shop url and consumer keys then show a success message
  • message-business/trunk/woocommerce/partials/message-business-woocommerce.php

    r1897204 r1900023  
    1515            <?php do_settings_sections( 'message-business-woocommerce-settings-group' ); ?>
    1616
    17             <table style="width:50%;float:left">
     17            <table style="width:75%;float:left">
    1818                <tr>
    1919                    <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>
     
    2323                <tr>
    2424                    <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>
    2631                </tr>
    2732                <tr>
    2833                    <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>
    3040                </tr>
    3141                <tr>
Note: See TracChangeset for help on using the changeset viewer.