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

  • Posts: 45
  • Thank you received: 3
6 years 1 day ago #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 "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 or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
6 years 1 day ago #290334

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

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 3
6 years 17 hours ago #290371

Thanks, I just did that

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 3
6 years 8 hours ago #290428

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 ;-)

kind regards
Maya

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 11 months ago #290383

Hi,

Thank you for the access.
Change the code:

if(!isset($formData[$parent]) || !in_array($formData[$parent], $field->field_options['parent_value'])) {
to:
					$valid = true;
					if(isset($formData[$parent])){
						if(is_array($formData[$parent])){
							foreach($formData[$parent] as $selectedValue){
								if(!in_array($selectedValue, $field->field_options['parent_value']))
									$valid = false;
							}
						}else{
							$valid = in_array($formData[$parent], $field->field_options['parent_value']);
						}
					}

					if(!isset($formData[$parent]) || !$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 or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum