# Hide columns in customers email \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813>\
**Category:** Get Help\
**Tags:** email, columns, gform\_display\_product\_summary, customer\
**Created:** [February 4, 2022, 1:31am UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813 "2022-02-04T01:31:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user61a67c727d7bc095](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user61a67c727d7bc095/32/4270_2.png) [@user61a67c727d7bc095](https://community.gravityforms.com/u/user61a67c727d7bc095)\
**Post date:** [February 4, 2022, 1:31am UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/1 "2022-02-04T01:31:31Z")

</div>

Hello, again a question: how can I easily hide the columns ‘quantity’ and ‘unit price’ so that I have more space for the description in the emails to the customer.

It concerns all single products without quantity.

Thank you in advance.

 ![3e vraag in forum](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/6/65abb037c62908e46c90887ad65f289569b2ada8.jpeg)

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 4, 2022, 2:09am UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/2 "2022-02-04T02:09:42Z")

</div>

Hi Mariëlle. The output for that table is not currently modifiable in the email output. I recommend suppressing the table completely using the gform\_display\_product\_summary() filter:

> **[gform\_display\_product\_summary](https://docs.gravityforms.com/gform_display_product_summary/)**
>
> This filter can be used to prevent the pricing summary being included in the output generated when using the {all\_fields} merge tag.

Then, those fields will be output like every other field in your email. See if that works for you or if you need a different workaround.

---

<div class="post-metadata">

**Author:** ![user61a67c727d7bc095](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user61a67c727d7bc095/32/4270_2.png) [@user61a67c727d7bc095](https://community.gravityforms.com/u/user61a67c727d7bc095)\
**Post date:** [February 4, 2022, 2:29am UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/3 "2022-02-04T02:29:46Z")

</div>

Thanxs Chris, I’m going to try and dig into it, I had looked at the filter before but didn’t know how to apply it.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 4, 2022, 9:24pm UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/4 "2022-02-04T21:24:29Z")

</div>

You can use it just like this, which will apply to all forms:

`add_filter( 'gform_display_product_summary', '__return_false' );`

That is PHP code which can be added to your theme functions.php file, or you can use a plugin such as this one to keep the code separate from the theme: [Code Snippets – WordPress plugin | WordPress.org](https://wordpress.org/plugins/code-snippets/%E2%80%8B%E2%80%8B%E2%80%8B%E2%80%8B)

Try that, and see if the output in the body of the email is more along the lines of what you are looking for.

---

<div class="post-metadata">

**Author:** ![user61a67c727d7bc095](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user61a67c727d7bc095/32/4270_2.png) [@user61a67c727d7bc095](https://community.gravityforms.com/u/user61a67c727d7bc095)\
**Post date:** [February 4, 2022, 10:24pm UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/5 "2022-02-04T22:24:16Z")

</div>

I put this code in functions.php and changed the form-id in: 16 (16 is my form-id)

```auto
add_filter( 'gform_display_product_summary', function( $display_product_summary, $field, $form, $entry ) {
 
    return $form['id'] == 16 ? false : $display_product_summary;
}, 10, 4 );

```

But now only the total amount is visible in the email, all columns are gone, but visible in the pdf and admin email unchanged.

The intention is to hide only the 2 previously mentioned columns. Am I doing something wrong?

I just want to see this:  
 ![reply 3](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/7/7ed0ae9a467902a2c2edcc08394ce5f16f6b5013.jpeg)

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 6, 2022, 5:42pm UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/6 "2022-02-06T17:42:46Z")

</div>

You’re not doing anything wrong. As I mentioned, the table format is not modifiable. The filter prevents the table from being output in the notification at all. So you will have that data inline in the notification like the regular fields. Other than that, there’s no way to change the notification to output exactly what you are looking for.

If you think this would be a good idea to offer in Gravity Forms, I recommend adding that to our product roadmap. Click the blue ➕ in the lower left on this page to add a note for our product team:

> **[Gravity Forms Roadmap](https://www.gravityforms.com/gravity-forms-roadmap/)**

Thank you.

---

<div class="post-metadata">

**Author:** ![user61a67c727d7bc095](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user61a67c727d7bc095/32/4270_2.png) [@user61a67c727d7bc095](https://community.gravityforms.com/u/user61a67c727d7bc095)\
**Post date:** [February 6, 2022, 11:16pm UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/7 "2022-02-06T23:16:59Z")

</div>

Ok Chris, thanks for the answer. It’s clear to me. I think it would be a useful addition to the form if the output to the emails could be manually adjusted by the administrator. I will submit it as an idea for the roadmap. I found several threads related to this so I think it might be helpful.  
Then hope it ends up in Gravity Forms and not in the separately paid brother. 😉

Greetings,  
Mariëlle.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 7, 2022, 7:00pm UTC](https://community.gravityforms.com/t/hide-columns-in-customers-email-resolved/11813/8 "2022-02-07T19:00:01Z")

</div>

Closed on February 7, 2022, 7:00pm UTC


