How do I lock the cart button in place?

Commercial shopping Joomla template to easy create webshop with various extensions supported like ViruteMart, K2 and K2Store.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Oct 19, 2015 5:20 pm
Reply with quote
Report this post
The shopping cart button in the top right corner moves up and down as you scroll a page. Is there some way to lock it at the top? It can get kind of annoying looking at it bouncing around the page.
User avatar
Fresh Boarder

GK User
Tue Oct 20, 2015 9:39 am
Reply with quote
Report this post
Please remove this parT:
Code: Select all
         jQuery(window).scroll(function() {
            var scroll = jQuery(window).scrollTop();
            var max = jQuery('#gkMainWrap').height();
            var final = 0;
            if(scroll > 70) {
               if(scroll < max - 122) {
                  final = scroll - 50;
               } else {
                  final = max - 172;
               }
            } else {
               final = 20;
            }
            btn.css('top', final + "px");
         });

from gk.scripts.js file
User avatar
Moderator


cron