Plugin Directory

Changeset 3398682


Ignore:
Timestamp:
11/19/2025 09:14:02 AM (4 months ago)
Author:
mailerlite
Message:

updated to 3.1.2

Location:
woo-mailerlite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woo-mailerlite/trunk/includes/WooMailerLiteService.php

    r3377455 r3398682  
    100100            return true;
    101101        }
    102         $checkoutData = WooMailerLiteCheckoutDataService::getCheckoutData();
    103102        $customer = WooMailerLiteSession::getMLCustomer();
     103        $checkoutData = WooMailerLiteCheckoutDataService::getCheckoutData($customer['customer']['email'] ?? null);
    104104        $customerQuery = WooMailerLiteCustomer::where('email', $customer['customer']['email'])->first();
    105105        try {
  • woo-mailerlite/trunk/includes/controllers/WooMailerLiteOrderController.php

    r3389552 r3398682  
    1212            }
    1313            $order = wc_get_order($orderId);
     14            if (!$order->get_billing_email()) {
     15                return true;
     16            }
    1417            if (WooMailerLiteSession::getMLCartHash()) {
    1518                $order->add_meta_data('_woo_ml_cart_hash', WooMailerLiteSession::getMLCartHash());
     
    8487                $subscribe = true;
    8588            }
    86            
     89
    8790            $orderCustomer = [
    8891                'email' => $customer->email ?? $order->get_billing_email(),
     
    117120                }
    118121                $orderData['order'] = $order->get_data();
    119                 $orderData['checkout_id'] = $cart->data['checkout_id'];
     122                $orderData['checkout_id'] = $cart->data['checkout_id'] ?? null;
    120123                $orderData['order_url'] = home_url() . "/wp-admin/post.php?post=" . $orderId . "&action=edit";
    121124                $customerFields['woo_total_spent'] = ($customer->total_spent ?? $order->get_total());
     
    125128                $data = [
    126129                    'email' => $customer->email,
    127                     'checked_sub_to_mailist' => (bool)$cart->subscribe,
    128                     'checkout_id' => $cart->data['checkout_id'],
     130                    'checked_sub_to_mailist' => (bool)$subscribe ?? (bool)$cart->subscribe,
     131                    'checkout_id' => $cart->data['checkout_id'] ?? null,
    129132                    'order_id' => $orderId,
    130133                    'payment_method' => $order->get_payment_method(),
  • woo-mailerlite/trunk/readme.txt

    r3389552 r3398682  
    66Tested up to: 6.8.2
    77Requires PHP: 7.2.5
    8 Stable tag: 3.1.1
     8Stable tag: 3.1.2
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    8484
    8585== Changelog ==
     86= 3.1.2 (19th November 2025) =
     87* Bug fixes and performance improvements
     88
    8689= 3.1.1 (4th November 2025) =
    8790* Bug fixes and performance improvements
  • woo-mailerlite/trunk/woo-mailerlite.php

    r3389552 r3398682  
    1616 * Plugin URI:        https://wordpress.org/plugins/woo-mailerlite/
    1717 * Description:       Official MailerLite integration for WooCommerce. Track sales and campaign ROI, import products details, automate emails based on purchases and seamlessly add your customers to your email marketing lists via WooCommerce's checkout process.
    18  * Version:           3.1.1
     18 * Version:           3.1.2
    1919 * Author:            MailerLite
    2020 * Author URI:        https://mailerlite.com
     
    4040 * Update when you release new versions.
    4141 */
    42 define( 'WOO_MAILERLITE_VERSION', '3.1.1' );
     42define( 'WOO_MAILERLITE_VERSION', '3.1.2' );
    4343
    4444define('WOO_MAILERLITE_ASYNC_JOBS', false);
Note: See TracChangeset for help on using the changeset viewer.