Home › Forums › WoodMart support forum › Where's variation gallery data?
Where's variation gallery data?
- This topic has 6 replies, 2 voices, and was last updated 5 years, 5 months ago by
Artem Temos.
-
AuthorPosts
-
September 25, 2019 at 3:53 pm #146618
horny_fungusParticipantHi, I am facing such issue – my products have a lot of variations. Most of these variations are supposed to have the same images. Unfortunately due to the way WooCommerce manages images I can’t assign images per attribute, each images for each variation should be assigned manually – this will take days of work. I was hoping to fix this via CSV export/import but I found that only main image is present in exported CSV, there’s no row for variation images in this CSV. I find this rather strange because in this CSV there are a lot of custom meta rows from Woodmart and plugins…All this meta is taken from postmeta table where I was able to find “woodmart_variation_gallery_data”. Can you tell me why it’s not imported along with other custom meta?
September 25, 2019 at 5:41 pm #146629
horny_fungusParticipantI still have no idea why default WC export doesn not include “woodmart_variation_gallery_data”, but I was able to export it via WP All Export plugin.
But to no avail…
“woodmart_variation_gallery_data” is stored in parent product data in rather complicated format like attributes. This makes impossible just copy-pasting variation gallery data from one variation to another.
– why did you choose to store it that way? why don’t you store it in each variation data instead of parent data, just like other image data is stored?
– can you please advice me the way how I can populate variation galleries not manually?September 26, 2019 at 6:06 am #146690
Artem TemosKeymasterHello,
We stored it for the parent product to improve the performance. Otherwise, we will have to loop through all the variation and it would be a bit slow for a large number of variation. And there are few more little issues with such an approach from the code side. So we decided to store this data in one place.
Kind Regards
September 26, 2019 at 9:50 am #146776
horny_fungusParticipantThank you for your reply. That makes sence…
But isn’t it looping through all variations anyway because each variation has it’s own main image?
I believe you know better, just wonna understand…
Nevertheless I (and supposedly others as well) have the problem with adding variation images. I have 1700+ variations, adding images manually would be a nightmare and adding via CSV is impossible.
Can you please think of some kind of solution for such cases?
I can imagine such solutions:
– adding some custom meta for each variation which will store it’s gallery and then this information will be gathered to parent meta via some function. This way we will be able to upload images via csv and performance won’t be hurt
– another solution is some sort of interface letting us to assign images to multile variations at once.
– and finally this can be solved by some sort of copy/paste button on the backend letting us clone variation images from one variation to anotherSeptember 26, 2019 at 3:29 pm #146791
Artem TemosKeymasterIt would be a different loop so it will be even worse.
Unfortunately, we don’t have ready code solution to your problems. It may be possible only with additional code customization that is out of our theme support scope.Kind Regards
September 26, 2019 at 3:38 pm #146870
horny_fungusParticipantGot it. Please think of implementing this in future, this will solve some sellers problem and make your theme better.
September 27, 2019 at 6:08 am #146939
Artem TemosKeymasterOK, thank you for the suggestion.
-
AuthorPosts
The topic ‘Where's variation gallery data?’ is closed to new replies.
- You must be logged in to create new topics. Login / Register