Problem with Cart and when the user chance product qty. The image is dissapear
-
Hello,
I have found some bug on templates from your demos.
Those 2 link that i provide we make import demo to take the layouts.
The only issue that i have found is the following.
If you have any product inside cart, and chance the product qty the product image is dissapear.
My fisrt thing is i make a mistake of any configuration but i tested on your demo also and i found the same bug
https://woodmart.xtemos.com/mega-electronics/
How that it can fixed?
Note: The bug is triggered when someone chance the qty 2-3 times..then the product image is dissapear.
Please try it
Hello,
In the next update, it will be fixed. For now, you can fix it with the help of the below code:
jQuery( document.body ).on( 'updated_cart_totals', function() {
woodmartThemeModule.$document.trigger('wood-images-loaded');
});
Define it in Theme Settings -> Custom JS.
Kind Regards
Goodmorning Luke Nielsen.
I still search about the root of that bug.
And i found it,
So if the Lazy Loading is active (with 10px or more) then the image dissapear and the user need to scroll the page and only then the product image is visible.
I will try your JQ also and i come back with results.
As i can tell for sure at this moment, the root of that issue is Lazy Loading becouse it effect the cart also.
Thank you for message, i will come back soon š
Best Regards.
Hello,
Okay. Don’t forget to clear the cache after defining the custom code.
Kind Regards
The code is working.
I made it also for functions.php
I uploaded via image becouse wordferce triggered,
Attachments:
You must be
logged in to view attached files.
Hello,
Great! Glad that it works for you.
In case you need any additional help, Iād be more than happy to assist you.
Have a good day!
Kind Regards
The topic ‘Problem with Cart and when the user chance product qty. The image is dissapear’ is closed to new replies.