settings, $_POST)), 'yes'); $this->settings = get_option('woocommerce_mailerlite_settings'); } if(isset($_POST['resetIntegration'])) { MailerLiteSettings::getInstance()->softReset(); } if (!is_array($this->settings)) { MailerLiteSettings::getInstance()->softReset(); } $checkoutPositions = [ 'checkout_billing' => 'After billing details', 'checkout_billing_email' => 'After billing email address', 'checkout_shipping' => 'After shipping details', 'checkout_after_customer_details' => 'After customer details', 'review_order_before_submit' => 'Before submit button', ]; $selectedCheckoutPosition = $this->settings['checkout_position']; $checkoutDisabled = !($this->settings['checkout'] == 'yes'); $groups = $this->getGroups(); ?>