How to use WooCommerce
Quick Links
Troubleshoot
Guide for WooCommerce Products
Here’s a full list of fields in the array passed to woocommerce_checkout_fields
:
- Billing
billing_first_name
billing_last_name
billing_company
billing_address_1
billing_address_2
billing_city
billing_postcode
billing_country
billing_state
billing_email
billing_phone
- Shipping
shipping_first_name
shipping_last_name
shipping_company
shipping_address_1
shipping_address_2
shipping_city
shipping_postcode
shipping_country
shipping_state
- Account
account_username
account_password
account_password-2
- Order
order_comments
Each field contains an array of properties:
type
– type of field (text, textarea, password, select)label
– label for the input fieldplaceholder
– placeholder for the inputclass
– class for the inputrequired
– true or false, whether or not the field is requireclear
– true or false, applies a clear fix to the field/labellabel_class
– class for the label elementoptions
– for select boxes, array of options (key => value pairs)
In specific cases you need to use the woocommerce_default_address_fields
filter. This filter is applied to all billing and shipping default fields:
country
first_name
last_name
company
address_1
address_2
city
state
postcode
WooCommerce Database Table
- actionscheduler_actions
Stores information on actions that will be executed by Action Scheduler. - actionscheduler_claims
- actionscheduler_groups
- actionscheduler_logs
Logs Action Scheduler execution. - woocommerce_sessions
Stores customer session data, such as carts. - woocommerce_api_keys
Stores API Keys used for the REST API. - woocommerce_attribute_taxonomies
Stores global attribute taxonomy names for products. - woocommerce_downloadable_product_permissions
Stores product access permissions for downloadable products (granted
after purchase). - woocommerce_order_items
Stores line items which are associated with orders. - woocommerce_order_itemmeta
Stores meta data about order line items. - woocommerce_tax_rates
Stores tax rates you define in the admin area. - woocommerce_tax_rate_locations
Stores locations (postcodes and cities) associated with the above tax rates. - woocommerce_shipping_zones
Stores shipping zones you create in the settings area. - woocommerce_shipping_zone_locations
Stores locations associated with your shipping zones. - woocommerce_shipping_zone_methods
Stores shipping methods linked to your shipping zones. - woocommerce_payment_tokens
Stores customer payment tokens (used by gateways). - woocommerce_payment_tokenmeta
Stores meta data about payment tokens. - woocommerce_log
General logging table (alternative to file based logging). - wc_webhooks
Stores any webhooks that have been setup on the store. - wc_download_log
Logs user downloads of downloadable products. - wc_product_meta_lookup
Lookup table that indexes order meta data to speed up requests. - wc_tax_rate_classes
Stores tax classes data. - wc_reserved_stock
Stores reserved stock and is used to prevent race conditions during checkout.
WordPress and WooCommerce store orders, products, customer data, and other data like posts and pages:
- wp_posts and wp_postmeta store orders and products separated by a custom post type field called ‘orders.’
- In wp_posts and wp_postmeta, WordPress keeps much of its data, including pages, posts, menu entries, and more.
- Users data are stored in wp_users and wp_usermeta.
Related Posts
DIY Updating WordPress Plugins
By keeping your plugins updated, you can ensure that your WordPress website remains secure, optimized, and capable of providing a sm...
How to manage your online store
Learn valuable strategies and tips on effectively managing your online store. Discover expert insights on inventory management, customer service, marketing techniques, and more to boost sales and customer satisfaction.
How to login to web server
Learn how to easily log in to your web server using Plesk or cPanel. Step-by-step instructions and helpful tips for hassle-free access.
How to prepare content
A comprehensive guide on how to prepare content for web development projects. Learn the essential client checklist for a successful website launch.
How to prepare images
A comprehensive guide on how to prepare images for your project, providing valuable insights and tips for clients.
How to choose the right brand color.
Learn how to choose the perfect brand color by understanding the psychology behind colors. Make your brand stand out with the right color choice.
How to control scope creep
Scope management best practices
The scope of a project can get out of control quickly—so quickly that you may not even notice it. Scope...
How to write a case study for portfolio
Learn how to write a compelling case study for your portfolio. Showcase your growth and adaptability as a UX designer by effectively incorporating feedback from stakeholders and users.
How to provide a good project brief
Gain an understanding of how to put together a solid project brief as well as the components that will make up the proposal.
How to fix error 403 Woocommerce mobile app.
Fix the error 403 and connect your store with the WooCommerce mobile app effortlessly. Get rid of connection issues with this helpful solution.
How to do SEO product description
Learn how to optimize your product descriptions for both search engines and users with our comprehensive SEO guide. Boost your online visibility and drive more traffic to your website.
How do revision work?
Learn how revision works and when it is considered a revision round. Gain a clear understanding of the revision process and its importance.