Error on console firebug with cart

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
Tue Oct 01, 2013 4:47 pm
Reply with quote
Report this post
I have seen an error reported on console firebug, is it important?

TypeError: vmcartck.offset(...) is undefined
vmcartck.top = vmcartck.offset().top;

When I active other template the error dissapear, and for checking where is the problem I´ve deleted the hole gk_storebox dir and I´ve copyed the hole same dir of a new installation made with the quickstart packet( where is not the error) and the error reported continue appearing. Where is the problem?

Thank you.
User avatar
Junior Boarder

GK User
Wed Oct 02, 2013 3:42 pm
Reply with quote
Report this post
Hi,

Could you provide an URL to your website?
User avatar
Administrator

GK User
Fri Oct 04, 2013 11:31 am
Reply with quote
Report this post
dziudek wrote:Hi,

Could you provide an URL to your website?


Yes of course, the error appear on firebug console when you go to any VM page, no with other pages: http://www.antonio-romero.com/shop/plata-de-palo/anillos.html
User avatar
Junior Boarder

GK User
Sun Oct 06, 2013 7:51 am
Reply with quote
Report this post
It seems that the problem is caused by this fragment of code:

Code: Select all
jQuery(document).ready(function($) {
         var vmcartck = $('.vmCartModule');
         vmcartck.top = vmcartck.offset().top;
         vmcartck.left = vmcartck.offset().left;
         
         $('.addtocart-button').click(function() {
               var el = $(this);
               var imgtodrag = $('.product-image:first');
               if (!imgtodrag.length) {
                  elparent = el.parent();
                  while (!elparent.hasClass('spacer')) {
                     elparent = elparent.parent();
                  }   
                  imgtodrag = elparent.find('img.browseProductImage');
               }
               if (imgtodrag.length) {
                  var imgclone = imgtodrag.clone()
                     .offset({ top: imgtodrag.offset().top, left: imgtodrag.offset().left })
                     .css({'opacity': '0.7', 'position': 'absolute'})
                     .appendTo($('body'))
                     .animate({
                        'top': vmcartck.top+3,
                        'left': vmcartck.left+1200
                     },240, 'linear');
                  imgclone.animate({
                     'width': 0,
                     'height': 0
                  });
               }
         });
      });


As I remember it is not our code. Most probably it is caused by the 3rd party extension. In my opinion it is caused by using the $ function and you should consult it with the developer of the extension.
User avatar
Administrator

GK User
Mon Oct 07, 2013 9:56 am
Reply with quote
Report this post
dziudek wrote:As I remember it is not our code. Most probably it is caused by the 3rd party extension. In my opinion it is caused by using the $ function and you should consult it with the developer of the extension.


Hi, I´ve found the pluging origin of all problems, the error has disappear when I deactivated it.
Thanks a lot.
User avatar
Junior Boarder


cron