Custom fields not populated correctly in variants!

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
3 years 10 months ago #320828

-- HikaShop version -- : 4.3.0
-- Joomla version -- : latest
-- PHP version -- : 7.2
-- Browser(s) name and version -- : All

I have discovered that custom fields are not getting repopulated within the variants of the product.
When you save the variant the custom fields default back to the first custom field values. When you save a variant with a different set of custom fields the values save to the database okay, but the values aren't brought back to that variant, it brings the first one that was done. So if you go in to variant number 3 the custom fields are now reset and will be updated incorrectly if you save that variant, also if you go in to the variant and come out to the main product and save the product that variant gets updated with the incorrect custom field information...

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

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
3 years 10 months ago #320895

Hi,

I tried to reproduce the issue on my end, but I'm not able to.
When I edit a variant for the first time, the custom field is always empty. And if I edit a variant for which I already have a value in the custom field, I get that value in the custom field.
And when I enter a value in the custom field, whether it is for a new variant or not, and save the variant, I do get the value saved and it appears in the custom field after the save too for that variant.

Could you maybe provide some screenshots and step by step instructions to reproduce the problem ?
Do you have many custom product fields ?
Maybe a backend access will be necessary to reproduce the issue as I'm thinking it might be something linked with the variant not being saved because a required custom field is not filled in or something and it might not be for the custom field you're doing your test on. If you need to provide the access privately, you can do so via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
3 years 10 months ago #320950

Hi Nicolas,
It's still doing it. If I add weights to the variant and save, it's overwriting the previous values for the custom fields as this is what i has brought in on loading the variant. Here are the screen shots.

Effectively this means I have to set the custom fields again each time I make an amendment to the variant.

Thanks

Ian

Attachments:

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

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
3 years 10 months ago #320966

Hi,

Could you provide a screenshot of the settings of the custom field ? Since I'm not able to reproduce the issue on my end, maybe it's because it only happens in some rare cases based on some combination of settings.

The following user(s) said Thank You: ianspeed

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

  • Posts: 165
  • Thank you received: 7
  • Hikashop Essential
3 years 10 months ago #320973

The problem is the last custom field "Size only", it gets updated with the generic data from the product, ie. the default value (12x17"). The custom field keeps reverting back to 12x17" every time.

I can see when you have been testing because you have changed the custom fields and they show on the front end.
I have sent you a video as I could not upload it here. It shows the error happening.

It appears that the field is using the default value form the custom field for some reason.

So whatever I set the "size only" custom field to in the variant, it always reverts back to the default value (12x17") of the custom field when you save.


Thanks

Ian

Attachments:

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

Time to create page: 0.081 seconds
Powered by Kunena Forum