Sure you right.
Ok first i use “Code Snippets” plugin to make it easy to add snippet.
1st snippet : (Gravityform – disable product table)
***dont forget the id depends on your form id , mine is 1 here***
add_filter( ‘gfpdf_disable_product_table’, function( $disable, $entry, $form, $config, $products ) {
if ( $form[‘id’] === 1 ) {
return true;
}
return $disable;
}, 10, 5 );
2nd snippet : (Gravityform – enable product table at top)
add_action( ‘gfpdf_pre_html_fields’, function( $entry, $config ) {
GPDFAPI::product_table( $entry );
}, 10, 2 );
As Jake said , very easy to make.
have nice day, hope it may help.
-
This reply was modified 5 years, 9 months ago by
reVwow.