Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento Ajax Popup by Hussey Codings is not coming/showing when there is no product item in the cart #37

Open
ankanbhadra opened this issue Aug 17, 2016 · 5 comments

Comments

@ankanbhadra
Copy link

Magento Ajax Popup by Hussey Codings is coming fine when the there is product item in the cart. While the product has been removed from the mini cart or there is no product item in the cart, then the mini cart is not coming/showing... But it should be come/shown the mini cart dropdown box with message "There is no item in this mini cart" in spite of there is no cart item.

And second thing is when the there is product item in the cart, then Magento Ajax Popup by Hussey Codings has been coming, not always, one time coming, another time not coming....in magento1.9.2.4

@husseycoding
Copy link
Owner

As discussed via chat just now, for the popup issue you need to test the popup functionality on a clean install, if it's still there then we'll look at it for the next release. If you want us to build the extra popup functionality for when the cart is empty you need to contact paid support on email [email protected].

@aerostah
Copy link

aerostah commented Sep 2, 2016

I am encountering the exact same problem. A few clarifications:

  1. The issue presents only during a new checkout session. Even with an empty cart, if items were previously added to the cart the mini cart won't load. Clear your cookies to reproduce.
  2. The issue is caused by a 500 error due to memory exhaustion. In the apache error logs i'm seeing the following:

PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 100 bytes) in lib/Zend/Db/Statement/Pdo.php on line 291 (abbreviated for security reasons).

  1. In the browser console, the error presents like so:

prototype.js:1530 POST
/checkout/cart/add/uenc/aHR0cHM6Ly93d3cuY2hh…ZWN0aW9uL3B1cmUtcm9zZXdhdGVyLmh0bWw,/product/68/form_key/wp4oY0xI2bXmJL4g/ 500 (Internal Server Error)

Ankandhadra are you using an extension that modifies the cart? I haven't had much time to debug.

The issue can be temporarily overcome by raising your environment's PHP memory limits above the warning, but this is not the right solution.

@husseycoding
Copy link
Owner

Not sure I understand how this represents a potential bug in the extension? The mini cart is not meant to show on the cart and checkout pages and while your memory usage does seem high side for adding to the cart any number of additional processes could be running on your install to cause this. Ajax Cart Popup doesn't introduce any processes which should increase memory usage when adding to the cart above what it already was. If you can add any more detail on why you think this a bug with Ajax Cart Popup that would help. You should also check what you find in a clean install.

@aerostah
Copy link

aerostah commented Sep 7, 2016

The memory issue happens on the product page, when the user adds product to the cart. (You might be misunderstanding the explanation of when this problem occurs -- we're not saying the cart/checkout pages -- but rather when there are NO items present in the cart.)

I've implemented this extension on two other websites without issue. At this point, it's hard to ascertain the cause without providing you more information.

@husseycoding
Copy link
Owner

Ok well it sounds like the issue is store specific rather than a problem introduced by the extension, but just update this issue with some more detailed information such that we can test it if you think otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants