Plugin Directory

Changeset 2390073


Ignore:
Timestamp:
09/29/2020 06:49:40 AM (6 years ago)
Author:
ehsantikweb
Message:

Fixed and updated bugs caused by MailPoet version 3.51.0 and tagging 1.1.7

Location:
add-on-woocommerce-mailpoet
Files:
4 edited
6 copied

Legend:

Unmodified
Added
Removed
  • add-on-woocommerce-mailpoet/trunk/add-on-woocommerce-mailpoet.php

    r2157829 r2390073  
    33 * Plugin Name:       Add-on WooCommerce MailPoet 3
    44 * Description:       Let your customers subscribe to your newsletter as they checkout with their purchase.
    5  * Version:           1.1.7
     5 * Version:           1.1.8
    66 * Author:            Tikweb
    77 * Author URI:        http://www.tikweb.dk/
     
    7171 * If php version is lower
    7272 */
    73 if(version_compare(phpversion(), '5.4', '<')){
     73if(version_compare(phpversion(), '7.0', '<')){
    7474    function mailpoet_cfi_php_version_notice(){
    7575        ?>
    7676        <div class="error">
    77             <p><?php _e('Add-on WooCommerce MailPoet 3  plugin requires PHP version 5.4 or newer, Please upgrade your PHP.', 'add-on-woocommerce-mailpoet'); ?></p>
     77            <p><?php _e('Add-on WooCommerce MailPoet 3  plugin requires PHP version 7.0 or newer, Please upgrade your PHP.', 'add-on-woocommerce-mailpoet'); ?></p>
    7878        </div>
    7979        <?php
  • add-on-woocommerce-mailpoet/trunk/changelog.txt

    r2157829 r2390073  
    11== Changelog ==
     2
     3= 1.1.8 - 2020-09-28 =
     4* Fixed and updated bugs caused by MailPoet version 3.51.0
    25
    36= 1.1.7 - 2019-09-17 =
  • add-on-woocommerce-mailpoet/trunk/includes/class-mpwa-place-order.php

    r2116903 r2390073  
    104104                            try {
    105105                                $subscribe_data['status'] = 'unconfirmed';
    106                                 Subscriber::createOrUpdate( $subscribe_data );
    107                                 $subscriber = \MailPoet\API\API::MP( 'v1' )->subscribeToLists( $subscribe_data['email'],
     106                                $subscriber = Subscriber::createOrUpdate( $subscribe_data );
     107                                $subscription = \MailPoet\API\API::MP( 'v1' )->subscribeToLists( $subscriber->id,
    108108                                    $list_id_array, $options['send_confirmation_email'] = true );
    109109
    110110                            } catch ( Exception $exception ) {
     111                                $output = print_r($exception, true);
     112                                file_put_contents("exception.txt",$output);
    111113                            }
    112114                        } else {
     
    144146                            try {
    145147                                $subscribe_data['status'] = 'subscribed';
    146                                 Subscriber::createOrUpdate( $subscribe_data );
    147                                 $subscriber = \MailPoet\API\API::MP( 'v1' )->subscribeToLists( $subscribe_data['email'],
     148                                $subscriber = Subscriber::createOrUpdate( $subscribe_data );
     149                                $subscription = \MailPoet\API\API::MP( 'v1' )->subscribeToLists( $subscriber->id,
    148150                                    $list_id_array, $options['send_confirmation_email'] = false );
    149151
    150152                            } catch ( Exception $exception ) {
     153
    151154                            }
    152155                        } else {
  • add-on-woocommerce-mailpoet/trunk/readme.txt

    r2157829 r2390073  
    33Tags: mailpoet, wysija, woocommerce, e-commerce, mail, email, e-mail, extension, add-on, newsletter, newsletters, subscription, checkout, list, lists, double opt-in, form
    44Donate link: http://www.tikweb.dk/donate/
    5 Requires at least: 4.6
    6 Tested up to: 5.2.2
    7 Requires PHP: 5.3
    8 Stable tag: 1.1.7
     5Requires at least: 5.2
     6Tested up to: 5.5.1
     7Requires PHP: 7.0
     8Stable tag: 1.1.8
    99
    1010Let your customers subscribe to your MailPoet 3 newsletter as they checkout from WooCommerce with their purchase.
Note: See TracChangeset for help on using the changeset viewer.