ps3z Posted January 9, 2014 Share Posted January 9, 2014 (edited) Hello when i add to cart ajax cart is opening well, but if i enter to categories and checking the cart again, then cart isnt opening.what is the problem? www.worldbazaar.com.tr Regards Ps3z Edited January 9, 2014 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2014 Share Posted January 9, 2014 it doesnt work also on homepage, after refresh can you confir it please? Link to comment Share on other sites More sharing options...
ps3z Posted January 9, 2014 Author Share Posted January 9, 2014 (edited) it doesnt work also on homepage, after refresh can you confir it please? yes it doesnt work,but if i add to cart new item. then cart is opening Edited January 9, 2014 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
ps3z Posted January 9, 2014 Author Share Posted January 9, 2014 please check it http://screencast.com/t/UAvDmLzkPv9H Link to comment Share on other sites More sharing options...
ps3z Posted January 10, 2014 Author Share Posted January 10, 2014 any idea? Link to comment Share on other sites More sharing options...
Sharak Posted January 10, 2014 Share Posted January 10, 2014 (edited) Some scripts are probably colliding with ajax-cart.js. <div id="cart_block"> should have style="display: none;" dynamically assigned to it and change to display:block for hovering, but it doesn't happen on pages other than Cart page. Edited January 10, 2014 by Sharak (see edit history) Link to comment Share on other sites More sharing options...
ps3z Posted January 11, 2014 Author Share Posted January 11, 2014 Some scripts are probably colliding with ajax-cart.js. <div id="cart_block"> should have style="display: none;" dynamically assigned to it and change to display:block for hovering, but it doesn't happen on pages other than Cart page. i dont have any idea about it. if you have an idea i can try to edit codes in files. Link to comment Share on other sites More sharing options...
NemoPS Posted January 11, 2014 Share Posted January 11, 2014 It seems to work for me, on which browser are you experiencing this issue? In any csse you have an ajax issue left: No 'Access-Control-Allow-Origin' header is present on the requested resource Basically, you are trying to access an ssl'd page from a non secured one. Your hosting is not allowing it Link to comment Share on other sites More sharing options...
ps3z Posted January 11, 2014 Author Share Posted January 11, 2014 (edited) It seems to work for me, on which browser are you experiencing this issue? In any csse you have an ajax issue left: No 'Access-Control-Allow-Origin' header is present on the requested resource Basically, you are trying to access an ssl'd page from a non secured one. Your hosting is not allowing it hello Nemo i tested on chrome and firefox. if i click to cart,cart page is opening on new page. ssl pages are opening normally. ajax drop down cart isnt have ssl feature i think Edited January 11, 2014 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 11, 2014 Share Posted January 11, 2014 Do you maybe have paypal installed? Can you try disabling it and seeing if the issue is temporarily solved that way? There used to be a bug about that Link to comment Share on other sites More sharing options...
vekia Posted January 11, 2014 Share Posted January 11, 2014 access origin errors arent related to "server side" problems. errors like that are related to "mixed content" filtering in all modern browsers. but in fact, problem isn't related to this. problem is somewhere in javascripts, the same cart works well right after adding some stuff to cart 1 Link to comment Share on other sites More sharing options...
ps3z Posted January 11, 2014 Author Share Posted January 11, 2014 access origin errors arent related to "server side" problems. errors like that are related to "mixed content" filtering in all modern browsers. but in fact, problem isn't related to this. problem is somewhere in javascripts, the same cart works well right after adding some stuff to cart yes definitely Link to comment Share on other sites More sharing options...
Sharak Posted January 11, 2014 Share Posted January 11, 2014 You have some non-default javascripts on your site. Try disabling it one by one and see if that changes anything to cart block behaviour? Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2014 Share Posted January 12, 2014 you use advanced top menu module? Link to comment Share on other sites More sharing options...
ps3z Posted January 13, 2014 Author Share Posted January 13, 2014 You have some non-default javascripts on your site. Try disabling it one by one and see if that changes anything to cart block behaviour? ok i will try this. Link to comment Share on other sites More sharing options...
ps3z Posted January 13, 2014 Author Share Posted January 13, 2014 you use advanced top menu module? no i dont use it. its disabled in module list but i have superfish menu block developed by theme owner.i did disable for check it..still have same problem Link to comment Share on other sites More sharing options...
ps3z Posted January 15, 2014 Author Share Posted January 15, 2014 (edited) if i set force ssl for all pages. cart is working well. developer of theme told me theres have redirect 301 problem any idea? Edited January 15, 2014 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
ps3z Posted January 16, 2014 Author Share Posted January 16, 2014 nobody no have any idea? Link to comment Share on other sites More sharing options...
libertec Posted February 4, 2014 Share Posted February 4, 2014 Hello, I have exactly the same problem, showing the following symptoms: - ajax cart not opening on non-ssl pages when nothing has been added to the cart on that page - ajax cart functions well on ssl pages, drops down ok It seems related to the ajaxCart not being updated because the GET request is not processed because of the mixed content issue, which gives the following error: GET http://magneetventielshop.nl/?controller=cart&aj...4dc916e7bacccadf2f3a64dbac9946a9&_=1391538146389 301 Moved Permanently When a POST request is made, the ajaxCart is updated, nb_total_products goes >0 and the ajax cart opens again. Does somebody have an idea how to fix this issue? website: http://magneetventielshop.nl Thanks! 1 Link to comment Share on other sites More sharing options...
libertec Posted February 6, 2014 Share Posted February 6, 2014 (edited) Hello everybody, Finally I managed to solve the problem. I noticed there was a POST request from adding a product to the cart, in the response the complete cart contents are listed and used by the ajax cart. The GET request to update the cart on a page refresh (or next/previous page) does not resolve (301 response). Instead of a GET request, I now send a POST request, which results in the cart contents being returned. To solve this I have changed type: 'GET to 'POST' in the following code on line 126 of ajax-cart.js: // Fix display when using back and previous browsers buttons refresh : function(){ $.ajax({ type: 'POST', url: baseUri, async: true, cache: false, dataType : "json", data: 'controller=cart&ajax=true&token=' + static_token, success: function(jsonData) { ajaxCart.updateCart(jsonData); } }); }, Regards Edited February 6, 2014 by libertec (see edit history) 2 Link to comment Share on other sites More sharing options...
Christiaan_01 Posted February 16, 2014 Share Posted February 16, 2014 Thanks Libertec! You solved my problem. Link to comment Share on other sites More sharing options...
indus Posted March 7, 2014 Share Posted March 7, 2014 T Hello everybody, Finally I managed to solve the problem. I noticed there was a POST request from adding a product to the cart, in the response the complete cart contents are listed and used by the ajax cart. The GET request to update the cart on a page refresh (or next/previous page) does not resolve (301 response). Instead of a GET request, I now send a POST request, which results in the cart contents being returned. To solve this I have changed type: 'GET to 'POST' in the following code on line 126 of ajax-cart.js: // Fix display when using back and previous browsers buttons refresh : function(){ $.ajax({ type: 'POST', url: baseUri, async: true, cache: false, dataType : "json", data: 'controller=cart&ajax=true&token=' + static_token, success: function(jsonData) { ajaxCart.updateCart(jsonData); } }); }, Regards Thanks man, this solved another problem i had with an XMLHttp request being disallowed , i changed the get to post and now it solved many other problems with the cart. Link to comment Share on other sites More sharing options...
dokorek Posted July 28, 2014 Share Posted July 28, 2014 Thank you very much !!! It helps me with my popcart error Link to comment Share on other sites More sharing options...
Gu1llaume Posted September 28, 2015 Share Posted September 28, 2015 it work's ! thanks Libertec ! Link to comment Share on other sites More sharing options...
Recommended Posts