# How to use new product field as a filter

**URL:** <https://forum.litium.com/t/how-to-use-new-product-field-as-a-filter/962>\
**Category:** Questions\
**Created:** [July 2, 2019, 8:34am UTC](https://forum.litium.com/t/how-to-use-new-product-field-as-a-filter/962 "2019-07-02T08:34:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariliaBognandi](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@MariliaBognandi](https://forum.litium.com/u/MariliaBognandi)\
**Post date:** [July 2, 2019, 8:34am UTC](https://forum.litium.com/t/how-to-use-new-product-field-as-a-filter/962/1 "2019-07-02T08:34:36Z")

</div>

I’m working with creating a new field template for a product category. In this template I’m adding new fields, mostly of type textOption. A few of them need to be filters, how to I make it work?

I’ve added this code to ProductsFieldDefinitionSetup.cs:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/381c99fe44e6af2ab215b38bd504083f6470bc27.png)

and also defined the field in backoffice and added it to a product field template. However, on the product listing/categpry page I can’t see it as a new filter option. What have I missed?

Best regards  
Marilia

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [July 2, 2019, 8:38am UTC](https://forum.litium.com/t/how-to-use-new-product-field-as-a-filter/962/2 "2019-07-02T08:38:43Z")

</div>

You need to add it as a filter on the website. Below are instructions for Litium 7.

First, add it under _Settings_ \> _Accelerator_ \> _Product filtering_ .

Then go to _Settings_ \> _Websites_ \> _Websites_, edit your website and add the field under **Filters**.

The filter will be shown after that (assuming there are products using the field in the listing).

---

<div class="post-metadata">

**Author:** ![MariliaBognandi](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@MariliaBognandi](https://forum.litium.com/u/MariliaBognandi)\
**Post date:** [July 2, 2019, 8:50am UTC](https://forum.litium.com/t/how-to-use-new-product-field-as-a-filter/962/3 "2019-07-02T08:50:42Z")

</div>

Thanks for your quick reply, and yes I’m using Litium 7.

I have followed your steps, but I can’t see the new filter on the website. I even removed Price and News filters from both Settings \> Accelerator \> Product filtering and Settings \> Websites \> Websites to see if anything would change and they both disappear.

What could I possibly have been missing?

UPDATE:  
I added the all the fields in backoffice that I had defined in the code and now its working!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [July 30, 2019, 8:59am UTC](https://forum.litium.com/t/how-to-use-new-product-field-as-a-filter/962/5 "2019-07-30T08:59:14Z")

</div>

Closed on July 30, 2019, 8:59am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
