1. Home
  2. Knowledge Base
  3. WooCommerce Product Table Ultimate
  4. Displaying Tables
  5. Add date column to product table
  1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Add date column to product table
  1. Home
  2. Knowledge Base
  3. WooCommerce Product Table Ultimate
  4. Add date column to product table

Add date column to product table

If you’re using Product Table Ultimate, you might want to include a special column in your product table where users can select a date from a calendar for each product.

For instance, if your customers can select a delivery date for each product, you can include a datepicker field in each row.

To add date fields to your product tables, you’ll need the Product Add-Ons Ultimate plugin as well as Product Table Ultimate.

You can use either product-level or global fields in the date column.

Using product-level fields

Add your date fields to your products by following these steps. You will need to specify ‘Date’ as the field type. There are more details on date fields here.

To add these fields as a column, you can enter field_date as a column setting. You can enter this in the main settings to ensure the column appears in all your tables or you can enter it in specific tables.

The Product Table Ultimate plugin will use the first date field it finds in any products included in the table.

Using global fields

If you prefer, you can create a single date field globally and apply it to multiple products. There’s more information here about creating global fields.

If you’re using a global field, you need to add it to your table using field_group_1234_5678 where 1234 is your group ID and 5678 is the field ID.

Additional settings

If you only have a date field and no other add-on fields associated with your products, you might want to allow the user to add the products direct to their cart from the table. To enable this, ensure you uncheck the ‘Enable integration’ option in the plugin table settings.

Was this article helpful?

Related Articles