/** * 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 ); Food Truck Start-Ups Archives - Tue, 12 Mar 2024 16:09:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 https://dev.fastfilings.pomdev.net/wp-content/uploads/2020/09/cropped-icon2-32x32.png Food Truck Start-Ups Archives - 32 32 Everything You Need to Know About How to Start a Food Truck Business in CA https://dev.fastfilings.pomdev.net/everything-you-need-to-know-about-how-to-start-a-food-truck-business-in-ca/ https://dev.fastfilings.pomdev.net/everything-you-need-to-know-about-how-to-start-a-food-truck-business-in-ca/#respond Thu, 06 Sep 2018 11:56:45 +0000 https://dev.fastfilings.pomdev.net/?p=917 Everything You Need to Know About How to Start a Food Truck Business in CA Before you can start a food truck business, the first thing you will want to do is secure at least a seller’s permit in CA. A seller’s permit allows you to sell taxable items—your food and beverages—to consumers. However, it […]

The post Everything You Need to Know About How to Start a Food Truck Business in CA appeared first on .

]]>

Before you can start a food truck business, the first thing you will want to do is secure at least a seller’s permit in CA. A seller’s permit allows you to sell taxable items—your food and beverages—to consumers. However, it does not exempt you from paying sales taxes on the items you need to stock your food truck. If you want to be exempt from sales taxes, then you also need to know how to get a reseller’s permit in CA.

In addition to your seller’s permit and reseller’s permit, you will need to obtain a state business license. Some cities, like San Diego and Los Angeles, also require business owners to obtain a city business license, which is separate from your state business license.

Apply for a California Wholesale License!

Need help filing your wholesale license in California?
Seller’s Permit and Resale Certificate

Food Truck Startup Costs

Aside from the costs for the various licenses, you will need to budget and plan for other startup costs, including:

  • The Food Truck
  • Equipment for the Food Truck
  • Food Inventories
  • Truck Modifications and Design
  • Website Design
  • Business Cards
  • Marketing and Advertising
  • POS App/System for Processing Credit/Debit Transactions
  • Insurance
  • Restaurant Supplies (i.e., Plates, Napkins, Forks, Knives, etc.)
  • Awnings
  • Fire Extinguishers
  • Rent and Lease Location Costs

Keep in mind, this list is not exclusive, and your actual startup costs could include other items not listed here. Furthermore, you will be required to ensure the food truck complies with all federal, state, county, and city regulations, including those regarding food safety and food handling.

Finding a Food Truck for Sale

In order to start a food truck business, you need a food truck! There are several different options available, depending on what type of equipment you will require inside the truck to run your business. One option is to look for a used food truck you can buy that is already outfitted with the equipment you require.

Another option is to find a truck that is the right size, and then customize it to your specifications. Customizations often do cost more than finding a used food truck. Since you will be held to the same health and safety standards as a restaurant, you will need the right equipment to store, prepare, and cook food.

Finding Equipment for Your Food Truck

If you decided to buy a truck and modify it for your food truck business, then you will need to find the right equipment. The best place to start is to look at used restaurant equipment that will fit inside the truck. Buying used can cost less, as long as you make sure the equipment is in decent condition. Otherwise, you will want to invest in new equipment.

Making the Food Truck Legal

Once you have your permits and business licenses, and you have secured a location where you can legally park, you may be required to have the food truck inspected by a health inspector and other such individuals from various government agencies to verify it complies with all rules, regulations, and laws. These inspections have to be completed prior to opening your truck for business.

Starting a food truck business can be challenging, but it can come with huge rewards if you launch a successful business. For assistance in securing your seller’s and reseller’s permits for starting a food truck business, as well as various business licenses, please feel free to contact Fastfilings.com using our online contact form or leave us a message at (415) 857-3301 today!

Gather your business documentation and information

Apply for a California Wholesale License!

Need help filing your wholesale license in California?

The post Everything You Need to Know About How to Start a Food Truck Business in CA appeared first on .

]]>
https://dev.fastfilings.pomdev.net/everything-you-need-to-know-about-how-to-start-a-food-truck-business-in-ca/feed/ 0
The Great Outdoor Food Fight: Making Fruit Stands Legal in California https://dev.fastfilings.pomdev.net/the-great-outdoor-food-fight-making-fruit-stands-legal-in-california/ https://dev.fastfilings.pomdev.net/the-great-outdoor-food-fight-making-fruit-stands-legal-in-california/#respond Wed, 21 Jun 2017 09:19:14 +0000 https://dev.fastfilings.pomdev.net/?p=782 The Great Outdoor Food Fight: Making Fruit Stands Legal in California If you’ve ever spent much time in California, you’ve probably seen the local fruit vendors selling their delicious wares on street corners of small towns and big cities alike. Given that America is a country that prides itself on producing and supporting businesspeople, you […]

The post The Great Outdoor Food Fight: Making Fruit Stands Legal in California appeared first on .

]]>

If you’ve ever spent much time in California, you’ve probably seen the local fruit vendors selling their delicious wares on street corners of small towns and big cities alike. Given that America is a country that prides itself on producing and supporting businesspeople, you would think that such enterprising men and women would be celebrated.

Unfortunately, the opposite is true. Thanks to restrictive laws, many outdoor fruit vendors find themselves at odds with law enforcement. For the “crime” of selling fruit on the street, they face the potential of being hit with hefty fines and even arrests.

Street vending has a long, proud tradition in this country and across the world. Many California outdoor fruit vendors are Mexican immigrants or the descendants of immigrants and have brought with them a history of selling food and wares to happy passersby.

The fact that many fruit vendors are Hispanic has added another layer of bitterness to the conflict over whether or not outdoor fruit vending should be legal. To many in the community, police crackdowns on vendors aren’t just about preventing them from doing business; they are seen as targeted attacks on a minority community.

Law enforcement officials vehemently deny this charge, but the perception that the targeting of fruit vendors is motivated as much by race as it is by health or licensing concerns adds even more incentive to find a way to relieve the situation.

Apply for a California Wholesale License!

Need help filing your wholesale license in California?
Seller’s Permit and Resale Certificate

Street Vendors Campaign

Fortunately for street vendors and their customers, a change in attitude seems to be developing. In 2013, Los Angeles was one of the biggest major American cities to have laws against street vending, and LAPD made 1,200 arrests related to street vending that year alone.[i] Fast forward to 2017, and the city council voted unanimously to decriminalize street vending, to the cheers of fruit sellers and other vendors.[ii] A similar change took place in 2012 when California adopted new laws that decriminalized the act of selling certain home-baked goods commercially.[iii]

Despite the victory in LA, many California fruit vendors still find themselves on the wrong side of the law. Earlier this year, a photo of a police officer in Alameda County arresting an outdoor fruit vendor caused dismay for the community.

Rather than being just another quiet arrest, the photo soon went viral, drawing more than 900 comments, most of them critical of the police for what commenters saw as heavy-handed tactics and unfair targeting of someone just trying to earn a living.

Apply for a California Wholesale License!

Need help filing your wholesale license in California?

The post The Great Outdoor Food Fight: Making Fruit Stands Legal in California appeared first on .

]]>
https://dev.fastfilings.pomdev.net/the-great-outdoor-food-fight-making-fruit-stands-legal-in-california/feed/ 0