Variants fields empty and dropdown custom fields

  • Posts: 117
  • Thank you received: 3
10 years 6 months ago #192342

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.38

Hi,
I've created a product, then I added variants to this product using a custom dropdown field. Variants are correctly created.

When I open any of the variants autogenerated, I see that every field is empty. Is that correct? Is that the way HikaShop is intended to work?

Also, the dropdown custom fields in the variants show me the first value of the list and that's bad 'cause everytime I must reassign those fields. Is that correct, a bug or something that could be improved?

Thanks in advice.

Last edit: 10 years 6 months ago by crealiagroup.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #192346

Hi,

By default a variant is an empty shell where none of the data is set.
And when the data is empty for a field of the variant, the system will use automatically the value of the main product.
If you fill the value of a field in a variant, then the system will use that value instead of the one of the main product.

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

  • Posts: 117
  • Thank you received: 3
10 years 6 months ago #192496

Ok Nicolas, that's good but as I said before if I have drop down fields, and I want to edit something else in the variant, I must also set again the correct value for all the dropdown fields. Is there a way to avoid that? Or could be improved in next releses?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #192507

Hi,

The default choice of your custom field should be a value with just a title like for example "please select something" and no value data.
That way, when you save a variant for something else you want to modify, the system will save an empty value in the field and the characteristic system will continue to use the main product value instead of the variant value.

Alternatively, you could also create a mass action which would be triggered after the product update with a filter to apply it only to the variants and an "update the values" action to set an empty value to the field. That way, regardless of how you configure the field or what you select in that field in the variants, the data of the field for the variants will always be empty.

So that's two solutions for you :)

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

  • Posts: 117
  • Thank you received: 3
10 years 6 months ago #192558

Thanks nicolas, first solution is better. Less resources for the server. :-)

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

Time to create page: 0.056 seconds
Powered by Kunena Forum