Rearrange woocommerce checkout fields in online stores? This tutorial will show you all the best ways to reorder checkout fields. Woocomerce allows you to reorder and reorder multiple elements of e-commerce websites, thereby improving the conversion rate. Among them, the checkout field can also be reordered according to the needs of the website and customers. However, before proceeding with this step, let’s take a look at why the changes were made. Why change the order of payment fields? When installing woocommerce in the online store, several required pages are created by the plug-in by default. This includes shopping cart, shopping, my account, payment page, etc. However, for payment pages, the default fields may not apply to all types of e-commerce websites.
The woocommerce checkout fields may need to be reordered at any time, depending on the site and the customer. For example, on the default payment page, the customer must enter the last name after the name. However, in some cases, it may be more appropriate to enter the last name initially or ask the customer’s invoice receiving address first. Therefore, to customize these fields according to similar situations, you must reorder them. How do I rearrange woocommerce settlement fields? WordPress uses two main methods to reorder the woocommerce checkout fields.
Let’s learn more about the steps of this guide in a programming way including plug-ins. However, before you start, make sure you set up woocommerce correctly on your website and use one of the compatible woocommerce themes. As a plug-in, woocommerce checkout field reordering plug-in can help the website improve its functionality. Similarly, one of the easiest ways to rearrange the woo commerce fields is to use plug-ins. Just install the plug-in on the WordPress website and rearrange the checkout fields through it.
There are many woocommerce checkout plug-ins that can be used to customize the checkout page. However, woocommerce offers only a few options for reordering payment fields. In this tutorial, we will use the woocomer plug-in to reference checkout manager because it is very easy to use. This is also one of the best plug-ins for customizing checkout pages and can also be used to reorder checkout fields. However, to use the plug-in, the plug-in must be installed and activated. 1. To install and activate plug-ins, navigate to plug ins > New on the WordPress dashboard and search for plug-in keywords. When the plug-in is found, click Install now.
After installation, activate the plug-in. If you want to use advanced plug-ins or plug-ins that are not included in the word press repository, you can also install the plug-ins manually. The plug-in must be ed from market place and uploaded to the website. For more information, see the guide for manually installing the word press plug-in. 2. In the plug-in option, if the woocommerce settlement field reordering plug-in is active, you can use it to reorder the woocommerce settlement fields. On the WordPress dashboard, navigate to woocommerce > settings and open the checkout tab.
The payment page usually contains billing and shipping details. First rearrange the billing fields. Therefore, select the billing option on the checkout tab. You can view all the fields for billing details here. Now you just need to reorder the billing details field using drag and drop. Drag and drop fields to the checkout page
Just place it where you want to place it. You can also use the up and down arrows to move the field to the desired location. There are also location options for each field. Fields can be placed on the left, right, or wide field areas of the screen. You can also enable toggle in the disabled column to hide fields as needed.
Rearrange all checkout fields for the woocommerce store and click save changes. After refreshing the payment page, you can view the fields of the new order. You can also reorder the shipping details fields in the same way. Simply select the shipping option on the checkout tab and rearrange the fields. After reordering all the required fields, you will also see reordering on the front-end checkout page. If you do not want to programmatically add the plug-in to the woocommerce settlement field reordering website, you can also reorder the woocommerce settlement field using the code snippet. However, this method is only applicable to cases with advanced programming knowledge.
In addition, the code fragment is the function of the website. When you add to a PHP file and update a WordPress theme, you may lose code snippets. Therefore, to add snipt, you must create a sub theme. If you need help, you can also use one of WordPress’s best sub theme plug-ins. However, it is recommended that you back up the WordPress website before adding snippets. functions. The PHP file is one of the core files of the website and may cause more problems due to unwanted changes. Now let’s go through the process.
1. Functions in the theme editor. Access PHP files. Functions in the theme editor. The code snippet must be added to the PHP file. To access, go to shapes > theme editor from the WordPress dashboard. Then in the theme file, the function on the right side of the screen. Select the PHP file. You can now scroll to the bottom of the editor, update the file, and then start adding code snippets. This tutorial uses the divi theme. Therefore, depending on the theme you use, your appearance may be slightly different from the editor.
2. There are multiple code fragments that can be added to the website to reorder the woocommerce checkout field. However, first understand that fields are divided into four groups. Billing address – billing shipping address – shipping account login – account notes – orders also have a specific priority in each field of these groups. In addition, to reorder fields, you must know the priority. You can find the fields in the list below. The number displayed after the field is priority. Bill bill_first_name – 10 bill_last_name – 20 bill_company – 30 bill_address_1 – 40 bill_address_2 – 50 bill_country – 80 bill_state – 90 bill_email – 100 bill_phone – 110 shipping_first_name – 10 shipping_name – 20 shipping_company – 30 shipping_address_1 – 40 shipping_address_2 – 50 Shipping_city – 60 shipping_postcode_zip code – 70 shipping_country – 80 shipping_state-90 account _password (no priority) order_comments (no priority) now let’s look at a few examples.
2.1. Move field to top
To move the checkout field and display it on the top or first line, you can use the following code snippet: add_filter( ‘woocommerce_checkout_fields’, ‘quadlayers_email_top’ );
Function quadlayers_email_top ($checkout_fields){
$checkout_fields [\
Return $checkout_fields;
}By default, names have the highest priority of 10. Therefore, to reorder the fields to the top, make sure that the priority of the fields is less than 10. For us, the priority of the email field is 5. That’s why it’s at the top of the checkout field.
2.2. Moving a field to another group and reordering the woocommerce checkout field using a code snippet is not limited to moving the field to the top. You can also modify or create more snippets to move fields to other groups. For example, the following is snipt. add_filter( ‘woocommerce_checkout_fields’, ‘quadlayers_billing_email_another_group’ );
Functions: quadlayers_billing_email_other_group ($checkout_fields){
\/\/ 1. Here, assign the field array to other groups.
$checkout_fields[‘order’][‘billing_email’] = $checkout_fields[‘billing’][‘billing_email’];
\/\/ 2. Remove field from previous location
unset( $checkout_fields[‘billing’][‘billing_email’] );
Return $checkout_fields;
}As you can see, the billing email has been moved to the additional information group. Similarly, you can change the code according to the needs of the website and use it to move the fields of other groups. If you need more help, woocomerce also provides detailed guidelines for editing payment fields using codes. Click here to view. Bonus: woocommerce is now used to the process of reordering woocommerce settlement fields, so it may be better to shorten the settlement process of the website. One of the best practices is to skip the shopping cart page to simplify the process. In this way, if customers only want to buy several products, they can directly redirect to the payment page. Use the direct checkout of the woocommerce plug-in to activate direct payment. This is a simple plug-in that allows customers to skip the shopping cart page and redirect to the payment page. However, you must install and activate the plug-in before you can start using it. Therefore, on the WordPress dashboard, re move plug-ins > Add plug-ins and search for plug-ins. Then click Install Now and activate the plug-in as soon as the installation is complete. Now you need to adjust several default woocommerce settings. You can find it in the WordPress > settings under the products tab of the WordPress dashboard. Select the general options here to view the general options of woocommerce products. Then check these two options to jump to other actions in the shopping cart and avoid interfering with the plug-in settings. Then open the settlement tab directly, and select the general option here. Now set the add to cart redirect to checkout from the drop-down menu. Finally, save the changes. That is, the customer will be redirected to the settlement page instead of the shopping cart page on the website. If you need additional information and a detailed guide, you can skip the shopping cart page. Conclusion:
Various ways to rearrange woocommerce settlement fields. This is a very good customization, which can be applied to the payment page to meet customer needs. Depending on the site, this may be easier. To sum up, we have studied two best methods to reorder settlement fields. Using plug-ins programmatically is one of the fastest ways to reorder fields, they say. Just adjust some options on the woocommerce dashboard and rearrange the fields. However, if you need more advanced methods and have technical knowledge, you can also use code snippet reordering. It also includes a short tutorial to skip the shopping cart page and simplify the payment process. If you want to further improve the settlement page, you can also get detailed guidelines such as woocommerce settlement optimization, generating the first page settlement, changing the settlement progress text and so on. I hope this tutorial is helpful. Here are some articles worth your attention. How to change the woocommerce checkout error message? How to add the condition field to the highest woocommerce single page checkout plug-in (free and charged) woocommerce checkout? Can you reorder the checkout fields now? Any problems? Tell us with comments!