There are many factors that affect abandoned shopping cars (such as freight and payment methods), but the checkout page itself has an impact. If it is too complicated, too long, or needs too much personal information, customers may leave and buy similar products elsewhere elsewhere.
A way to optimize the checkout page? Customize the checkout field according to your business needs and target audience. For example: If you usually do not sell products to the company, delete the
company name field. If you send birthday surprises to your client, please include birth date field. If you sell pet products, ask Type of Pet may be meaningful.
In this article, we will guide you to understand how to customize the accounting page to meet the needs of the target audience and business.
The checkout field modification woocommerce for you The checkout page provides all basic fields. By default, it will require customers:
Settlement details
- Company name
- State [ 123]
- Postal encoding/Postal
- Tel
- Email address [ 123]
- There are many ways to customize the page, including:
- Edit Design
- Change the \”Place the Order\” button Text
Address
Town/City
Order remarks
Delete field
Set the field as required (or not need)
- Change the input field tag and place occupation symbol text
- Collect customers Account number
- Verify delivery preference
- Allows customers to request the delivery date or deadline of delivery
- Set the preferred contact information
- These are just you can do it. SomeDefinition; Woocommerce provides almost infinite flexibility for each experience level. If you like to edit code, you can use code fragments to customize. If you like more structures, you can use various extension and plug -in to edit the checkout fields.
Customized checkout field with code fragment
Note: If you are not familiar with code and solve potential conflicts, select Wooexpert or developers for help.
According to our support policies, we cannot provide support for customs.
Code fragment is a flexible way to customize the Woocommerce checkout field with developers and store owners. This is a main label list, including class and ID, you can use the visual design of the definition of the checkout page. Add custom CSS to your sub -theme or WordPress customizer.
To view all classes and selectors, please use a browser checker on your website to find the exact area you want to customize. \u0026lt;body class\u003d\u0026quot;woocommerce-checkout\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;woocommerce\u0026quot;\u0026gt; \u0026lt;form class\u003d\u0026quot;woocommerce-checkout\u0026quot;\u0026gt; \u0026lt;div class \u003d\u0026quot;col2-set\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;woocommerce-billing-fields\u0026quot;\u0026gt; \u0026lt;p class\u003d\u0026quot;form-row\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;woocommerce-shipping-fields\u0026quot; \u0026gt; \u0026lt;p class\u003d\u0026quot;form-row\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;woocommerce-additional-fields\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;woocommerce-checkout-review-order\u0026quot;\u0026gt; \u0026lt;table Class \u003d \u0026 Qot;woocommerce-checkout-review-order-table\u0026quot;\u0026gt; \u0026lt;div\u0026gt; \u0026lt;ul class\u003d\u0026quot;wc_payment_methods payment_methods methods\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;form-row place-order\u0026quot;\u0026gt; For example, if you want to change the background color of the text input box and give them a rounded corner, you can add:
[ 123]
input[type\u003d\u0026quot;text\u0026quot;] { border-radius: 10px !important; background-color: #222 !important; }
[123 ] Delete the checkout field: This is quite simple, But be careful , because this change may cause conflicts with other extensions and plug -ins.
Add the following code to the file of your sub -theme
Functions.php . Please note that the entire code will be deleted All
The field in the checkout page, so please make sure that only the fields to be deleted.
/** Remove all possible fields **/ function wc_remove_checkout_fields( $fields ) { // Billing fields unset( $fields[\u0026#39;billing\u0026#39;][\u0026#39;billing_company\u0026 #39;]) UNSET ($ Fields [\u0026#39; Billing \u0026#39;] [\u0026#39; Billing_email \u0026#39;]; unset ($ fields [\u0026#39; biting \u0026#39;] [\u0026#39; Billing_phone \u0026#39;]; unset ($ fields [\u0026#39; billing \u0026#39] [\u0026#39; billing_state \u0026#39;]; unset ($ fields [\u0026#39; billing \u0026#39 39] [\u0026#39; Billing_first_name \u0026#39;]; unset ($ fields [\u0026#39; billing \u0026#39;] [\u0026#39; billing_last_name \u0026#39;]; unset ($ fields [\u0026#39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 399;#39;] [\u0026#39; billing_address_1 \u0026#39;]; unset ($ fields [\u0026#39; billing \u0026#39;] [\u0026#39; billing_address_2 \u0026#39;];billing \u0026#39;] [\u0026#39; be 39; be 39; be 39;]); unset ($ field [\u0026#39; be 399;] [\u0026#399; bebost code \u0026#39;]))))))))))))))))))))))))))))))))))))).$ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_company \u0026#39]); unset ($ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_phone \u0026#39;)]unset ($ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_State \u0026#39;]); unset ($ fields [\u0026#39; shipping \u0026#39;]); unset ($ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_last_name \u0026#39]; unset ($ fields [\u0026#39; shipping \u0026#39; shipping_ding_dong_dong_dong_dong_dong_dong_dich); unset ($ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_address_2 \u0026#39;]; unset ($ fields [\u0026#39; shipping \u0026#39; shippp#39;]) UNSET ($ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_postcode \u0026#39;]); // Order Fields UNSET ($fields[\u0026#39;order\u0026#39;][\u0026#39;order_comments\u0026#39;] ); return $fields; } add_filter( \u0026#39;woocommerce_checkout_fields\u0026#39;, \u0026#39;wc_remove_checkout_fields\u0026#39; );[ 123]
Note: The national field is necessary . If you delete it, the order will not be completed, and your checkout form will display the following errors: \”Please enter the address to continue.\”
Make a must -have field without requiring: In the following example, we will edit editors
Bill number
field. Add this code to your sub -theme functions.php file. add_filter( \u0026#39;woocommerce_billing_fields\u0026#39;, \u0026#39;wc_unrequire_wc_phone_field\u0026#39;); function wc_unrequire_wc_phone_field( $fields ) { $fields[\u0026#39;billing_phone\u0026#39;][ \u0026#39; Required \u0026#39;] \u003d false; Return $ fields;}
or if you want to fill in the compulsory field, please change
text to the text to \” true \”.
Change the input field label and place occupation symbol:
] Add the following code to your sub -theme
Functions.php
and customize it to meet your needs.
add_filter (\u0026#39; woocommerce_checkout_fields \u0026#39;, \u0026#39; custom_checkout_fie_fie_fie_fie] [\u0026#39; Billing_company \u0026#39;] [\u0026#39; Placeholder \u0026#39;] \u003d \u0026#39; Business name \u0026#39;#39;] [\u0026#39; label \u0026#39;] \u003d \u0026#39; Business name \u0026#39; $ fields [\u0026#39; billing \u0026#39;] [\u0026#39; billing_name \u0026#39;] [\u0026#39;]39; Placeholder \u0026#39;] \u003d \u0026#39; first name \u0026#39; $ fields [\u0026#39; shipping \u0026#39] [\u0026#39; shipping_first_name \u0026#39;] [\u0026#39; PLACEHOLDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDERDE\u003d \u0026#39; first name \u0026#39;; $ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_last_name \u0026#39; [\u0026#39; Placeholder \u0026#39;] \u003d \u0026#39!#39; $ fields [\u0026#39; shipping \u0026#39;] [\u0026#39; shipping_company \u0026#39;] [\u0026#39; Placeholder \u0026#39;] \u003d \u0026#39;\u0026#39; Billing \u0026#39;] [\u0026#39; Billing_last_name \u0026#39;] [\u0026#39; Placeholder \u0026#39;] \u003d \u0026#39; last name \u0026#39;] [\u0026#39; Billing_email \u0026#39;] [\u0026#39; Placeholder \u0026#39;] \u003d \u0026#39; Email Address \u0026#39; $ Fields [\u0026#39; Billing \u0026#39;]; Billing_phone \u0026#39;] [\u0026#39; Placeholder \u0026#39;] \u003d \u0026#39; Phone \u0026#39; Return $ Fields;}
Use plug -in customized accounting field [123 ]
WooCommerce provides some excellent extensions to edit the checkout field without touching a line of code.
The checkout field editor
checkout field Editor extension allows you to add and delete the checkout field, or just click a few times to update the type, label and place occupying value. You can also mark each checkout field as \”must be filled\” or \”no need\”.
When adding a new field, you can choose from the following types:
Text-Standard text input
Password password -Cipline text input
Textarea- Text area field
Select-a drop-down/select box Multi-choice box
- Radio- a group of groups Radio input
- If your product is usually given as a gift, you may provide a variety of packaging options. You can use a single -selection button to choose between ordinary packaging, birthday theme packaging or anniversary theme packaging. You can set this field as required, set the label to \”Select your package type\”, and set the occupied symbol to \”ordinary\”.
check box-check-in box field
Date selector-text field with a date selector
Title-Title, for the long organization Page
In order to help advanced customs, Checkout Field Editor provides useful documents.
WOOCOMMERCE checkout additional component WooCommerce Checkout ADD-ONS extension allows you to flexibly provide free or paid additional components at the checkout, such as emergency performance, Add gift packaging or stickers or insurance. You can add a variety of field types to the lover page, including text fields, text areas, drop -down lists, multi -selection, single -selection buttons, check boxes, multi -check boxes and files.
In your instrument board, you can also sort and filter the order according to the options you created. If you want to process orders priority or display orders with emergency processing date, this may be helpful. Or you may want to package gifts at the same time.
Woocommerce single page checkout
Do you want to further simplify your checkout process? WooCommerce One Page Checkout extension turn any page into a checkout page.
According to a study at the Baymard Institute, due The shoppers gave up the shopping cart last quarter. WooCommerce One Page Checkout can solve this problem by allowing customers to add products to their shopping carts and submit payment on the same page.
You can even
add the checkout field to the login page
. If you are a service -based company, this will be particularly useful. Woocommerce social login Forcing customers to create accounts on your website is a potential obstacle to purchase. Let them use existing social media information to create accounts to help break this obstacle.
Woocommerce social login extension makes this process as simple and safe as possible. Customers can use their Facebook, Twitter, Google, Amazon, LinkedIn, PayPal, Instagram, Disqus, Yahoo or VK accounts to log in to your website without creating new login information.
The checkout process may be right Your conversion rate has a significant impact, so you should change it carefully and keep in mind the specific goals.
Fortunately, WooCommerce allows you to flexibly customize the checkout process to serve your online customer. Whether you need to make visual changes or add and delete the checkout field, you have many solutions to choose from.