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

#   Custom fields zone - filter

##

- **[Vorov](/forum/user/34642-vorov "View Vorov's Profile")**
- [![Vorov's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34642.gif)](/forum/user/34642-vorov "View Vorov's Profile") Topic Author
- [ Offline](/forum/user/34642-vorov)

Less More

- Posts: 37
- Thank you received: 0
-
-

12 years 1 week ago -  12 years 1 week ago [\#178899](#178899) by [Vorov](/forum/user/34642-vorov "View Vorov's Profile")  *[Custom fields zone - filter](/forum/45-filters-search/872894-custom-fields-zone-filter#178899 "-- HikaShop version -- : 2.3.4. -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : comodo dragon  Hi In additional fields were created paragraph zone. (images 001) In the filter, chose a single drop-down list. (image 002) Apply on - costom&#95;feilds. Custom fields - my zone (image 001) On the website filter does not show the list of zones. It is possible to solve the problem?")* was created by *[Vorov](/forum/user/34642-vorov "View Vorov's Profile")*

-- HikaShop version -- : 2.3.4.
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : comodo dragon

Hi
In additional fields were created paragraph zone. (images 001)
In the filter, chose a single drop-down list. (image 002) Apply on - costom_feilds. Custom fields - my zone (image 001)
On the website filter does not show the list of zones.
It is possible to solve the problem?

- [ ![001.jpg](/forum/attachment/20602) ](/forum/attachment/20602 "001.jpg") [ ](/forum/attachment/20602?download=1 "001.jpg")
- [ ![002.jpg](/forum/attachment/20603) ](/forum/attachment/20603 "002.jpg") [ ](/forum/attachment/20603?download=1 "002.jpg")
- [ ![003.jpg](/forum/attachment/20604) ](/forum/attachment/20604 "003.jpg") [ ](/forum/attachment/20604?download=1 "003.jpg")

Last edit: 12 years 1 week ago by [Vorov](/forum/user/34642-vorov "View Vorov's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 week ago [\#179034](#179034) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom fields zone - filter](/forum/45-filters-search/872894-custom-fields-zone-filter#179034 "-- HikaShop version -- : 2.3.4. -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : comodo dragon  Hi In additional fields were created paragraph zone. (images 001) In the filter, chose a single drop-down list. (image 002) Apply on - costom&#95;feilds. Custom fields - my zone (image 001) On the website filter does not show the list of zones. It is possible to solve the problem?")*

Hi,

Do you have some zones in the "Shipping zones".
Because you are not listing countries or states ; you are listing the zone in the "shipping zones" type.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Vorov](/forum/user/34642-vorov "View Vorov's Profile")**
- [![Vorov's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34642.gif)](/forum/user/34642-vorov "View Vorov's Profile") Topic Author
- [ Offline](/forum/user/34642-vorov)

Less More

- Posts: 37
- Thank you received: 0
-
-

12 years 1 week ago [\#179039](#179039) by [Vorov](/forum/user/34642-vorov "View Vorov's Profile")  Replied by *[Vorov](/forum/user/34642-vorov "View Vorov's Profile")* on topic *[Custom fields zone - filter](/forum/45-filters-search/872894-custom-fields-zone-filter#179039 "-- HikaShop version -- : 2.3.4. -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : comodo dragon  Hi In additional fields were created paragraph zone. (images 001) In the filter, chose a single drop-down list. (image 002) Apply on - costom&#95;feilds. Custom fields - my zone (image 001) On the website filter does not show the list of zones. It is possible to solve the problem?")*

Yes, multiple values I have completed.

- [ ![sdfsdff.png](/forum/attachment/20620) ](/forum/attachment/20620 "sdfsdff.png") [ ](/forum/attachment/20620?download=1 "sdfsdff.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 week ago [\#179077](#179077) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom fields zone - filter](/forum/45-filters-search/872894-custom-fields-zone-filter#179077 "-- HikaShop version -- : 2.3.4. -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : comodo dragon  Hi In additional fields were created paragraph zone. (images 001) In the filter, chose a single drop-down list. (image 002) Apply on - costom&#95;feilds. Custom fields - my zone (image 001) On the website filter does not show the list of zones. It is possible to solve the problem?")*

Hi,

Thanks for the report.
I reproduced the issue and I made a fix.
In the file "administrator/components/com_hikashop/classes/filter.php" please replace Code:

if(!empty($field-&gt;field_value)){ $field-&gt;field_value=explode("\n", $field-&gt;field_value); $unset=array(); foreach($field-&gt;field_value as $key =&gt; $val){ $temp=explode("::", $val); if(!empty($datas['products']) &amp;&amp; !in_array($temp[0],$values)){ $unset[]=$key; }else{ $field-&gt;field_value[$key]=array($temp[0],$temp[1]); } } if(!empty($unset)){ foreach($unset as $u){ unset($field-&gt;field_value[$u]); } } }

By Code:

if(!empty($field-&gt;field_value)){ $field-&gt;field_value=explode("\n", $field-&gt;field_value); $unset=array(); foreach($field-&gt;field_value as $key =&gt; $val){ $temp = explode("::", $val); if(!empty($datas['products']) &amp;&amp; !in_array($temp[0],$values)){ $unset[]=$key; }else{ $field-&gt;field_value[$key]=array($temp[0],$temp[1]); } } if(!empty($unset)){ foreach($unset as $u){ unset($field-&gt;field_value[$u]); } } } else if($field-&gt;field_type == 'zone') { $fieldClass = hikashop_get('class.field'); if(is_string($field-&gt;field_options)) $field-&gt;field_options = unserialize($field-&gt;field_options); $fields = array($field); $fieldClass-&gt;handleZone($fields, false, null); $values = array(); foreach($field-&gt;field_value as $k =&gt; $obj) { $values[] = array( $k, $obj-&gt;value ); } $field-&gt;field_value = $values; }

It will load the zone values for the custom field and display them.
I test it in my local websites and the filters are working good.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Vorov](/forum/user/34642-vorov "View Vorov's Profile")

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

- **[Vorov](/forum/user/34642-vorov "View Vorov's Profile")**
- [![Vorov's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34642.gif)](/forum/user/34642-vorov "View Vorov's Profile") Topic Author
- [ Offline](/forum/user/34642-vorov)

Less More

- Posts: 37
- Thank you received: 0
-
-

12 years 1 week ago [\#179083](#179083) by [Vorov](/forum/user/34642-vorov "View Vorov's Profile")  Replied by *[Vorov](/forum/user/34642-vorov "View Vorov's Profile")* on topic *[Custom fields zone - filter](/forum/45-filters-search/872894-custom-fields-zone-filter#179083 "-- HikaShop version -- : 2.3.4. -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : comodo dragon  Hi In additional fields were created paragraph zone. (images 001) In the filter, chose a single drop-down list. (image 002) Apply on - costom&#95;feilds. Custom fields - my zone (image 001) On the website filter does not show the list of zones. It is possible to solve the problem?")*

Thank you! You are God in programming. :woohoo: :evil:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3Mjg5NC1jdXN0b20tZmllbGRzLXpvbmUtZmlsdGVyP3RtcGw9bWFya2Rvd24=) 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.064 seconds

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