Skip Navigation

Enabling Additional WooCommerce Fields in Product Forms

Product forms can include additional WooCommerce fields such as the sale price, SKU, etc. For this, you first need to “register” them with Toolset.

WooCommerce provides many fields for different types of product information. Toolset needs to know the type of each WooCommerce field so that it can include them correctly inside product forms. For this, you need to do a quick registration of such fields.

Steps to enable additional fields in product forms

  1. Go to Toolset Post Forms.
  2. In the Manage non-Toolset Post Fields with Toolset Forms section click Manage non-Toolset Post Fields.
  3. In the Show fields for dropdown select Products. In the second dropdown select Include hidden fields, and click Apply. Additional WooCommerce Fields appear. If you cannot see any product fields, add at least one WooCommerce product from the back-end and visit the screen again.
  4. Locate the field you want to add, and click Add to register it.
  5. In the pop-up dialog that appears select the type of field, and fill out the additional inputs if needed.
Making the regular price field available in Toolset forms

After enabling the additional WooCommerce fields, you can insert them into your Toolset forms. They will appear in the Custom Fields section:

Additional product field in the form editor

Correct types and default values for product fields

Use the following mapping table to register fields with the correct type and default value.

Type

Field in WooCommerce interface

Field in Forms Manage non-Toolset Post Fields screen

Toolset type to choose in the Set Field Type pop-up

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

weight

_weight

Number

Dimensions length

_length

Number

Advanced

Purchase note

_purchase_note

Single line or Multiple lines