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

#   Custom Fields in Different Categories

##

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

Less More

- Posts: 18
- Thank you received: 1
-
-

11 years 1 month ago [\#215006](#215006) by [ralfmason](/forum/user/28851-ralfmason "View ralfmason's Profile")  *[Custom Fields in Different Categories](/forum/25-install-update/879424-custom-fields-in-different-categories#215006 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Version 45.0.2454.99 m -- Error-message(debug-mod must be tuned on) -- : Error Please complete the Type field  Please complete the Milk Type field  Please complete the Pasteurised/Unpasteurised field  Please complete the Rennet field  Please complete the Country field  Please complete the Region field  Error Saving  No error message but since upgrading HikaShop custom fields are no longer working correctly. We have created 6 mandatory custom fields which apply to one category. However since upgrading HikaShop when we try and create a product in a different category we are prompted to enter values for the custom fields of the other category even though the custom fields do not appear on the form.")* was created by *[ralfmason](/forum/user/28851-ralfmason "View ralfmason's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : Version 45.0.2454.99 m
-- Error-message(debug-mod must be tuned on) -- : Error
Please complete the Type field

Please complete the Milk Type field

Please complete the Pasteurised/Unpasteurised field

Please complete the Rennet field

Please complete the Country field

Please complete the Region field

Error Saving

No error message but since upgrading HikaShop custom fields are no longer working correctly. We have created 6 mandatory custom fields which apply to one category. However since upgrading HikaShop when we try and create a product in a different category we are prompted to enter values for the custom fields of the other category even though the custom fields do not appear on the form.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTQyNC1jdXN0b20tZmllbGRzLWluLWRpZmZlcmVudC1jYXRlZ29yaWVzP3RtcGw9bWFya2Rvd24=) 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 1 month ago [\#215026](#215026) 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 in Different Categories](/forum/25-install-update/879424-custom-fields-in-different-categories#215026 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Version 45.0.2454.99 m -- Error-message(debug-mod must be tuned on) -- : Error Please complete the Type field  Please complete the Milk Type field  Please complete the Pasteurised/Unpasteurised field  Please complete the Rennet field  Please complete the Country field  Please complete the Region field  Error Saving  No error message but since upgrading HikaShop custom fields are no longer working correctly. We have created 6 mandatory custom fields which apply to one category. However since upgrading HikaShop when we try and create a product in a different category we are prompted to enter values for the custom fields of the other category even though the custom fields do not appear on the form.")*

Hi,

Thanks for the report.
In the file "administrator/components/com_hikashop/classes/product.php" please replace Code:

} else { if(!hikashop_acl('product/add')) return false; }

By Code:

} else { $oldProduct = new stdClass(); $oldProduct-&gt;categories = array(0); if(!empty($formProduct['categories'])) $oldProduct-&gt;categories = $formProduct['categories']; JArrayHelper::toInteger($oldProduct-&gt;categories); if(!hikashop_acl('product/add')) return false; }

It should fix your issue.
We will include that patch in the next HikaShop release.

Regards,

---

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

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

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

Less More

- Posts: 18
- Thank you received: 1
-
-

11 years 1 month ago [\#215138](#215138) by [ralfmason](/forum/user/28851-ralfmason "View ralfmason's Profile")  Replied by *[ralfmason](/forum/user/28851-ralfmason "View ralfmason's Profile")* on topic *[Custom Fields in Different Categories](/forum/25-install-update/879424-custom-fields-in-different-categories#215138 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Version 45.0.2454.99 m -- Error-message(debug-mod must be tuned on) -- : Error Please complete the Type field  Please complete the Milk Type field  Please complete the Pasteurised/Unpasteurised field  Please complete the Rennet field  Please complete the Country field  Please complete the Region field  Error Saving  No error message but since upgrading HikaShop custom fields are no longer working correctly. We have created 6 mandatory custom fields which apply to one category. However since upgrading HikaShop when we try and create a product in a different category we are prompted to enter values for the custom fields of the other category even though the custom fields do not appear on the form.")*

Thanks Jerome,

That seems to have fixed the issue.

Regards,

Ralf

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

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

[](#top)
