Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author xootix

    (@xootix)

    Hello @buyacsgo

    Please right click on your home page & click on inspect element.
    Navigate to console tab & see if there are any Javascript errors. If any kindly fix them.
    If none, please share your website link

    Thread Starter buyacsgo

    (@buyacsgo)

    please visit my site.

    • This reply was modified 4 years, 8 months ago by buyacsgo.
    Plugin Author xootix

    (@xootix)

    Hello @buyacsgo

    “wc_fragments_refreshed” event from woocommerce is not firing on your site, I am not sure what exactly is causing this.
    But here is a fix, copy paste the code in your functions.php

    add_action( 'wp_footer', function(){
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function(){
            function resize_cart(){
     
            var header = $('.xoo-wsc-header').outerHeight(),
                        footer = $('.xoo-wsc-footer').outerHeight(),
                        screen = $(window).height();
     
     
                    if( xoo_wsc_localize.cont_height == "auto_adjust" ){
                        var body_height = 'calc(100% - '+(header+footer)+'px)';
                        if( $('.xoo-wsc-container').outerHeight() > screen ){
                            $('.xoo-wsc-container').css({"top": "0", "bottom": "0"});
                        }
                    }
                    else{
                        var body_height = screen-(header+footer);
                    }
     
     
                    $('.xoo-wsc-body').css('height',body_height);
            }
            $(document.body).on('added_to_cart',function(){
                setTimeout(resize_cart,10);
            });
            })
        </script>
        <?php
    } );
    Thread Starter buyacsgo

    (@buyacsgo)

    Thank you so much sir, working fine now <3

    Plugin Author xootix

    (@xootix)

    You’re welcome.
    Would really appreciate if you support the plugin by rating here

    I am having similar issue.
    Adding too many into cart hides the buttons and pushes them down and down.
    IF I resize my browser, issue goes away; reloading the page works but just closing and reopening the Cart doesn’t make any difference.

    I’ve Noticed this issue happens on Firefox and Safari (tested on Mac OS).
    On Chrome Browser, cart seems to refresh and shows the buttons if you wait a while without resizing.
    On Mobile Browsers (including Chrome), since we can’t resize the browser, reloading is always required.

    I’ve tried add_action() code above and this causes cart to not function; cart does not open at all while cart icon is displayed only. Nothing happens when cart is clicked.

    Using WordPress 4.9.8 & WooCommerce 2.5.2.

    Any help would be appreciated as I am evaluating this plugin to integrate to our website.

    Here is an example:

    View post on imgur.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘cart issue’ is closed to new replies.