Updated 14 September 2026
On this page
Description
This filter changes the columns of the grouped products table. Since v2.1 you can pick the columns in the settings (Content tab, Products panel, or the Live Summary field settings), so you only need this filter to change the default for forms that never saved a choice. The side summary shows label, qty and unit_price by default; a Live Summary field also shows line_total.
Parameters
$columns | Array. The column keys: ‘label’, ‘qty’, ‘unit_price’, ‘line_total’
$form | Array. The Gravity Forms form object
$type | String. ‘side’ for the side summary, or the field ID of a Live Summary field
Return
Array
Usage
Copy the below code to the functions.php of your child theme or to your snippet plugin.
<?php
add_filter( "gotrls_default_grouped_columns", function( $columns, $form, $type ) {
// Show the line total in the side summary as well.
if ( 'side' === $type ) {
$columns[] = 'line_total';
}
return $columns;
}, 10, 3 );
Since
version 2.0.0
Didn’t find what you were looking for?
Or contact support and I will help you out.
