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

#   Value of Extra Field get's lost, as soon as I save a product

##

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

Less More

- Posts: 45
- Thank you received: 3
-
-

8 years 8 months ago [\#290333](#290333) by [bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")  *[Value of Extra Field get's lost, as soon as I save a product](/forum/32-content-creation/894256-value-of-extra-field-gets-lost-as-soon-as-i-save-a-product#290333 "-- HikaShop version -- : 3.4.0 or 3.3.0 Business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0.28  Hello  When I make a change to a product, the value of one of the extra fields get's lost. I can't save it anymore, when i fill it in new. the value just don't get saved.  On the Version that is live is Business Hika 3.3.0 - I tested it local with 3.4.0, but have the same problem.  This field &quot;m2 per package&quot; is very important, then because of this, it shows me different price in the product (instead of piece, it shows m2 price)  Because it is an backend Problem, i don't think it has something todo with my template overrides.  for any tipp I'm very thankful - it is quite urgent! best regards, Maya")* was created by *[bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")*

-- HikaShop version -- : 3.4.0 or 3.3.0 Business
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.0.28

Hello

When I make a change to a product, the value of one of the extra fields get's lost. I can't save it anymore, when i fill it in new. the value just don't get saved.

On the Version that is live is Business Hika 3.3.0 - I tested it local with 3.4.0, but have the same problem.

This field "m2 per package" is very important, then because of this, it shows me different price in the product
(instead of piece, it shows m2 price)

Because it is an backend Problem, i don't think it has something todo with my template overrides.

for any tipp I'm very thankful - it is quite urgent!
best regards,
Maya

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0MjU2LXZhbHVlLW9mLWV4dHJhLWZpZWxkLWdldHMtbG9zdC1hcy1zb29uLWFzLWktc2F2ZS1hLXByb2R1Y3Q/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: 86587
- Thank you received: 14325
-
-

8 years 8 months ago [\#290334](#290334) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Value of Extra Field get's lost, as soon as I save a product](/forum/32-content-creation/894256-value-of-extra-field-gets-lost-as-soon-as-i-save-a-product#290334 "-- HikaShop version -- : 3.4.0 or 3.3.0 Business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0.28  Hello  When I make a change to a product, the value of one of the extra fields get's lost. I can't save it anymore, when i fill it in new. the value just don't get saved.  On the Version that is live is Business Hika 3.3.0 - I tested it local with 3.4.0, but have the same problem.  This field &quot;m2 per package&quot; is very important, then because of this, it shows me different price in the product (instead of piece, it shows m2 price)  Because it is an backend Problem, i don't think it has something todo with my template overrides.  for any tipp I'm very thankful - it is quite urgent! best regards, Maya")*

Hi,

If it's urgent, then please use our contact form to provide:
- a backend access
- a FTP access
- a link to this thread
- precise instructions to reproduce the issue (name of the custom field ?)
That way, we can have a look directly and see if there is a bug or a problem with some of your settings.

The following user(s) said Thank You: [bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")

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

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

Less More

- Posts: 45
- Thank you received: 3
-
-

8 years 7 months ago [\#290371](#290371) by [bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")  Replied by *[bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")* on topic *[Value of Extra Field get's lost, as soon as I save a product](/forum/32-content-creation/894256-value-of-extra-field-gets-lost-as-soon-as-i-save-a-product#290371 "-- HikaShop version -- : 3.4.0 or 3.3.0 Business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0.28  Hello  When I make a change to a product, the value of one of the extra fields get's lost. I can't save it anymore, when i fill it in new. the value just don't get saved.  On the Version that is live is Business Hika 3.3.0 - I tested it local with 3.4.0, but have the same problem.  This field &quot;m2 per package&quot; is very important, then because of this, it shows me different price in the product (instead of piece, it shows m2 price)  Because it is an backend Problem, i don't think it has something todo with my template overrides.  for any tipp I'm very thankful - it is quite urgent! best regards, Maya")*

Thanks, I just did that

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

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

Less More

- Posts: 45
- Thank you received: 3
-
-

8 years 7 months ago [\#290428](#290428) by [bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")  Replied by *[bytekultur](/forum/user/4243-bytekultur "View bytekultur's Profile")* on topic *[Value of Extra Field get's lost, as soon as I save a product](/forum/32-content-creation/894256-value-of-extra-field-gets-lost-as-soon-as-i-save-a-product#290428 "-- HikaShop version -- : 3.4.0 or 3.3.0 Business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0.28  Hello  When I make a change to a product, the value of one of the extra fields get's lost. I can't save it anymore, when i fill it in new. the value just don't get saved.  On the Version that is live is Business Hika 3.3.0 - I tested it local with 3.4.0, but have the same problem.  This field &quot;m2 per package&quot; is very important, then because of this, it shows me different price in the product (instead of piece, it shows m2 price)  Because it is an backend Problem, i don't think it has something todo with my template overrides.  for any tipp I'm very thankful - it is quite urgent! best regards, Maya")*

I found the problem - but think it is a bug of the new version...

when I go to the extra field an tunr of the "display limited to...", then it works again.

its a little a shame, it use to work many years with that option on.
but happily the cusotmer can work for the moment ![;-)](/media/kunena/emoticons/24.png ";-)")

kind regards
Maya
[ ![field.jpg](/forum/attachment/43163) ](/forum/attachment/43163 "field.jpg")

- [ ![field.jpg](/forum/attachment/43163) ](/forum/attachment/43163 "field.jpg") [ ](/forum/attachment/43163?download=1 "field.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0MjU2LXZhbHVlLW9mLWV4dHJhLWZpZWxkLWdldHMtbG9zdC1hcy1zb29uLWFzLWktc2F2ZS1hLXByb2R1Y3Q/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: 86587
- Thank you received: 14325
-
-

8 years 7 months ago [\#290383](#290383) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Value of Extra Field get's lost, as soon as I save a product](/forum/32-content-creation/894256-value-of-extra-field-gets-lost-as-soon-as-i-save-a-product#290383 "-- HikaShop version -- : 3.4.0 or 3.3.0 Business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0.28  Hello  When I make a change to a product, the value of one of the extra fields get's lost. I can't save it anymore, when i fill it in new. the value just don't get saved.  On the Version that is live is Business Hika 3.3.0 - I tested it local with 3.4.0, but have the same problem.  This field &quot;m2 per package&quot; is very important, then because of this, it shows me different price in the product (instead of piece, it shows m2 price)  Because it is an backend Problem, i don't think it has something todo with my template overrides.  for any tipp I'm very thankful - it is quite urgent! best regards, Maya")*

Hi,

Thank you for the access.
Change the code: Code:

if(!isset($formData[$parent]) &#124;&#124; !in_array($formData[$parent], $field-&gt;field_options['parent_value'])) {

to:
Code:

$valid = true; if(isset($formData[$parent])){ if(is_array($formData[$parent])){ foreach($formData[$parent] as $selectedValue){ if(!in_array($selectedValue, $field-&gt;field_options['parent_value'])) $valid = false; } }else{ $valid = in_array($formData[$parent], $field-&gt;field_options['parent_value']); } } if(!isset($formData[$parent]) &#124;&#124; !$valid) {

in the file administrator/components/com_hikashop/classes/field.php and that will fix the problem.
We'll include the patch in the next version of HikaShop.

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

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