/**
* When a formidable form submitted, add form's connected product to cart.
*/
add_action('frm_after_create_entry', 'ff_take_user_to_wc_checkout_for_payment', 20, 2);
function ff_take_user_to_wc_checkout_for_payment($entry_id, $form_id) {
$linked_products = get_posts([
'post_type' => 'product',
'post_status' => 'publish',
'numberposts' => 1,
'meta_key' => '_attached_formidable_form',
'meta_value' => $form_id,
'cache_results' => false,
]);
if (empty($linked_products)) {
return;
}
$product_id = $linked_products[0]->ID;
if (!function_exists('WC') || !WC()->session) {
return;
}
if (method_exists(WC()->session, 'set_customer_session_cookie')) {
WC()->session->set_customer_session_cookie(true);
}
WC()->cart->empty_cart();
$entry = FrmEntry::getOne($entry_id, true);
$form_data = $entry->metas;
$addon_total = 0;
foreach ($form_data as $value) {
if (is_string($value) && strpos(trim($value), '$') === 0) {
$price = floatval(str_replace(['$', ','], '', $value));
$addon_total += $price;
}
}
WC()->session->set('addon_total', $addon_total);
WC()->cart->add_to_cart($product_id, 1, 0, [], ['addon_total' => $addon_total]);
if (empty($_POST['frm_ajax'])) {
wp_safe_redirect(wc_get_checkout_url());
exit;
}
}
/**
* When an item is added to the cart, remove other products.
*/
add_filter( 'woocommerce_add_to_cart_validation', 'ff_keep_only_one_product_in_the_cart', 10, 3 );
function ff_keep_only_one_product_in_the_cart( $valid, $product_id, $quantity ) {
if( ! empty ( WC()->cart->get_cart() ) && $valid ) {
WC()->cart->empty_cart();
}
return $valid;
}
/**
* Disable add to cart confirmation message.
*/
add_filter( 'wc_add_to_cart_message_html', '__return_false' );
/**
* Redirect user to checkout page after adding a product to cart.
*/
add_filter ('add_to_cart_redirect', 'ff_redirect_to_checkout');
function ff_redirect_to_checkout() {
global $woocommerce;
$checkout_url = $woocommerce->cart->get_checkout_url();
return $checkout_url;
}
/**
* Calculate formidable add-on prices and add them to the total price in WC checkout.
*/
add_action('woocommerce_before_calculate_totals', 'ff_apply_addon_total_to_cart_price', 10, 1);
function ff_apply_addon_total_to_cart_price($cart) {
if (is_admin() && !defined('DOING_AJAX')) {
return;
}
foreach ($cart->get_cart() as $cart_item) {
if (!empty($cart_item['addon_total'])) {
$base_price = $cart_item['data']->get_price();
$addon_price = floatval($cart_item['addon_total']);
$cart_item['data']->set_price($base_price + $addon_price);
}
}
}
/**
* Use different Authorize.net accounts in checkout.
*/
add_filter( 'option_woocommerce_authorizeaim_settings', function( $woocommerce_authorizeaim_settings ) {
global $woocommerce;
if ( function_exists( 'is_checkout' ) && function_exists( 'get_field' ) && is_checkout() ) {
foreach ( $woocommerce->cart->get_cart() as $cart_item ) {
$product_id = $cart_item['product_id'];
$api_login_id = get_post_meta( $product_id, 'api_login_id', true );
$transaction_key = get_post_meta( $product_id, 'transaction_key', true );
if ( !empty( $api_login_id ) && !empty( $transaction_key ) ) {
$woocommerce_authorizeaim_settings['login_id'] = $api_login_id;
$woocommerce_authorizeaim_settings['transaction_key'] = $transaction_key;
break;
}
}
}
return $woocommerce_authorizeaim_settings;
} );
/**
* When placing a new WC order by submitting formidable,
* set order's customer detail according to the submitted information.
*/
add_action( 'woocommerce_new_order', 'ff_update_customer_data', 10, 2 );
function ff_update_customer_data($order_id,$order){
$postdata = $_POST;
$email = $postdata['la_email'];
$username = $postdata['la_email'];
$args = array(
'user_email' => $email,
'display_name' => $postdata['la_first_name'],
'first_name' => $postdata['la_first_name'],
'last_name' => $postdata['la_last_name']
);
$userdata = wc_create_new_customer($email,$username,'',$args);
$userdata = json_decode(json_encode($userdata), true);
if(isset($userdata['errors'])){
$customer = get_user_by('email',$email);
if($customer){
$user_id = $customer->ID;
}
}else{
$user_id = $userdata;
update_user_meta($user_id, "first_name",$postdata['la_first_name']);
update_user_meta($user_id, "last_name",$postdata['la_last_name']);
}
$address = array(
'first_name' => $postdata['la_first_name'],
'last_name' => $postdata['la_last_name'],
'email' => $email,
'phone' => $postdata['la_ower_phone'],
'address_1' => $postdata['la_buisiness_adddress_1'],
'address_2' => $postdata['la_buisiness_adddress_2'],
'city' => $postdata['la_buisiness_adddress_city'],
'state' => $postdata['la_buisiness_adddress_state'],
'postcode' => $postdata['la_buisiness_adddress_zipcode'],
'country' => 'US'
);
$order = new WC_Order($order_id);
$order->set_customer_id($user_id);
$order->set_address($address, 'billing');
$order->set_address($address, 'shipping');
$order->save();
}
/**
* Link formidable entry with woocommerce order. -- ⇩⇩⇩ --
*/
// 1. Store formidable entry ID in the customer session.
add_action( 'frm_after_create_entry', function( $entry_id, $form_id ) {
WC()->session->set( 'frm_entry_id', $entry_id );
}, 20, 2 );
// 2. Set formidable entry id from session to the order as an order meta.
add_action( 'woocommerce_checkout_create_order', function( $order, $data ) {
if ( $entry_id = WC()->session->get( 'frm_entry_id' ) ) {
$order->update_meta_data( '_frm_entry_id', $entry_id );
}
}, 10, 2 );
// 3. Display the link to the formidable entry on the order details page.
add_filter( 'woocommerce_order_item_display_meta_key', function( $display_value, $meta ) {
if ( $meta->key == '_formidable_form_data' ) {
$display_value = __( 'Formidable Entry', 'formidable-woocommerce' );
}
return $display_value;
}, 10, 2 );
How to Submit an Annual Report Filing in Illinois
Skip to content
How To Submit Anannual report filingin illinois.
You must file an Illinois annual report filing when you operate certain types of businesses in the state. Another common term for this annual report is a Certificate of Good Standing.
Who Needs to File an Annual Report Filing in Illinois?
The Illinois Department of Business Services requires all corporations, limited liability companies (LLCs), nonprofit organizations, and limited partnerships (LPs) to file annual reports.
What Is an Illinois Annual Report Filing?
The annual report filing is a special form that provides specific information about your company. The state requires it to ensure you are remaining compliant with specific information you need to include in your annual filing, including:
The name of your company
The main address for your business
The contact information for the business
The name and address of directors, members, officers, or managers
Any changes to the company, such as new directors, name change, address change, etc.
Any changes to the shares issued by the company or paid-in capital
Depending on the structure of your company, there are different types of annual reports. For example, the Illinois corporation annual report form will be slightly different from the form used by LLCs and LPs.
Regardless of the form used, you must complete it accurately and correctly. Otherwise, it could be rejected, and you must correct it and resubmit your report.
How Do I File My Illinois Annual Report?
You will need to locate your company’s correct annual report filing form through the Illinois Department of Business Services. Next, you must follow the instructions to complete the form correctly.
How Much Does It Cost?
The current cost for LLCs and corporations is $75 annually and $100 for LPs. Nonprofit organizations and other such entities are only required to pay $10 annually.
Presently, corporations are the only business entities that have to pay a franchise fee on top of their annual report costs. The Illinois Department of Business Services provides corporations with two options for calculating their franchise fees. They recommend using the one that results in the smallest amount of fees.
However, the state did decide to do away with the franchise fees by 2024. Until then, you are still required to pay them if you operate a corporation.
Are There Any Late Filing Penalties?
Presently, corporations are the only business entities that have to pay a franchise fee on top of their annual report costs. The Illinois Department of Business Services provides corporations with two options for calculating their franchise fees. They recommend using the one that results in the smallest amount of fees.
However, the state did decide to do away with the franchise fees by 2024. Until then, you are still required to pay them if you operate a corporation.
The due date to submit your annual report is before the first day of your anniversary month. For example, you opened your LLC on August 15th. In this case, your annual report would be due before August 1st and must be filed and received by July 31st.
What Happens if I Don’t File?
You will face additional penalties if you choose not to file your annual report with the Illinois Department of Business Services.
Corporations: The state will dissolve the corporation if its annual report is 120 days or more late.
LLCs: LLCs will be dissolved by the state when they are 180 days or more late.
LPs: Since LPs are not charged late fees, they are dissolved when their annual reports are 60 days or more late.
If the state dissolves your company, you will no longer be in good standing and allowed to conduct business in the state. In order to restore your good standing, you must file the annual report, pay the fees and penalties, and pay a reinstatement fee.
Corporations have to complete a two-page report, while other business entities only have a one-page report to fill out. The state only requests general information about the business and never asks for any financial information, except for corporations providing basic details on shares.
When you rely on FastFilings and our annual report filing services, your Illinois company gains several benefits:
We remind you when your annual report is due.
We file your annual report on your behalf with the state using the correct form.
All you do is provide us with the information we need to complete your annual report.
We file the annual report electronically with the state.
We calculate your annual Illinois franchise fee to find the smallest amount between the two different calculation methods.
Using our streamlined process, you can file your annual report through us in under five minutes.
File your Illinois annual report today at FastFilings. If you have further questions or require additional assistance, please do not hesitate to contact us using our online contact form.