Close

flyout-cart, have it open

Alex_
10 years ago
#5746 Quote
Avatar
  • 11
Hi.

I would like to have flyout-cart open on the right side panel .

It was working for me with default theme ,
I have modified javascript and updated css styles to have it active on certain pages.

<script type="text/javascript">
            $(document).ready(function () {
                $('#flyout-cart').addClass('active');
                //$('.header').on('mouseenter', '#topcartlink', function () {
                //    $('#flyout-cart').addClass('active');
                //});
                //$('.header').on('mouseleave', '#topcartlink', function () {
                //    $('#flyout-cart').removeClass('active');
                //});
                $('.header').on('mouseenter', '#flyout-cart', function () {
                    $('#flyout-cart').addClass('active');
                //});
                //$('.header').on('mouseleave', '#flyout-cart', function () {
                //    $('#flyout-cart').removeClass('active');
                //});
            });
        </script>


Would you mind to point me where is on "mouseenter" function in Motion Responsive Theme.
Because flyout-cart flickering if mouse on the flyout-cart and getting hidden  on Shopping Cart link  mouseenter ( in the top menu ) .


Thank you.
Alex

Alex_
10 years ago
#5752 Quote
Avatar
  • 11
Hi .

Have it fixed,
Just have commented flyout in a  SevenSpikesExtensions.js
and it's working now.