← All changes
|
includes/core/compatibility/plugin/class-wpfnl-wcml.php
+1
-3
3.11.1
→
3.13.3
View file →
| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | namespace WPFunnels\Compatibility\Plugin; |
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | use WPFunnels\Traits\SingletonTrait; |
| 11 | -use WC_Session_Handler; | |
| 12 | 11 | use WPFunnels\Wpfnl_functions; |
| 13 | 12 | use WPFunnels\Discount\WpfnlDiscount; |
| 14 | 13 | use WPFunnels\Modules\Frontend\CheckoutHelper\CheckoutHelper; |
| 15 | 14 | /** |
| @@ -174,10 +173,9 @@ | ||
| 174 | 173 | $user_id = $order->get_user_id(); |
| 175 | 174 | $orders[sanitize_text_field($_POST['_wpfunnels_checkout_id'])] = $order_id; |
| 176 | 175 | WC()->session->set('wpfnl_orders_'.$user_id.'_'.$funnel_id, $orders); |
| 177 | 176 | |
| 178 | - $session_handler = new WC_Session_Handler(); | |
| 179 | - WC()->session->set('wpfnl_order_owner', $session_handler->generate_customer_id()); | |
| 177 | + Wpfnl_functions::mark_order_owned_by_session( $order_id ); | |
| 180 | 178 | |
| 181 | 179 | /** |
| 182 | 180 | * Fires after a funnel order is placed. |
| 183 | 181 | * |