Home Forums WoodMart support forum Problem with Cart and when the user chance product qty. The image is dissapear

Problem with Cart and when the user chance product qty. The image is dissapear

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #587834

    jdiproduction.gr
    Participant

    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?

    #587835

    jdiproduction.gr
    Participant

    Note: The bug is triggered when someone chance the qty 2-3 times..then the product image is dissapear.
    Please try it

    #587956

    Luke Nielsen
    Keymaster

    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

    #587957

    jdiproduction.gr
    Participant

    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.

    #587963

    Luke Nielsen
    Keymaster

    Hello,

    Okay. Don’t forget to clear the cache after defining the custom code.

    Kind Regards

    #587976

    jdiproduction.gr
    Participant

    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.
    #588028

    Luke Nielsen
    Keymaster

    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

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Problem with Cart and when the user chance product qty. The image is dissapear’ is closed to new replies.