[Skip to main content](#vessel-content)

#   module filter first value/filter

##

- **[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")**
- [![lionel75's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11856-lionel75 "View lionel75's Profile") Topic Author
- [ Offline](/forum/user/11856-lionel75)

Less More

- Posts: 846
- Thank you received: 92
-
-

11 years 6 months ago -  11 years 6 months ago [\#200537](#200537) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  *[module filter first value/filter](/forum/3-bug-report/876741-module-filter-first-value-filter#200537 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.17  Hi in the BACKEND -I create a custom field that contain 4 values . -This custom field has a default value . -i create 5 product and each contain only one of the 2 values / 4 values -i create one filter using this custom field -i create one module filter using this custom field  in the FRONTEND -The 4 values appear in filter and i select only one each time to test 1) if I don't select the first value and select other item , it is ok product item appear relatif to the value , filter apply )  2) if i select the first value ( default value) , all the products appear ( no filter apply) in a way select no item behave like select the item value which is also the default value  regard's")* was created by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.5.17

Hi
in the BACKEND
-I create a custom field that contain 4 values .
-This custom field has a default value .
-i create 5 product and each contain only one of the 2 values / 4 values
-i create one filter using this custom field
-i create one module filter using this custom field

in the FRONTEND
-The 4 values appear in filter and i select only one each time to test
1) if I don't select the first value and select other item , it is ok
product item appear relatif to the value , filter apply )

2) if i select the first value ( default value) , all the products appear ( no filter apply)
in a way select no item behave like select the item value which is also the default value

regard's

Last edit: 11 years 6 months ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzY3NDEtbW9kdWxlLWZpbHRlci1maXJzdC12YWx1ZS1maWx0ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

11 years 6 months ago [\#200557](#200557) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[module filter first value/filter](/forum/3-bug-report/876741-module-filter-first-value-filter#200557 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.17  Hi in the BACKEND -I create a custom field that contain 4 values . -This custom field has a default value . -i create 5 product and each contain only one of the 2 values / 4 values -i create one filter using this custom field -i create one module filter using this custom field  in the FRONTEND -The 4 values appear in filter and i select only one each time to test 1) if I don't select the first value and select other item , it is ok product item appear relatif to the value , filter apply )  2) if i select the first value ( default value) , all the products appear ( no filter apply) in a way select no item behave like select the item value which is also the default value  regard's")*

Hi,

Please provide:
- a screenshot of the options of the field
- a screenshot of the options of the filter
- a screenshot of the options of the module
- a link to the product page so that we can reproduce the problem

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzY3NDEtbW9kdWxlLWZpbHRlci1maXJzdC12YWx1ZS1maWx0ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

11 years 6 months ago [\#200765](#200765) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[module filter first value/filter](/forum/3-bug-report/876741-module-filter-first-value-filter#200765 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.17  Hi in the BACKEND -I create a custom field that contain 4 values . -This custom field has a default value . -i create 5 product and each contain only one of the 2 values / 4 values -i create one filter using this custom field -i create one module filter using this custom field  in the FRONTEND -The 4 values appear in filter and i select only one each time to test 1) if I don't select the first value and select other item , it is ok product item appear relatif to the value , filter apply )  2) if i select the first value ( default value) , all the products appear ( no filter apply) in a way select no item behave like select the item value which is also the default value  regard's")*

Hi,

The issue is that you use the value "0" for the first value of your custom field. Zero is interpreted as nothing and thus the system doesn't behave properly and think that you didn't select anything.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzY3NDEtbW9kdWxlLWZpbHRlci1maXJzdC12YWx1ZS1maWx0ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")**
- [![lionel75's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11856-lionel75 "View lionel75's Profile") Topic Author
- [ Offline](/forum/user/11856-lionel75)

Less More

- Posts: 846
- Thank you received: 92
-
-

11 years 6 months ago -  11 years 6 months ago [\#200793](#200793) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[module filter first value/filter](/forum/3-bug-report/876741-module-filter-first-value-filter#200793 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.17  Hi in the BACKEND -I create a custom field that contain 4 values . -This custom field has a default value . -i create 5 product and each contain only one of the 2 values / 4 values -i create one filter using this custom field -i create one module filter using this custom field  in the FRONTEND -The 4 values appear in filter and i select only one each time to test 1) if I don't select the first value and select other item , it is ok product item appear relatif to the value , filter apply )  2) if i select the first value ( default value) , all the products appear ( no filter apply) in a way select no item behave like select the item value which is also the default value  regard's")*

Thank's a lot . the custom field edit mode has no helper icon ... does this is documented ?
TAKE CARE
If i have for one field 0 ( index) , value1 and change it to 2 , value1
Then for each product ; the value value1 ll be change to old / past index values 0 .
so you have to change it index 0 to value1 .
Mass action can be use to update the change in an automatic way ....is very nice in this case
Regard's

Last edit: 11 years 6 months ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzY3NDEtbW9kdWxlLWZpbHRlci1maXJzdC12YWx1ZS1maWx0ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

11 years 6 months ago [\#200824](#200824) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[module filter first value/filter](/forum/3-bug-report/876741-module-filter-first-value-filter#200824 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.17  Hi in the BACKEND -I create a custom field that contain 4 values . -This custom field has a default value . -i create 5 product and each contain only one of the 2 values / 4 values -i create one filter using this custom field -i create one module filter using this custom field  in the FRONTEND -The 4 values appear in filter and i select only one each time to test 1) if I don't select the first value and select other item , it is ok product item appear relatif to the value , filter apply )  2) if i select the first value ( default value) , all the products appear ( no filter apply) in a way select no item behave like select the item value which is also the default value  regard's")*

The custom field documentation is available here:
[ www.hikashop.com/support/support/documen...shop-field-form.html](https://www.hikashop.com/support/support/documentation/42-hikashop-field-form.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzY3NDEtbW9kdWxlLWZpbHRlci1maXJzdC12YWx1ZS1maWx0ZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.097 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
