Larryw Posted September 21, 2012 Share Posted September 21, 2012 I have upgraded from 1.4 to 1.5. In the old version when add to cart was clicked the cart appeard with the product showing and the account registration form below. Now nothing appears to happen when the add to cart is clicked, but the product is added in background and can be seen with the form below by clicking the cart (empty) link on the top of the site. Very confusing for users. Many will click several times - then give up without clicking the cart (empty). Any help would be appreciated. Link to comment Share on other sites More sharing options...
skipperfoto Posted September 24, 2012 Share Posted September 24, 2012 I have the exact same problem. Nothing happens. Is this a bug or misunderstood feature? Link to comment Share on other sites More sharing options...
yapliren Posted September 26, 2012 Share Posted September 26, 2012 I face this issue too. Some browser can, some can't no idea why, only happend on 1.5 Link to comment Share on other sites More sharing options...
Dafydd Posted September 27, 2012 Share Posted September 27, 2012 I had the same problem. This solution worked for me: 1. Uninstall the 'Front Office Features' module 'Cart block' 2. Reinstall the same module. 3. Go to the shop (refresh the browser if you already have the shop there). Link to comment Share on other sites More sharing options...
PaulM-pack Posted September 29, 2012 Share Posted September 29, 2012 hi, Activate multistore mode and cart work corectly when check out. Link to comment Share on other sites More sharing options...
shunkashuto1996 Posted October 3, 2012 Share Posted October 3, 2012 Hi, I tried both of the above-mentioned fixes for my store (www.theelvishconnection.com) but none has worked. Has anybody found another solution? Link to comment Share on other sites More sharing options...
netmechanics Posted October 3, 2012 Share Posted October 3, 2012 (edited) I have this as well, a critical bug I'd say ... my cart is in the RHS column and when adding to cart Ajax fails and it goes to the checkout without adding the item ... Update: For me this bug is strangely erratic, is currently only happening on one computer on latest Firefox version where as other computers are ok. Have cleared cache, turned off cache in Prestashop, enabled multishop etc etc to no avail. Edited October 3, 2012 by netmechanics (see edit history) Link to comment Share on other sites More sharing options...
lucamax Posted October 3, 2012 Share Posted October 3, 2012 try to enable friendly urls in SEO tab Link to comment Share on other sites More sharing options...
sixpack Posted October 26, 2012 Share Posted October 26, 2012 (edited) Had the same problem.. Edited January 11, 2013 by sixpack (see edit history) Link to comment Share on other sites More sharing options...
vynx Posted October 26, 2012 Share Posted October 26, 2012 have you try to force compile? Link to comment Share on other sites More sharing options...
sixpack Posted October 26, 2012 Share Posted October 26, 2012 How do I do that? Link to comment Share on other sites More sharing options...
vynx Posted October 26, 2012 Share Posted October 26, 2012 BO - > advanced parameters -> performance -> force compile Link to comment Share on other sites More sharing options...
sixpack Posted October 26, 2012 Share Posted October 26, 2012 Ok, still same problem.... Link to comment Share on other sites More sharing options...
vynx Posted October 26, 2012 Share Posted October 26, 2012 what version of PS 1.5 that you use? are you use 1.5.2 ? Link to comment Share on other sites More sharing options...
sixpack Posted October 26, 2012 Share Posted October 26, 2012 1.5.0.17...... Link to comment Share on other sites More sharing options...
vynx Posted October 26, 2012 Share Posted October 26, 2012 have try the latest 1.5.2 ? Link to comment Share on other sites More sharing options...
daki22 Posted February 18, 2013 Share Posted February 18, 2013 i have same problem when i uninstall module it change position of hook module.Nothing of this is good,same tamplate on 1.47 with same configuration is working well in 1.5.3.1 product is not shown in chart when i refresh page he is in chart.This new wersion is realy not good.there is also bug with transation my question is why you dont solve that Link to comment Share on other sites More sharing options...
xejay Posted February 20, 2013 Share Posted February 20, 2013 This bug can be resolved by un-hook the module block cart from the hook Top of pages. Go to You BO in Modules >> Position then go to the bottom of the page and unhook the module. The problem will be resolved. I'v just make the test. Link to comment Share on other sites More sharing options...
benjamin utterback Posted February 20, 2013 Share Posted February 20, 2013 Hello all, the add to cart functionality works fine on a fresh install of 1.5.3.1. I'm not able to reproduce on a fresh install, what could be causing this. xejay, was add to cart not working in your 1.5.3.1? Link to comment Share on other sites More sharing options...
daki22 Posted February 22, 2013 Share Posted February 22, 2013 No that didnt work for me,ony thing that had been worked is that i delete module from 1.5.3.1 and instal version 1.4.7 module,question is why this bug is not solved it is wearz important module. Link to comment Share on other sites More sharing options...
shopimport.nl Posted February 28, 2013 Share Posted February 28, 2013 I had the same issue with 1.5.3.1 and investigated till I found the root cause which is a tricky cookie issue. I also added this to the issue http://forge.prestas...owse/PSCFV-7952 When I use firefox with httpfox and check the cookies then I notice two almost identical cookies. The cookie key is exactly identical. But one is mentioned for domain .mydomain.com and the other for .www.mydomain.com The URL I use is www.mydomain.com and also the ajax requests goes to www.mydomain.com When I print_r($_COOKIE); then I see only one of the two. I also discovered that FrontController.php init() does not see that there is a cart id in the cookie when pressing ADD TO CART. So every time I click ADD TO CART is does do an ajax call back and generated a new cart as it thinks it does not exist. I see also new records generated in ps_cart with the same id_guest. The cookie I see in PHP with print_r($_COOKIE); (I write it to a file to not disturb the ajax) is the one of the .mydomain.com domain. AND I can see that after the ajax call it sets the .www.mydomain.com cookie. And when I click CHECKOUT then it display that the cart is empty. So actually the root cause is related to the cookie. I reads cookie of .mydomain.com and writes cookie of .www.mydomain.com Then I found a work around! With this change I make the cookie name also depending on the domain. So it will not give the same cookie name for both .mydomain.com and .www.mydomain.com as this caused PHP to confuse which cookie to use. In classes/cookie.php function init() you see $this->name = md5(_PS_VERSION.$name); and later $this->_domain = $this->getDomain($shared_urls); The change is to move the line starting with $this->_domain above the line starting with $this->_name and then add the domain to the name like this: $this->_domain = $this->getDomain($shared_urls); $this->name = md5(_PS_VERSION.$name.$this->_domain ); Now each cookie name is depending on the name and will not conflict. It directly solved my issue properly. 1 Link to comment Share on other sites More sharing options...
gonssal Posted May 15, 2013 Share Posted May 15, 2013 (edited) I had the same issue with 1.5.3.1 and investigated till I found the root cause which is a tricky cookie issue. I also added this to the issue http://forge.prestas...owse/PSCFV-7952 When I use firefox with httpfox and check the cookies then I notice two almost identical cookies. The cookie key is exactly identical. But one is mentioned for domain .mydomain.com and the other for .www.mydomain.com The URL I use is www.mydomain.com and also the ajax requests goes to www.mydomain.com When I print_r($_COOKIE); then I see only one of the two. I also discovered that FrontController.php init() does not see that there is a cart id in the cookie when pressing ADD TO CART. So every time I click ADD TO CART is does do an ajax call back and generated a new cart as it thinks it does not exist. I see also new records generated in ps_cart with the same id_guest. The cookie I see in PHP with print_r($_COOKIE); (I write it to a file to not disturb the ajax) is the one of the .mydomain.com domain. AND I can see that after the ajax call it sets the .www.mydomain.com cookie. And when I click CHECKOUT then it display that the cart is empty. So actually the root cause is related to the cookie. I reads cookie of .mydomain.com and writes cookie of .www.mydomain.com Then I found a work around! With this change I make the cookie name also depending on the domain. So it will not give the same cookie name for both .mydomain.com and .www.mydomain.com as this caused PHP to confuse which cookie to use. In classes/cookie.php function init() you see $this->name = md5(_PS_VERSION.$name); and later $this->_domain = $this->getDomain($shared_urls); The change is to move the line starting with $this->_domain above the line starting with $this->_name and then add the domain to the name like this: $this->_domain = $this->getDomain($shared_urls); $this->name = md5(_PS_VERSION.$name.$this->_domain ); Now each cookie name is depending on the name and will not conflict. It directly solved my issue properly. Thx for trying to give a solution but it didn't work for me. It still adds the product to the cart through AJAX but when you checkout, the cart is empty. Edited May 15, 2013 by gonssal (see edit history) Link to comment Share on other sites More sharing options...
atreyou78 Posted October 30, 2013 Share Posted October 30, 2013 did U find a solution ? Link to comment Share on other sites More sharing options...
Recommended Posts