Changeset 3398682
- Timestamp:
- 11/19/2025 09:14:02 AM (4 months ago)
- Location:
- woo-mailerlite/trunk
- Files:
-
- 4 edited
-
includes/WooMailerLiteService.php (modified) (1 diff)
-
includes/controllers/WooMailerLiteOrderController.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
woo-mailerlite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-mailerlite/trunk/includes/WooMailerLiteService.php
r3377455 r3398682 100 100 return true; 101 101 } 102 $checkoutData = WooMailerLiteCheckoutDataService::getCheckoutData();103 102 $customer = WooMailerLiteSession::getMLCustomer(); 103 $checkoutData = WooMailerLiteCheckoutDataService::getCheckoutData($customer['customer']['email'] ?? null); 104 104 $customerQuery = WooMailerLiteCustomer::where('email', $customer['customer']['email'])->first(); 105 105 try { -
woo-mailerlite/trunk/includes/controllers/WooMailerLiteOrderController.php
r3389552 r3398682 12 12 } 13 13 $order = wc_get_order($orderId); 14 if (!$order->get_billing_email()) { 15 return true; 16 } 14 17 if (WooMailerLiteSession::getMLCartHash()) { 15 18 $order->add_meta_data('_woo_ml_cart_hash', WooMailerLiteSession::getMLCartHash()); … … 84 87 $subscribe = true; 85 88 } 86 89 87 90 $orderCustomer = [ 88 91 'email' => $customer->email ?? $order->get_billing_email(), … … 117 120 } 118 121 $orderData['order'] = $order->get_data(); 119 $orderData['checkout_id'] = $cart->data['checkout_id'] ;122 $orderData['checkout_id'] = $cart->data['checkout_id'] ?? null; 120 123 $orderData['order_url'] = home_url() . "/wp-admin/post.php?post=" . $orderId . "&action=edit"; 121 124 $customerFields['woo_total_spent'] = ($customer->total_spent ?? $order->get_total()); … … 125 128 $data = [ 126 129 '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, 129 132 'order_id' => $orderId, 130 133 'payment_method' => $order->get_payment_method(), -
woo-mailerlite/trunk/readme.txt
r3389552 r3398682 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 3.1. 18 Stable tag: 3.1.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 84 84 85 85 == Changelog == 86 = 3.1.2 (19th November 2025) = 87 * Bug fixes and performance improvements 88 86 89 = 3.1.1 (4th November 2025) = 87 90 * Bug fixes and performance improvements -
woo-mailerlite/trunk/woo-mailerlite.php
r3389552 r3398682 16 16 * Plugin URI: https://wordpress.org/plugins/woo-mailerlite/ 17 17 * 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. 118 * Version: 3.1.2 19 19 * Author: MailerLite 20 20 * Author URI: https://mailerlite.com … … 40 40 * Update when you release new versions. 41 41 */ 42 define( 'WOO_MAILERLITE_VERSION', '3.1. 1' );42 define( 'WOO_MAILERLITE_VERSION', '3.1.2' ); 43 43 44 44 define('WOO_MAILERLITE_ASYNC_JOBS', false);
Note: See TracChangeset
for help on using the changeset viewer.