Home › Forums › WoodMart support forum › Bug AJAX preselect automatically a variation by default instead of the main im
Bug AJAX preselect automatically a variation by default instead of the main im
- This topic has 6 replies, 2 voices, and was last updated 3 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
May 6, 2021 at 3:41 pm #290215
lenamtlParticipantHi,
I found a bug
AJAX preselect automatically a product variation by default instead of the main image.
-I cannot give you access to the installation
-Yes I have disabled other extensions
-I’m not using any cache
-I’m have cleared the browser cache completely during my testsI’m using variation swatch image from your theme similare to the glassed demo but i’m not using the slider, I’m using the default hover to display.
To reproduce :
create new attribute and add item & attribute swatch image
create new variable product, add main product image, add all attribute, create product variation for all attibute, add image for variation and set the price
SaveWe now need to add a new variation image to an existing product variation
Go back to attibute, add a new item to the existing attibute we just created earlier, add an image swatch for this attribute.
Go back to product we just created earlier, add the new attriubute, create variation for all attribute, add the image for this variation and other info price etc.
SaveGo to the single product page we just created, we see the main product image only 1 second and it display by default the latest variation automatically is preselected but this should show the main image as we have not select any variation yet
The other bug is still not fixed
https://xtemos.com/forums/topic/bug-with-product-page-hover-variation-swatch-images/Hope you will fixed these 2 bugs soon.
May 7, 2021 at 6:24 am #290350
Artem TemosKeymasterHello,
We can’t reproduce this issue on our side. Could you please send us your website access or link to the page where we can see this? Or record a video that demonstrates this problem.
Kind Regards
May 27, 2021 at 12:45 am #295785
lenamtlParticipantI will record a video and do more investigation and get back to you asap
May 31, 2021 at 10:03 pm #296770
lenamtlParticipantHi,
I found the error in DB table ach_postmeta
So if I understand it correctly
the main product have 2 images 7000 is the main product image 7902 is th attribut image was silently added to the main product
a:1:{s:14:"7000";s:4:"7902";}
So I don’t know what happened but when I added the attribute image it seems to add the attribute image to the main product too but only in DB as there was just one main product image for this product in the backend.
And because the image was one of the attribute this image was preselected instead of the main image.
I don’t know how your ajax determine the main image to display …
Anyhow, I have manually edit the DB entry to fix it.June 1, 2021 at 6:04 am #296808
Artem TemosKeymasterHello,
Strange, but there is no such issue on our side. Anyway, if it happens again, please, contact us and provide us your website information so could test this problem.
Kind Regards
July 24, 2021 at 10:48 pm #308551
lenamtlParticipantHi,
I just figure out how to reproduce the problem
To reproduce the case :
Add a few variation to a product that have a product image. = ok
The next day add a new variation to this product
In variation tab add variation (create variation from attribut)
Then after that the new product will be auto selected as form default product… = not okSo this variation image will be preselected instead of the main product image … = not ok
To fix this issue I have to set it to none.
Hope this will help someone else…
Attachments:
You must be logged in to view attached files.July 26, 2021 at 6:05 am #308669
Artem TemosKeymasterWe are glad that you sorted it out. And thank you for posting your solution here.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register