meera84 Posted July 10, 2013 Share Posted July 10, 2013 Hi, As i have removed images from my product list, when I click on add to cart on my product list, the transfer effect is not shown. I have been trying to find out how to fix this but havent been successful. I think i found where I need to change the code. Can someone advise how do i modify this so that the product name is 'transferred' instead of the image. Many thanks in advance for your help. modules/blockcart/ajax-js >>>>> // add the picture to the cart var $element = $(callerElement).parent().parent().find('a.product_image img,a.product_img_link img'); if (!$element.length) $element = $('#bigpic'); var $picture = $element.clone(); var pictureOffsetOriginal = $element.offset(); if ($picture.size()) $picture.css({'position': 'absolute', 'top': pictureOffsetOriginal.top, 'left': pictureOffsetOriginal.left}); var pictureOffset = $picture.offset(); if ($('#cart_block')[0] && $('#cart_block').offset().top && $('#cart_block').offset().left) var cartBlockOffset = $('#cart_block').offset(); else var cartBlockOffset = $('#shopping_cart').offset(); Link to comment Share on other sites More sharing options...
Recommended Posts