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

#   Custom fields errors

##

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago [\#195695](#195695) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#195695 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")* was created by *[filiar](/forum/user/33070-filiar "View filiar's Profile")*

-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.16

HI,

I've noticed the following errors concerning product custom fields:

1. If a custom field (in my case order field) is assigned to a **single product** and is marked as required, an required field error is displayed for **all the products** no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.

2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB

Regards!

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 7 months ago [\#195696](#195696) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#195696 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hello,
1. 2. Can you give me more information about the error and the issue that you are having and also about how you configured your custom field through some screenshots ?
Thanks.

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago -  11 years 7 months ago [\#195737](#195737) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#195737 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

1. New required **order** custom field "Начален час" is created **for the product** 'Детско парти'
2. **Another product** 'План сергия' **in totaly different category** is being ordered buth the process can't be completed because the required field error is displayed for the custom field "Начален час". This field is not even present in the form itself.

Custom field creation

[ ![1&#95;2015-03-21.png](/forum/attachment/23244) ](/forum/attachment/23244 "1&#95;2015-03-21.png")

The product and it's category that the field is created for

[ ![1a&#95;2015-03-21.png](/forum/attachment/23249) ](/forum/attachment/23249 "1a&#95;2015-03-21.png")

On ordering another totaly different product an required error is displayed for the custom field "Начален час". This custom field is not present in the form

[ ![2&#95;2015-03-21.png](/forum/attachment/23245) ](/forum/attachment/23245 "2&#95;2015-03-21.png")

And the ordered product is not even in the same category as the product that the custom field is for

[ ![2a&#95;2015-03-21.png](/forum/attachment/23248) ](/forum/attachment/23248 "2a&#95;2015-03-21.png")

Regards!

- [ ![1&#95;2015-03-21.png](/forum/attachment/23244) ](/forum/attachment/23244 "1&#95;2015-03-21.png") [ ](/forum/attachment/23244?download=1 "1&#95;2015-03-21.png")
- [ ![2&#95;2015-03-21.png](/forum/attachment/23245) ](/forum/attachment/23245 "2&#95;2015-03-21.png") [ ](/forum/attachment/23245?download=1 "2&#95;2015-03-21.png")
- [ ![2a&#95;2015-03-21.png](/forum/attachment/23248) ](/forum/attachment/23248 "2a&#95;2015-03-21.png") [ ](/forum/attachment/23248?download=1 "2a&#95;2015-03-21.png")
- [ ![1a&#95;2015-03-21.png](/forum/attachment/23249) ](/forum/attachment/23249 "1a&#95;2015-03-21.png") [ ](/forum/attachment/23249?download=1 "1a&#95;2015-03-21.png")

Last edit: 11 years 7 months ago by [filiar](/forum/user/33070-filiar "View filiar's Profile").

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago -  11 years 7 months ago [\#195738](#195738) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#195738 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

About the second bug.

I will use the same custom field to describe it.

[ ![1&#95;2015-03-21-2.png](/forum/attachment/23250) ](/forum/attachment/23250 "...15-03-21-2.png")

So I would like to assign the field to category and not to the single product. I delete the product(s) that the field has been assigned to and choose the category.

[ ![5&#95;2015-03-21.png](/forum/attachment/23251) ](/forum/attachment/23251 "5&#95;2015-03-21.png")

After the save has successfuly been done no category is present in the edit form (although it exists in DB) and the products are not deleted.

[ ![6&#95;2015-03-21.png](/forum/attachment/23252) ](/forum/attachment/23252 "6&#95;2015-03-21.png")

- [ ![1&#95;2015-03-21-2.png](/forum/attachment/23250) ](/forum/attachment/23250 "...15-03-21-2.png") [ ](/forum/attachment/23250?download=1 "...15-03-21-2.png")
- [ ![5&#95;2015-03-21.png](/forum/attachment/23251) ](/forum/attachment/23251 "5&#95;2015-03-21.png") [ ](/forum/attachment/23251?download=1 "5&#95;2015-03-21.png")
- [ ![6&#95;2015-03-21.png](/forum/attachment/23252) ](/forum/attachment/23252 "6&#95;2015-03-21.png") [ ](/forum/attachment/23252?download=1 "6&#95;2015-03-21.png")

Last edit: 11 years 7 months ago by [filiar](/forum/user/33070-filiar "View filiar's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#195784](#195784) 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 errors](/forum/27-checkout/875842-custom-fields-errors#195784 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

I'm not able to reproduce your first issue but I could reproduce the second.
I have already propose some modifications in the namebox system (that I use in HikaMarket) but HikaShop does not have them ; So I will force the inclusion of my modifications so the custom fields will avoid this issue.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#195935](#195935) 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 errors](/forum/27-checkout/875842-custom-fields-errors#195935 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

About the category issue ; I know that we got a problem with the category namebox which provided the "category_namekey" instead of the "category_id" but you shouldn't have the issue in the latest package.

For the product issue, here a little patch which will help you to fix it before the next release.
Edit the file "administrator/components/com_hikashop/classes/field.php" and replace Code:

function saveForm() { $field = new stdClass(); $field-&gt;field_id = hikashop_getCID('field_id');

Into Code:

function saveForm() { $field = new stdClass(); $field-&gt;field_id = hikashop_getCID('field_id'); $field-&gt;field_products = '';

So you will be able to remove the "products" from a custom field.

Regards,

---

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

The following user(s) said Thank You: [JoseAlvarez](/forum/user/36507-josealvarez "View JoseAlvarez's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 7 months ago [\#196036](#196036) by [JoseAlvarez](/forum/user/36507-josealvarez "View JoseAlvarez's Profile")  Replied by *[JoseAlvarez](/forum/user/36507-josealvarez "View JoseAlvarez's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196036 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

I have similar problem and I added the line
Code:

$field-&gt;field_products = '';

after line 1084 in file '/administrator/components/com_hikashop/classes/field.php'. It seems the only difference between both pieces of code but there is no change when I access custom field section:

[ ![custom&#95;field&#95;bug.jpg](/forum/attachment/23305) ](/forum/attachment/23305 "...&#95;field&#95;bug.jpg")

Maybe I am wrong?

Regards

- [ ![custom&#95;field&#95;bug.jpg](/forum/attachment/23305) ](/forum/attachment/23305 "...&#95;field&#95;bug.jpg") [ ](/forum/attachment/23305?download=1 "...&#95;field&#95;bug.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#196040](#196040) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196040 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

What do you mean ?
The issue reported on this thread was about the deletion of categories/products selected in custom fields. Not about selecting categories/products in custom fields.

When you click on that field, you should be able to select the category you want. Isn't that what you get ?

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago -  11 years 7 months ago [\#196090](#196090) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196090 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

the patch affects deletion of products. Thank you for that, Jerome. This is one of the issues.

The second one is that in JoseAlvarez, post. And it is that **selected categories are not visible** after submission. This issue is not affected by that patch and still no selected categories are visible (after submission).

But the one that is most impotrant to me is the first issue - the issue with required custom fields validation. As far as for some orders there are required fields that must not be left empty, this prevents all other prodicts from being ordered.

This is of **huge importance**. If required custom field is added the shop becomes unusable.

Jerome, You already have my admin credentials (in P.M.) but I may resend them again if needed. Could you debug the problem please.

Last edit: 11 years 7 months ago by [filiar](/forum/user/33070-filiar "View filiar's Profile").

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago [\#196092](#196092) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196092 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Or if this issue is not of the Jeromes responcibilities I may send them to someone else from the support team of course.

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago [\#196108](#196108) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196108 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

There is some debug scenario info:

- custom item column name order_start_hour ([ madein-bg.com/administrator/index.php?op...=field&amp;task=edit&amp;cid](https://madein-bg.com/administrator/index.php?option=com_hikashop&ctrl=field&task=edit&cid)[]=63)
- item that doesn't have this custom item assigned but an required field error is shown - [ madein-bg.com/%D0%B7%D0%B0%D0%BD%D0%B0%D...%D1%83%D0%BD%D0%B0-2](https://madein-bg.com/%D0%B7%D0%B0%D0%BD%D0%B0%D1%8F%D1%82%D1%87%D0%B8%D0%B9%D1%81%D1%82%D0%B2%D0%BE/%D0%B3%D0%B8%D0%BF%D1%81%D0%BE%D0%B2%D0%B0-%D1%84%D0%B8%D0%B3%D1%83%D1%80%D0%BA%D0%B0-%D0%BB%D1%83%D0%BD%D0%B0-2)

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 7 months ago [\#196114](#196114) by [JoseAlvarez](/forum/user/36507-josealvarez "View JoseAlvarez's Profile")  Replied by *[JoseAlvarez](/forum/user/36507-josealvarez "View JoseAlvarez's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196114 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

> nicolas wrote: Hi,
>
> What do you mean ?
> The issue reported on this thread was about the deletion of categories/products selected in custom fields. Not about selecting categories/products in custom fields.
>
> When you click on that field, you should be able to select the category you want. Isn't that what you get ?

Hi,
I see the matter is different. I am sorry. My problem is, also, about custom field restrictions. When I create a custom field for products table, I can select which categories will include that custom field (ex. Colors for a car, size for clothes, but not both custom fields for both products, just one for each one). Then I save the new custom field. If I access to modify that custom field, restrictions category field is empty (as you can see at above picture). So, when I change anything I must re-enter the restrinctions category again.

Regards

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago [\#196119](#196119) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196119 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Yes. That's it - the same to me. But in fact the category is actualy saved in DB. It is just not visible.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#196199](#196199) 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 errors](/forum/27-checkout/875842-custom-fields-errors#196199 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

Please check you right have the code Code:

if(@$this-&gt;field-&gt;field_categories == 'all') $this-&gt;field-&gt;field_categories = ''; echo $this-&gt;nameboxType-&gt;display( 'category', explode(',',trim(@$this-&gt;field-&gt;field_categories,',')), hikashopNameboxType::NAMEBOX_MULTIPLE, 'category', array( 'delete' =&gt; true, 'default_text' =&gt; '&lt;em&gt;'.JText::_('HIKA_NONE').'&lt;/em&gt;', ) );

In the file "administrator/components/com_hikashop/views/field/tmpl/form.php".
I think that you do not have the line Code:

explode(',',trim(@$this-&gt;field-&gt;field_categories,',')),

We already have that modification in HikaShop for the next release ; I think that's why I wasn't able to reproduce your issue.

Regards,

---

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

The following user(s) said Thank You: [JoseAlvarez](/forum/user/36507-josealvarez "View JoseAlvarez's Profile")

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago [\#196234](#196234) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196234 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Thank you.

That patch fixed the category issue.

Could you tell me where I could find the validation code for the required custom fields, so that I may debug it in my project.

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#196310](#196310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196310 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

The required option for custom order fields doesn't support yet the restrictions on products and categories as this was only added recently.
If that's something you need, the simplest would be to use instead custom fields of the table "item" which will display on the product page and will have their required option work properly.
If you want to debug, you can look at the getInput function of the file administrator/components/com_hikashop/classes/field.php
But it won't be just one or two lines to add there as there is no code yet there to handle the required value based on the product/category restrictions of the custom order fields.

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

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

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

11 years 7 months ago [\#196323](#196323) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  Replied by *[filiar](/forum/user/33070-filiar "View filiar's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#196323 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Thank You, Nicolas!

I am not sure if item custom fields would be appropriate, because it's user information that has to be added (for example the date and time of an ordered birthday party).

But I hope this functionality is in your TODO list and may soon be available.

Regards!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#196389](#196389) 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 errors](/forum/27-checkout/875842-custom-fields-errors#196389 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

Yes, the feature is in the HikaShop TODO list ![:)](/media/kunena/emoticons/8.png ":)")

Regards,

---

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

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

- **[cla.gamb](/forum/user/36283-cla-gamb "View cla.gamb's Profile")**
- [![cla.gamb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/quiet.jpg)](/forum/user/36283-cla-gamb "View cla.gamb's Profile")
- [ Offline](/forum/user/36283-cla-gamb)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 6 months ago [\#199338](#199338) by [cla.gamb](/forum/user/36283-cla-gamb "View cla.gamb's Profile")  Replied by *[cla.gamb](/forum/user/36283-cla-gamb "View cla.gamb's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#199338 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

> filiar wrote: -- HikaShop version -- : 2.4.0
> \-- HikaMarket version -- : 1.6.1
> \-- Joomla version -- : 3.3.6
> \-- PHP version -- : 5.4.16
>
> 1\. If a custom field (in my case order field) is assigned to a **single product** and is marked as required, an required field error is displayed for **all the products** no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.

Hi,

I have exactly the same problem.
I just updated at the last version of HikaShop Business: 2.4.0 but nothing has changed and shop is still not usable...

Should I open a new topic?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NTg0Mi1jdXN0b20tZmllbGRzLWVycm9ycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 6 months ago [\#199344](#199344) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields errors](/forum/27-checkout/875842-custom-fields-errors#199344 "-- HikaShop version -- : 2.4.0 -- HikaMarket version -- : 1.6.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.16  HI,  I've noticed the following errors concerning product custom fields:  1. If a custom field (in my case order field) is assigned to a single product and is marked as required, an required field error is displayed for all the products no matter that this custom field is assigned to a single product. And no matter that the custom field itself is not displayed in other products order form.  2. In HS-&gt;Config-&gt;display-&gt;customFields-&gt;someCustomField the assigned categories for that custom field are not visible although they exist in DB  Regards!")*

Hi,

No need to open a new thread.
I already replied to that issue in a previous message of this thread:

> Hi,
>
> The required option for custom order fields doesn't support yet the restrictions on products and categories as this was only added recently.
> If that's something you need, the simplest would be to use instead custom fields of the table "item" which will display on the product page and will have their required option work properly.
> If you want to debug, you can look at the getInput function of the file administrator/components/com\_hikashop/classes/field.php
> But it won't be just one or two lines to add there as there is no code yet there to handle the required value based on the product/category restrictions of the custom order fields.

So the only solution I can recommend for now is to use a custom field of the table "item" in such case. It will work properly for your needs but will display on the product page instead of the checkout.

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

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

[](#top)
