dioniz Posted March 17, 2014 Share Posted March 17, 2014 (edited) Hello I just installed fresh copy of 1.6.0.5 and Add to cart and More buttons stays invisible on hover on home page and in product grid.Does anyone else have the same problem? Edited March 17, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 Same with cart Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 Hi. just uninstall the cart module and install it again, see if that works. Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 Unfortunately that didn't help Link to comment Share on other sites More sharing options...
folkifoon Posted March 17, 2014 Share Posted March 17, 2014 (edited) I have the same problem in Chrome. When i hover a product nothing happens, in IE and FireFox all works fine.When i checked another computer (also Windows 8 & newest version of Chrome) it did work fine in Chrome.I reinstalled the webshop, but same problem. When i open a beta 1.6 shop it does work.Also, when i scale the size of the Chrome window, you can see add to cart on all products Edited March 17, 2014 by folkifoon (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 Now when you said that i checked it in different browsers and it is working in Chrome, Opera, Safari, but doesn't work in FF Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 (edited) Next solution: Uninstall the cart module remove (delete) the cart module (also do a manual delete via FTP of that module folder) in Preferences > Performance > Select Force compilation and disable cache via FTP go to your cache folder: delete everything inside cache folder but do not delete index.php grab a new cart module (from a prestashop 1.6 installation) and upload to your prestashop store and install it See if that works regards. Edited March 17, 2014 by majority (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted March 17, 2014 Share Posted March 17, 2014 Next solution: Uninstall the cart module remove (delete) the cart module (also do a manual delete via FTP of that module folder) in Preferences > Performance > Select Force compilation and disable cache via FTP go to your cache folder: delete everything inside cache folder but do not delete index.php grab a new cart module (from a prestashop 1.6 installation) and upload to your prestashop store and install it See if that works regards. If it is a fresh install, if the above suggestion does not work. Just download the package again. We had extremely high traffic and download volume so I wouldn't be surprised if the download was just a bit corrupted due to the server pressure. Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 Thanks for trying Majority but i don't think this will work cause everything is fine in Chrome but not in FF. I think it has something to do with this code in themes/default-bootstrap/js/global.js: function blockHover(status) { $(document).off('mouseenter').on('mouseenter', '.product_list.grid li.ajax_block_product .product-container', function(e){ if ('ontouchstart' in document.documentElement) return; if ($('body').find('.container').width() == 1170) { var pcHeight = $(this).parent().outerHeight(); var pcPHeight = $(this).parent().find('.button-container').outerHeight() + $(this).parent().find('.comments_note').outerHeight() + $(this).parent().find('.functional-buttons').outerHeight(); $(this).parent().addClass('hovered'); $(this).parent().css('height', pcHeight + pcPHeight).css('margin-bottom', pcPHeight * (-1)); } }); $(document).off('mouseleave').on('mouseleave', '.product_list.grid li.ajax_block_product .product-container', function(e){ if ($('body').find('.container').width() == 1170) $(this).parent().removeClass('hovered').removeAttr('style'); }); } Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 Benjamin I downloaded twice and did fresh install both times and thing is working in all browsers but FF Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 Benjamin I downloaded twice and did fresh install both times and thing is working in all browsers but FF Now I'm a bit worried, as my clients use a lot firefox, I will test my new prestashop 1.6 installation store in a firefox browser, I will tell you the results Regards Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 In my end the "add to cart button" is not working on the FireFox browser I cannot add products to my cart, nothing happens when i click on the add to cart button! Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 (edited) Never mind this post - it was wrong! Edited March 17, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 (edited) Ok I've figure it out, so you need to clean your firefox cache and cookies here how to clean: https://support.mozilla.org/pt-PT/kb/delete-cookies-remove-info-websites-stored after that I have no more problems, all is working the same way as the other browsers try that and if it works for you, please mark this topic as [sOLVED] Best regards Edited March 17, 2014 by majority (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 What version of FF are you using? Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 What version of FF are you using? I'm using FF 27.0.1 Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 (edited) I found a reason for problems in Firefox in mozillazine forum: From version 26 of Firefox, even your desktop with a mouse is detected as a touch device when you check for "ontouchstart". Solution for this is to run about:config , then filter w3c and you will get dom.w3c_touch_events.enabled;1 Change 1 to 0 , restart FF and everything will work. Edited March 17, 2014 by dioniz (see edit history) 1 Link to comment Share on other sites More sharing options...
ALMAJ Posted March 17, 2014 Share Posted March 17, 2014 I found a reason for problems in Firefox in mozillazine forum: Solution for this is to run about:config , then filter w3c and you will get dom.w3c_touch_events.enabled;1 Change 1 to 0 , restart FF and everything will work. Nice find! FireFox is becoming messed up release after release, they refuse to change to webkit why are people still using Firefox? Link to comment Share on other sites More sharing options...
dioniz Posted March 17, 2014 Author Share Posted March 17, 2014 I'm using it just because of Firebug. I find it better for my eyes then Chrome console Link to comment Share on other sites More sharing options...
folkifoon Posted March 18, 2014 Share Posted March 18, 2014 (edited) For me Firefox works fine but this problem appears in ChromeI removed chrome and reinstalled it, this didnt help. On my other computer it works fine in Chrome, so it looks like a local problem on my laptop.... I downloaded the prestashop package again and reinstalled the shop, still the same problem.Should be something wrong in my Chrome, but reinsalling it doesnt help...maybe things are being left on pc after removing chrome, register for example. Edited March 18, 2014 by folkifoon (see edit history) Link to comment Share on other sites More sharing options...
ALMAJ Posted March 18, 2014 Share Posted March 18, 2014 For me Firefox works fine but this problem appears in Chrome I removed chrome and reinstalled it, this didnt help. On my other computer it works fine in Chrome, so it looks like a local problem on my laptop.... I downloaded the prestashop package again and reinstalled the shop, still the same problem. Should be something wrong in my Chrome, but reinsalling it doesnt help...maybe things are being left on pc after removing chrome, register for example. Clean your google chrome cache and cookies Link to comment Share on other sites More sharing options...
folkifoon Posted March 18, 2014 Share Posted March 18, 2014 I tried both, no luck. I also uninstalled chrome, removed registry entries, and reinstalled but still same problem.I check on my other pc, both have same chrome versions Link to comment Share on other sites More sharing options...
presta-rocks Posted March 31, 2014 Share Posted March 31, 2014 I have the same problem, it do not work on chrome. It worked fine some time ago but now not. It is also noto work with official demo of prestashop. I've cleared cache of browser and prestashop and still the same. There is no js errors in debug console. Link to comment Share on other sites More sharing options...
folkifoon Posted March 31, 2014 Share Posted March 31, 2014 This problem is not solved, i cannot find out what it is... Link to comment Share on other sites More sharing options...
presta-rocks Posted March 31, 2014 Share Posted March 31, 2014 if ('ontouchstart' in document.documentElement) { $('.shopping_cart > a:first').on('click', function(e){ e.preventDefault(); }); $(document).on('touchstart', '#header .shopping_cart a:first', function(){ if ($(this).next('.cart_block:visible').length) $("#header .cart_block").stop(true, true).slideUp(450); else $("#header .cart_block").stop(true, true).slideDown(450); e.preventDefault(); e.stopPropagation(); }); } else $("#header .shopping_cart a:first").hover( function(){ if (ajaxCart.nb_total_products > 0 || cart_qty > 0) $("#header .cart_block").stop(true, true).slideDown(450); }, function(){ setTimeout(function(){ if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver()) $("#header .cart_block").stop(true, true).slideUp(450); }, 200); } ); if we remove if ('ontouchstart' in document.documentElement) { $('.shopping_cart > a:first').on('click', function(e){ e.preventDefault(); }); $(document).on('touchstart', '#header .shopping_cart a:first', function(){ if ($(this).next('.cart_block:visible').length) $("#header .cart_block").stop(true, true).slideUp(450); else $("#header .cart_block").stop(true, true).slideDown(450); e.preventDefault(); e.stopPropagation(); }); } else Seems like newer version of chrome recognize 'ontouchstart'' so this part of code is used, but on mouse over do not behavior like touch Link to comment Share on other sites More sharing options...
folkifoon Posted March 31, 2014 Share Posted March 31, 2014 On my other computer it does work well in Chrome, with same version.... Link to comment Share on other sites More sharing options...
presta-rocks Posted March 31, 2014 Share Posted March 31, 2014 (edited) On my other computer it does work well in Chrome, with same version.... What is your chrome and OS version? My chrome version is 33.0.1750.154 and Windows 8. I do not think it is related to browser, becouse code change fix it. I've did debug of this and it fails on $(document).on('touchstart', '#header .shopping_cart a:first', function(){ And clearing all browser data, and prestashop cache not helping Edited March 31, 2014 by marcinsz101 (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted March 31, 2014 Author Share Posted March 31, 2014 Read this guys, i think it will help you: http://www.prestashop.com/forums/topic/318736-problems-in-new-theme-using-chrome/?do=findComment&comment=1615240 Link to comment Share on other sites More sharing options...
presta-rocks Posted March 31, 2014 Share Posted March 31, 2014 Thanks that helped, I've spend few hours on finding solution for that and for now there is not possible to make good touch detection. Your workaround is fine for me, but we can not force visitors to change browser config, In fact this setting is fine on most computers, but aftern enablin some simulation in developer tool value is changed, and after finish simulation is stay on enabled touch. Regards Link to comment Share on other sites More sharing options...
dioniz Posted March 31, 2014 Author Share Posted March 31, 2014 Exactly what you said marcinsz101. Link to comment Share on other sites More sharing options...
folkifoon Posted April 1, 2014 Share Posted April 1, 2014 ahh clever yes i have a touch device also, samsung ativ tab pro Link to comment Share on other sites More sharing options...
Rosie Posy Posted October 16, 2014 Share Posted October 16, 2014 Hi there Comunity Jedi, I wonder if you can help, since you are the Jedi :-) I would like to modify the cart options in the checkout. At the moment the customer can choose items then at the checkout they can modify their basket/cart. I would like to have the possibility to modify the cart on the first popup cart screen. Is that possible and if so how do I impliment that option? Thank you VERY much for any advice. Kind regards Len to see what I mean here is the site www.rosieposy.fr Link to comment Share on other sites More sharing options...
Recommended Posts