Images not corresponding to attributes
-
Hi David,
I am still testing the free version. Everything was working fine but after the SVI update for the latest version there are a few problems:
1. Thumbnails for all attributes are still showing after selecting a specific attribute. It should only show the images for that specific attribute.
2. The image showing in the lightbox is always the main image whatever the attribute selected. It should open the lightbox with the image selected by the attribute.
Any help?
Obrigado,
Paulo
-
Hi Paulo, ou olá!
Well, my guess is that your theme is not accepting my template files overwrite, and for that reason you see no changes.
AS explained in the FAQ, Themes that follow the default WooCommerce implementation will usually work with this plugin. However, some themes use an unorthodox method to add their own lightbox/slider, which breaks the hooks this plugin needs.I can still have a quick look to confirm this, just post here the link to the product.
Thanks,
DavidOlá David!
The theme used is Flatsome: http://flatsome.uxthemes.com/
My site is in maintenance mode but if you want to check I can disable it for a while.
Thanks,
PauloWould be better, so that I can give a better answer.
No problem: http://www.mundimoda.com
Hi,
I can see that all is working fine. I tested url (http://www.mundimoda.com/produto/porta-chaves-c-moedas-e-cartoes-rubre/)
What I can see is missing is the attributes/variations assgiment to the images.
Have you followed this steps in order to work?
https://wordpress.org/plugins/smart-variations-images/screenshots/Hi,
I now see what is happening. I am using the plugin WP All Import to bulk import products to the store and it is not assigning the images to the colors and sizes the right way. It is only assigning the first image correctly to its correspondent color in Woocommerce but it is not using the Product Gallery images to assign the right slug.
Any ideas how to solve this without having to manually choose all slugs image by image?
Thanks,
PauloGreat!
Can WP import assign custom values to custom fields?
Don’t forget to review once you have a opinion.Thanks,
DavidYes, the plugin uses custom fields. Please check the custom fields detected by the plugin and let me know what are the fields I need to populate with the data.
Obrigado!
I will make a review soon.
Paulo
Hi,
The custom field is “woosvi_slug” and is saved on the image ID the value to be stored should be the variation slug, example: “Blue Water” = “bluewater”, “bluewater” should be the value that is stored.
There should be no spaces.Olá David,
I have tried an import with that custom field but something is failing. I have some doubts.
First, I am not sure where is the variation slug in my WordPress backoffice. I can find “Name” and “URL” for the variations. Is the slug stored in the “URL” field?
Second, my import CSV file has a field with values like “CASTANHO” and “BOSQUE_C”. These values are in the “URL” field but in lowercase. Is your field case sensitive?
Last, there is actually just one value in the import file that has a space between strings. Will it break the process for all products and variations or will it affect only the product with that value?
Obrigado,
PauloHi,
First, I am not sure where is the variation slug in my WordPress backoffice. I can find “Name” and “URL” for the variations. Is the slug stored in the “URL” field?
– The variation slug is under Products > Attributes, when you Edit/quick edit the variation you can see the slug.
Second, my import CSV file has a field with values like “CASTANHO” and “BOSQUE_C”. These values are in the “URL” field but in lowercase. Is your field case sensitive?
– I convert all string to lowercase and remove all white space during the matching. I don’t see any issue arising from that.
Last, there is actually just one value in the import file that has a space between strings. Will it break the process for all products and variations or will it affect only the product with that value?
– It may affect the product in question only.
All the best,
DavidOlá David,
I tried with what I think are the variation slugs (please check) but it isn’t working.
I tried also with the “Nome” field value with no success.
I can tell that a manual select of values in the Product Gallery images to assign the right colors works fine.
Any suggestion?
Obrigado,
PauloHi,
Well, doing the mass import from what I see you are dealing with WPML also, so you must be careful, assign the original slug name and not the translated to the image. The custom field value is “woosvi_slug” = “a-folha”, this is correct if “a-folha” is the original language.
Olá David,
I am getting help from the support of WP All Import plugin but until now everything we tried didn’t work.
Right now I am thinking about the alternative solution that is manually editing all the Product Gallery images to assign the right colors. But this is very complicated because I have 1,010 images and it would take forever to do it. Until now I can only figure that it needs to be edited image by image after opening the product editor. Is there a easier way?
Thanks,
Paulo
Hi Paulo,
The code used to store the value is:
update_post_meta(ID_IMAGE, 'woosvi_slug', THE_SLUG);If you build an array, you can do something like this:
$arr = array( 0 => array( 'ID' => xx, //ID of the image 'woosvi-slug' => 'slug' //Slug of the variation ), 1 => array( 'ID' => xx, //ID of the image 'woosvi-slug' => 'slug' //Slug of the variation ) ); foreach ($arr as $key => $value) { update_post_meta($value['ID'], 'woosvi_slug', $value['woosvi-slug']); }WPML you must be careful, assign the original slug name and not the translated to the image.
The topic ‘Images not corresponding to attributes’ is closed to new replies.