Home › Forums › WoodMart support forum › Quick shop – on variation click – error image
Quick shop – on variation click – error image
- This topic has 33 replies, 4 voices, and was last updated 1 year, 6 months ago by Artem Temos.
-
AuthorPosts
-
May 4, 2023 at 11:57 pm #464615
agenciawebinfiniteParticipantHello!
The products in the listing and on the product page, the image thumbnails appear correctly with the quick shop disabled.
If I activate the quick shop and leave the option -> “On variation click
” keeps working the image thumbnails, to choose the color:
https://imgur.com/YMCYuNH
https://imgur.com/4tNizWEBut if I change it to -> On variation click, the image thumbnails disappear and only the text remains, I’ve already tried everything and nothing works.
https://imgur.com/NJ4idFJ
https://imgur.com/rTMXh2ZWhat could it be?
May 5, 2023 at 5:58 pm #464814
Aizaz Imtiaz AwanKeymasterHello,
When you enable quick shop for variable product and select the type on “Select Options” click it is showing in this form:
https://ibb.co/c8Jdfq7And when you select on variation click it is shown in this form:
https://ibb.co/Y3tNZr9.It is an example of our test site.
Best Regards
May 5, 2023 at 11:33 pm #464873
agenciawebinfiniteParticipantHello!
That’s right, only when I activate the “on variation click” mode here, instead of being the same as yours like this:
https://ibb.co/Y3tNZr9 .It looks like this:
https://imgur.com/rTMXh2Z
See that Black and Pink “lose” the image.Now the old fashioned way works: (on select options click)
https://imgur.com/4tNizWEDid you understand?
would there be some wrong setting here?
I couldn’t identify.Note: On the product page, it remains normal, only in the store, which looks like this.
May 6, 2023 at 2:32 pm #464950
Aizaz Imtiaz AwanKeymasterHello,
Please share the wp login details of your site i will check and give you a possible solution.
Best Regards.
May 10, 2023 at 8:20 pm #466025
agenciawebinfiniteParticipantHello!
Yes, I will send the access to verify, I tested it on more than one site, and the same thing happens, as I explained above.
Either it’s a theme bug, or something I’m doing wrong, but it seems to be a bug, I’m waiting for your feedback.
May 11, 2023 at 2:26 pm #466206
Aizaz Imtiaz AwanKeymasterHello,
WoodMart theme suggests the option to present the attributes as swathes. Swatches are available in text, color or image format. Swatches can be configured for global attributes only.
Choose image swatch from Products -> Attributes -> edit attributes -> choose image swatch.
https://ibb.co/tBq88QN.https://xtemos.com/docs-topic/variable-products-and-swatches/
Best Regards.
May 11, 2023 at 5:06 pm #466271
agenciawebinfiniteParticipantHello!
But that doesn’t make any sense….
I imagined that if I select in the quick shop type:
– *On select options* -> I can see the real photos of the variations, choose the color and size and buy.– in the option *on variation click* -> It would be the SAME THING ABOVE, only then, there would be no need to open the options again above the photo, with buttons, it would be easier, direct and beautiful.
Now if you tell me that the *on variation click* method ONLY WORKS with global image, then this function won’t do anything, because what matters is the REAL image of the product, and not just a colored “ball” there… .
does it make sense what I said?
Wouldn’t it be just replicating the function to also show the image below, also being able to choose the size?
May 13, 2023 at 11:43 pm #466720
Elise NoromitMemberHello,
Please have a look at the screen: https://gyazo.com/ef8996270cfb0f85dfa9c965c85d7852
This is our shop demo. You click the attribute and appropriate image appears.
In order to achieve that you need to add image to every variation in the product settings. Please check this manual: https://xtemos.com/docs-topic/variable-products-and-swatches/
You can see in the manual, that you can add one attribute in the grid. Our demo shows color. Your shop page shows the size.
As soon as you add the image to every variation, you will be able to select the variation, and add it to the cart and the buyer would see what he adds.
Your site admin access not valid now, if you have any difficulties, please provide the site admin access, we will check the current settings and suggest the option to achieve the aim.
Best Regards
May 15, 2023 at 1:16 pm #466975
agenciawebinfiniteParticipantFriend, I think you didn’t understand anything I said…lol
Everything you said I already know…
I won’t explain again, I ask you to read above, and understand what I asked.
About the colors, I also found a big defect, because if I put a COLOR in the attribute, the image simply stops working, or I tested it, and all the image thumbnails don’t work if I put a color.
So for the variation thumbnail images to work I can’t put any color in them.
There should be a button to activate either the color or thumbnail of the variation, but it doesn’t…
Maybe you don’t understand what I mean… what I can do is record a video, but I only speak Brazilian Portuguese.
HOWEVER, if I use the quick shop option as in the option *in the click variation*, in this one, the image thumbnail OF THE VARIATION never worked, it only works for the attribute, which was what I said above…. there were dozens of products, with different images, and I want her THUMBNAIL the same as the photo, not a “generic” thumbnail for different products. The color variation, I don’t want a color but a thumbnail of the variation image.
May 15, 2023 at 2:15 pm #466989
Artem TemosKeymasterHello,
Could you please send us a link to the product where it has images for variations on the single product but they are not shown on the catalog page?
Thank you
May 18, 2023 at 11:56 am #467974
agenciawebinfiniteParticipantThe client is still messing with all the records.
But in the access I gave you above, just test it….just change the option to – in the option *on variation click*, put a photo in the variation, and it will appear on the product page, but it does NOT appear in the listing , only the text appears.
You can test without problems.
May 18, 2023 at 12:23 pm #467989
Artem TemosKeymasterYes, we understand the problem. Please, send us a link to the concrete product which has images for variations on the single product but they are not shown on the catalog page.
May 18, 2023 at 3:59 pm #468083
agenciawebinfiniteParticipantI created a test product for you to see:
See that here, the thumbnails appear:
https://www.driconfort.com.br/produto/calca-legging-fitness-teste-nao-apagar/But not in the listing:
https://www.driconfort.com.br/categoria/fitness/calca/May 18, 2023 at 4:01 pm #468085
agenciawebinfiniteParticipantNote: You need to log in to the site, as it is still in construction mode.
May 18, 2023 at 5:21 pm #468121
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
add_action( 'woodmart_variation_attributes_on_grid', function ( $count ) { global $product; return count( $product->get_variation_attributes() ); });
Kind Regards
May 18, 2023 at 5:39 pm #468132
agenciawebinfiniteParticipantNOW YES!!! IT WORKED!
Can you apply this fix to the theme?
So you don’t have to leave extra codes?
May 18, 2023 at 5:42 pm #468133
agenciawebinfiniteParticipantNote:
Would it be possible to change the image of the photo JUST by clicking on the color, without having to click on the size as well?
May 19, 2023 at 9:57 am #468231
Artem TemosKeymasterWe recommend you keep this code even after the update.
We will consider adding an option to change the image on the first attribute click in our future updates.
Kind Regards
May 19, 2023 at 10:56 am #468246
agenciawebinfiniteParticipantRight,
I’ll keep the code for now.About changing the image on the first click, that would be great, because people will click on the color and already want to see it… I don’t see why there is the need to also choose the size.
After she chooses the color/model, she will choose the size and buy.
I already used a plugin a while ago that it was possible to choose this. If you could switch on the first click, and I would say which attribute was responsible for doing that.
Thanks.
May 19, 2023 at 2:12 pm #468289
Artem TemosKeymasterSure, thank you for the feedback. Feel free to contact us if you have any further questions.
May 20, 2023 at 4:24 pm #468516
agenciawebinfiniteParticipantHello!
I went to put this on another site, and I had problems, the whole home was buggy.
I cleared caches and everything, and nothing worked, I tried more than once.
However, the other pages worked, but the Home did not.
https://imgur.com/xqcgaelIt was just deactivating the code and everything was working again.
Could you help me with this?
I left the code disabled in the Code Snippets plugin.
I wanted to use the quick shop a lot in this store, it turned out very well.May 22, 2023 at 9:22 am #468747
Artem TemosKeymasterHello,
We just tried to activate this code snippet on your website and the home page worked correctly. Could you please check it from your end now?
Kind Regards
May 22, 2023 at 12:11 pm #468807
agenciawebinfiniteParticipantHello!
It’s just that you need to activate the code and also activate the Quick shop on variation click.May 22, 2023 at 2:22 pm #468854
Artem TemosKeymasterIt looks like a conflict with some of the installed plugins. Could you please temporarily disable them all so we can check how it works?
May 22, 2023 at 3:55 pm #468897
agenciawebinfiniteParticipantHello!
On this site, I can’t deactivate the plugins, it can’t stop…
But what I could do was make a clone of it for a test environment….
May 22, 2023 at 4:21 pm #468906
Artem TemosKeymasterIn this case, you need to create a staging development copy of your website. There, you will be able to do such kind of experiments without any harm to your production website.
Kind Regards
May 23, 2023 at 2:06 pm #469161
agenciawebinfiniteParticipantHello!
Actually this code that you passed, is causing some problem.
The only site I left active, despite working, was extremely slow, crashing the home, very strange.
It was just deactivating the code, it was super fast and normal.
If you want, on this site that I will give you access, as it is still under construction, if you want, you can deactivate plugins and do tests.
But your past code cannot be used in production yet.
May 23, 2023 at 2:09 pm #469162
agenciawebinfiniteParticipantIt was like generating almost an infinite scroll and getting everything white and stuck…
and the carousels also have a problem, crashing.
What seems to be, that it may be some incompatibility with the elements of products that are in Home.
May 23, 2023 at 3:06 pm #469186
Artem TemosKeymasterPlease, deactivate all plugins on this website and add the code we gave you so we can check how it works.
Thank you
May 23, 2023 at 4:29 pm #469208
agenciawebinfiniteParticipantBuddy, there’s some bullshit going on with this code….
I disabled all plugins, and was testing logged in as admin…
All disabled, seemed to be better (obviously almost zero plugins)Then I decided to release the site from maintenance mode and test it in a visitor tab.
I was activating 1 or 2 plugins, and testing, I did it for almost 1 hour.
On the visitor page, I didn’t even notice problems…
But when I went back to the page logged in with admin, I noticed the problem…but if the problem happens only when logged in as admin, it wouldn’t be a big problem right?It is important for the customer to be able to use…
But now, trying to edit the home, through the element, I already received an Out of memory screen 2 times, and I had never received this.
https://imgur.com/qRmIk5qSo I think that this code may be generating something wrong and consuming extra resources on the site.
I couldn’t identify if it could be some conflict… because in the logs of the site, it doesn’t show anything.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register