WooCommerce provides many fields for different types of product information. Toolset automatically recognizes these fields and you can use them inside product forms.
Toolset registers all WooCommerce product fields so you don’t have to do anything. You can even see them by going to the Toolset → Custom Fields page and clicking the Toolset WooCommerce field group.
Use the following mapping table as a reference for all product fields. You can see the type and default value for each WooCommerce field.
Virtual
Download limit
_download_limit
Number
Virtual
_virtual
Checkbox
Value to store when Checked: yes
Downloadable
_downloadable
Checkbox
Value to store when Checked: yes
Download expiry
_download_expiry
Number
Download type
_download_type
Radio
Label: Standard Product, Value: (leave empty)
Label: Application, Value: application
Label: Music, Value: music
General
Regular price
_regular_price
Number
Sale price
_sale_price
Number
Sale price dates
_sale_price_dates_from, _sale_price_dates_to
Date field
Inventory
SKU
_sku
Single line
Manage stock
_manage_stock
Checkbox
Value to store when Checked: yes
Stock status
_stock_status
Radio
Label: In stock, Value: instock
Label: Out of stock, Value: outofstock
Stock quantity
_stock
Number
Allow backorder
_backorders
Radio
Label: Do not allow; Value: no
Label: Allow but notify customer; Value: notify
Label: Allow, Value; yes
Sold individually
_sold_individually
Checkbox
Value to store when Checked: yes
Shipping
Dimensions width
_width
Number
Dimensions length
_length
Number
Dimensions weight
_weight
Number
Advanced
Purchase note
_purchase_note
Single line or Multiple lines
Related topics
- Assigning Templates to Posts Conditionally
- How to Display WooCommerce Orders on the Front-end
- Using the WooCommerce Subscriptions plugin with Toolset
- Selecting WooCommerce Blocks Output Type
- Adding Toolset Blocks to the WooCommerce My Account Page
- Creating a Custom List of WooCommerce Products for a Taxonomy
- Building a Custom WooCommerce Shop Page
- Creating a Page with a Custom WooCommerce Product Search
- Creating a Custom List of Related WooCommerce Products
- Creating Custom Templates for WooCommerce Products
- Selecting Parent Posts when Using Forms to Create Child Items
- Adding a Custom Taxonomy to WooCommerce Products
- Displaying Form Data
- Creating a Custom WooCommerce Product Slider
- Adding Custom Fields to WooCommerce products
- Creating Front-end Forms for Adding WooCommerce Products
- Allow users to manage their items
- Charge users for registering premium accounts
- Charge users for submitting content
- Extending Form Functionality with Hooks
- Styling Front-End Forms
- Setting up Automatic Post Expiration
- Controlling Access to Front-End Forms
- Adding Generic Fields to Forms
- Send Notifications when Someone Submits the Form
- Deleting Content from The Front-End
- Front-end Forms for Editing Content
- Front-end Forms for Adding Content
- Using the Native Media Manager in Front-End Forms
- Protecting Forms from Spam
- Front-end Forms For Repeatable Field Groups
- Selecting allowed tags in front-end forms
- Custom WooCommerce Roles and Admin Capabilities
- Letting Forms Edit Post and User Fields Created by Other Plugins
- Conditional Display for Form Inputs