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

#   Req. Category Specific Custom Field Alway Required

##

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

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 5 months ago -  11 years 5 months ago [\#203584](#203584) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  *[Req. Category Specific Custom Field Alway Required](/forum/27-checkout/877304-req-category-specific-custom-field-alway-required#203584 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : None  We've have a custom order field setup set for a specific a category only.  It has worked fine since the site launched with 2.1.x a couple of years back.  However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.  If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).  Now if you add a product that the required field applies to, you can enter a value for the field and proceed. You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.  The cart apparently is keeping the &quot;required&quot; field value even thought it isn't being displayed any more.  We have plenty over orders where over the past 2 years that it worked just fine. That is the field only displayed and was only required when a product in the select category was in the order.  Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.  I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist. I thought it might related to another issue I saw here but apparently not.")* was created by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : None

We've have a custom order field setup set for a specific a category only.

It has worked fine since the site launched with 2.1.x a couple of years back.

However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.

If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).

Now if you add a product that the required field applies to, you can enter a value for the field and proceed.
You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.

The cart apparently is keeping the "required" field value even thought it isn't being displayed any more.

We have plenty over orders where over the past 2 years that it worked just fine.
That is the field only displayed and was only required when a product in the select category was in the order.

Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.

I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist.
I thought it might related to another issue I saw here but apparently not.

Last edit: 11 years 5 months ago by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzMwNC1yZXEtY2F0ZWdvcnktc3BlY2lmaWMtY3VzdG9tLWZpZWxkLWFsd2F5LXJlcXVpcmVkP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 5 months ago [\#203737](#203737) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Req. Category Specific Custom Field Alway Required](/forum/27-checkout/877304-req-category-specific-custom-field-alway-required#203737 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : None  We've have a custom order field setup set for a specific a category only.  It has worked fine since the site launched with 2.1.x a couple of years back.  However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.  If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).  Now if you add a product that the required field applies to, you can enter a value for the field and proceed. You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.  The cart apparently is keeping the &quot;required&quot; field value even thought it isn't being displayed any more.  We have plenty over orders where over the past 2 years that it worked just fine. That is the field only displayed and was only required when a product in the select category was in the order.  Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.  I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist. I thought it might related to another issue I saw here but apparently not.")*

Hi,

That problem is a known problem. The required option doesn't work well with custom order fields if they are restricted to categories/products as the required is enforced regardless of whether they are displayed or not on the checkout.

I however doubt that it worked before as the capability to restrict custom order fields to categories and products has only been added to HikaShop with the 2.4.0 version. Before, you couldn't restrict custom order fields to categories and products and thus that problem could not happen since the feature was not there at all.
You must be mistaking with either not having any category restriction on your fields before, or using custom item fields which could already be restricted to products and categories before.

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

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

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 5 months ago [\#203808](#203808) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[Req. Category Specific Custom Field Alway Required](/forum/27-checkout/877304-req-category-specific-custom-field-alway-required#203808 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : None  We've have a custom order field setup set for a specific a category only.  It has worked fine since the site launched with 2.1.x a couple of years back.  However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.  If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).  Now if you add a product that the required field applies to, you can enter a value for the field and proceed. You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.  The cart apparently is keeping the &quot;required&quot; field value even thought it isn't being displayed any more.  We have plenty over orders where over the past 2 years that it worked just fine. That is the field only displayed and was only required when a product in the select category was in the order.  Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.  I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist. I thought it might related to another issue I saw here but apparently not.")*

I believe I followed instructions from here on the forum to do it way back when. I'd have to hunt them down again as I don't think it was a post I contributed too. It was the first Hikashop site we did a 2+ years back but I would think modifications would have been in a view and not actual to a file on the server itself.

My only guess is the updates overwrote the modifications but if you are aware of the issue and working on it, then we can wait.

There are so few such orders where the products in question are ordered alone, it isn't a big deal at this time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzMwNC1yZXEtY2F0ZWdvcnktc3BlY2lmaWMtY3VzdG9tLWZpZWxkLWFsd2F5LXJlcXVpcmVkP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 5 months ago [\#203853](#203853) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Req. Category Specific Custom Field Alway Required](/forum/27-checkout/877304-req-category-specific-custom-field-alway-required#203853 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : None  We've have a custom order field setup set for a specific a category only.  It has worked fine since the site launched with 2.1.x a couple of years back.  However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.  If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).  Now if you add a product that the required field applies to, you can enter a value for the field and proceed. You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.  The cart apparently is keeping the &quot;required&quot; field value even thought it isn't being displayed any more.  We have plenty over orders where over the past 2 years that it worked just fine. That is the field only displayed and was only required when a product in the select category was in the order.  Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.  I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist. I thought it might related to another issue I saw here but apparently not.")*

If you did modifications to views to add that capability then it's possible that the update changed something which break your modifications. Not knowing what was modified, I can't say much.

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

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

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 5 months ago [\#203908](#203908) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[Req. Category Specific Custom Field Alway Required](/forum/27-checkout/877304-req-category-specific-custom-field-alway-required#203908 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : None  We've have a custom order field setup set for a specific a category only.  It has worked fine since the site launched with 2.1.x a couple of years back.  However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.  If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).  Now if you add a product that the required field applies to, you can enter a value for the field and proceed. You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.  The cart apparently is keeping the &quot;required&quot; field value even thought it isn't being displayed any more.  We have plenty over orders where over the past 2 years that it worked just fine. That is the field only displayed and was only required when a product in the select category was in the order.  Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.  I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist. I thought it might related to another issue I saw here but apparently not.")*

I've reviewed the checkout views and I don't see anything in any of the customization that are still there that might do this.

The view version actually got back to version 2.1.3 and 2.2.1, so a bit longer than I remembered.

There is a customization for "step" but I don't see anything that would deal with fields.
I would have expected it under custom_fields but that is stock.

Any idea other view where you think something like that might be? I just looked under checkout views as I didn't think it would be any where else.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzMwNC1yZXEtY2F0ZWdvcnktc3BlY2lmaWMtY3VzdG9tLWZpZWxkLWFsd2F5LXJlcXVpcmVkP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 5 months ago [\#203911](#203911) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Req. Category Specific Custom Field Alway Required](/forum/27-checkout/877304-req-category-specific-custom-field-alway-required#203911 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : None  We've have a custom order field setup set for a specific a category only.  It has worked fine since the site launched with 2.1.x a couple of years back.  However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.  If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).  Now if you add a product that the required field applies to, you can enter a value for the field and proceed. You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.  The cart apparently is keeping the &quot;required&quot; field value even thought it isn't being displayed any more.  We have plenty over orders where over the past 2 years that it worked just fine. That is the field only displayed and was only required when a product in the select category was in the order.  Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.  I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist. I thought it might related to another issue I saw here but apparently not.")*

Hi,

It could potentially be any file of the "checkout" view if it was done as a view customization.

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

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