• Trang chủ
  • Windows
  • Mac OS
  • Điện thoại
  • Game hay
  • Thủ thuật
  • Website
  • Hướng dẫn
  • Tài liệu
Sunday, 19 July, 2026
Chia sẻ thủ thuật IT, tải phần mềm miễn phí
No Result
View All Result
  • Trang chủ
  • Windows
  • Mac OS
  • Điện thoại
  • Game hay
  • Thủ thuật
  • Website
  • Hướng dẫn
  • Tài liệu
  • Trang chủ
  • Windows
  • Mac OS
  • Điện thoại
  • Game hay
  • Thủ thuật
  • Website
  • Hướng dẫn
  • Tài liệu
No Result
View All Result
Chia sẻ thủ thuật IT, tải phần mềm miễn phí
No Result
View All Result
Home Hướng dẫn

Rearrange WooCommerce checkout page data fields

Sắp xếp lại các trường dữ liệu trang checkout của WooCommerce

Harris by Harris
18/08/2023
in Hướng dẫn
Reading Time: 1 min read
2
huanvmdotcom woocommerce checkout fields ordering
9
SHARES
28
VIEWS
Share to FacebookShare to TwitterPin on Pinterest

Rearrange WooCommerce checkout page data fields

With the default WooCommerce checkout form, the UI/UX is not very good.

Below is the code that helps you to rearrange the order of the input fields more convenient for users and the form to look more compact.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
Checkout fields
**/
add_filter( 'woocommerce_default_address_fields', 'hvm_custom_woocommerce_default_address_fields', 9999 );
function hvm_custom_woocommerce_default_address_fields( $fields ){
$fields['address_1']['class'] = array('form-row-wide', 'address-field');
$fields['address_2']['class'] = array('form-row-wide', 'address-field');
$fields['address_1']['priority'] = 30;
$fields['address_2']['priority'] = 31;
$fields['city']['priority'] = 50;
$fields['postcode']['priority'] = 55;
$fields['country']['priority'] = 65;
$fields['state']['priority'] = 60;
$fields['postcode']['class'] = array('form-row-last', 'address-field');
$fields['city']['class'] = array('form-row-first', 'address-field');
$fields['country']['class'] = array('form-row-last', 'address-field');
$fields['state']['class'] = array('form-row-first', 'address-field');
return $fields;
}

And results:

WooCommerce checkout page
WooCommerce checkout page
Digiprove sealCopyright protected by Digiprove © 2023
Rate this post
Chào ! Bạn thấy nội dung này thế nào?
Hữu ích 1045Tạm được 1001
Tags: woocommerceWooCommerce checkout page
Previous Post

Add text From before price for Woocommerce

Next Post

Set all products instock without edit manual in Woocommerce

Harris

Harris

Thích du lịch, khám phá và thích vọc vạch

Next Post
Set all products instock without edit manual in Woocommerce

Set all products instock without edit manual in Woocommerce

guest
guest
2 Bình luận
Phản hồi nội tuyến
Xem tất cả bình luận
Jaime Rodriguez
Jaime Rodriguez
13/03/2024 01:03

Looking forward to your next post. Keep up the good work!

0
Phản hồi
Gary Brock
Gary Brock
23/03/2024 08:10

of course like your website but you have to check the spelling on several of your posts. A number of them are rife with spelling issues and I in finding it very troublesome to inform the reality on the other hand I will certainly come back again.

0
Phản hồi
wpdiscuz   wpDiscuz

KHUYÊN DÙNG

Set all products instock without edit manual in Woocommerce

Set all products instock without edit manual in Woocommerce

18/08/2023
27
Download Cubase 10 Pro All in One – Hướng dẫn cài đặt chi tiết

Download Cubase 10 Pro All in One – Hướng dẫn cài đặt chi tiết

24/09/2025
3.7k

ĐANG THỊNH HÀNH

Download Wondershare Filmora X 10.7.8.12 (Full + Repack)

Download Wondershare Filmora X 10.7.8.12 (Full + Repack)

14/08/2023
14.3k
Download Cubase 10 Pro All in One – Hướng dẫn cài đặt chi tiết

Download Cubase 10 Pro All in One – Hướng dẫn cài đặt chi tiết

24/09/2025
3.7k
[Thủ thuật] Ngăn WordPress scaled (thu nhỏ) kích thước hình ảnh

[Thủ thuật] Ngăn WordPress scaled (thu nhỏ) kích thước hình ảnh

27/12/2022
33
Cách dùng hook Woocommerce để hiển thị thông tin bên dưới sản phẩm

Cách dùng hook Woocommerce để hiển thị thông tin bên dưới sản phẩm

28/12/2022
132
Steinberg – Cubase Pro 12.0.0.205 x64

Steinberg – Cubase Pro 12.0.0.205 x64

24/03/2022
3.4k

GIỚI THIỆU

Chia sẻ thủ thuật IT, tải phần mềm miễn phí

Xin chào! Mình là Mạnh Huấn, website này mình xây dựng nhằm mục đích chia sẻ miễn phí các kiến thức, thủ thuật máy tính, làm web WordPress, SEO, MMO, các phần mềm hay... mà mình biết cho tất cả mọi người. Cảm ơn các bạn đã ghé qua, nếu thấy bài viết hay, hãy chia sẻ để ủng hộ tinh thần cho mình nhé!

Theo dõi mình tại đây:

BÀI VIẾT GẦN ĐÂY

Hướng dẫn cài đặt ZeroSSL trên DirectAdmin

Hướng dẫn cài đặt ZeroSSL trên DirectAdmin

12/10/2023
Set all products instock without edit manual in Woocommerce

Set all products instock without edit manual in Woocommerce

18/08/2023
Rearrange WooCommerce checkout page data fields

Rearrange WooCommerce checkout page data fields

18/08/2023

HV MEDIA ON FACEBOOK

  • Giới thiệu
  • Chính sách bảo mật
  • Bản quyền
  • Liên hệ
  • Quảng cáo
  • Gửi yêu cầu
  • Báo link hỏng

© 2020 HV Media - Chia sẻ thủ thuật IT, phần mềm by HV Media Center.

No Result
View All Result
  • Home
  • Mac OS
    • Adobe
    • Developer Tools
    • Graphics & Design
    • Internet – Security
    • Productivity
    • Utilities
    • Video – Audio
  • Windows
    • Anti Virus
    • Development
    • Graphics & Design
    • Office – Study
    • Tools
    • Utilities
    • Video – Audio
  • Điện thoại
    • Apps, Game Cho iOS
    • Phần mềm Android
  • Thủ thuật
    • Thủ thuật máy tính
    • Thủ thuật Mobile
    • Thủ thuật Facebook
  • Game hay
    • Game MacOS
    • Game Windows
  • Website
  • Hướng dẫn
  • Tài liệu

© 2020 HV Media - Chia sẻ thủ thuật IT, phần mềm by HV Media Center.

wpDiscuz
2
0
Bạn đang nghĩ gì, hãy để lại bình luận nhé !x
()
x
| Phản hồi