/**
* 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 Get an Arkansas Resale Certificate, Seller Permit & Wholesale License
Skip to content
How To Get Aresale certificatein arkansas.
When you operate a business in Arkansas that sells goods and products to customers, you could benefit by applying for and obtaining an Arkansas resale certificate. It does not matter whether you run a home-based business or an online-only business or have a brick-and-mortar store. You will definitely want a resale certificate.
What Is an Arkansas Resale Certificate?
An Arkansas resale certificate is also known by other names, including:
Arkansas Wholesale Certificate
Arkansas Wholesale License
Arkansas Reseller’s Permit
Arkansas Resale License
Arkansas Sales Tax Exemption Certificate
No matter what you call it, this certificate allows your business to purchase goods and products that you intend to resell to your customers tax-free.
Apply for an Arkansas Resale Certificate!
Need help filing your resale certificate in Arkansas?
Any business that resells items at retail needs an Arkansas resale license, including home-based and online-only businesses. While you can certainly operate your business without one, it makes things a bit more complicated.
For example, you buy and resale arts and crafts items. When you do not have a resale certificate, you must pay sales taxes to your vendors and suppliers. Then, when you sell the items to your customers, you must collect sales taxes from them, as well.
In this scenario, you can deduct the sales taxes you paid to your vendor and suppliers when submitting the collected sales taxes to the Arkansas Department of Revenue. However, you must keep meticulous records and receipts.
On the other hand, when your business has a resale certificate in Arkansas, you may not have to pay sales taxes to your vendors and suppliers. So while you still need to keep accurate records and receipts, submitting your collected sales taxes is much easier.
Are Vendors and Suppliers Required to Honor Resale Licenses?
Most vendors and supplies will honor your resale license. However, they are not required by the state to accept them. If they do not accept them, you would just keep the receipts and deduct the sales taxes you paid them when you submitted your collected sales taxes to the state.
Does My Business Have to Honor Resale Certificates?
That is entirely up to you. However, in most cases, you would want to honor another business’s resale certificate in Arkansas, as it can lead to repeat business and a long-term customer relationship.
There is no set expiration date on Arkansas resale certificates. However, if you have not used yours in over 12 months, you may need to renew it with the state. In addition, if there are changes to your business, such as a “doing-business-as” (DBA) name, you would want to update your wholesale certificate to reflect your current business name.
Can I Use My Resale Certificate Out of State?
Most other states will honor your resale certificate for items and goods you purchase for your inventory. However, there are currently ten states that do not, including California, Illinois, Florida, Louisiana, and Alabama.
So, if you order goods from those states and want tax-exempt status, you would need to obtain a resale certificate in those states. In some cases, this can also involve obtaining a seller’s certificate or sales and use tax certificate in those states as well.
How to Get a Resale Certificate in Arkansas from FastFilings
The most efficient and effective way to get a resale certificate in Arkansas is to use FastFilings. We have streamlined the application process to save you time by completing a few simple steps:
Step 1: Fill out our secure online application form.
Step 2: Upload any required documentation.
Step 3: Submit your payment.
Step 4: We file your application electronically with the state.
Step 5: Sit back, relax, and get your Arkansas resale certificate electronically in one to two business days after it is accepted by the state.
If there are any issues with your application, we will contact you to resolve those issues before filing your resale certificate application with the state. Plus, you never have to guess what application form to fill out. Arkansas currently has three different sales-tax exempt resale certificate application forms!
In addition to assisting you with obtaining your resale certificate in Arkansas, we can also help you obtain your Arkansas seller’s permit, wholesale certificates in other states, and seller’s permits in other states.
Get started now by filling out our Arkansas resale certificate application today! If you have further questions or require additional assistance, do not hesitate to contact us using our online contact form.
Apply for an Arkansas Resale Certificate!
Need help filing your resale certificate in Arkansa?