The page amazon_store/cart gets cached for anonymous users, making it look like nothing is being added to their cart.

A workaround for this is to turn off caching in admin/settings/performance.

CommentFileSizeAuthor
#1 amazon_store.no_cache_cart_page.patch900 bytesrfay

Comments

rfay’s picture

Title: Cart page (amazon_store) cached for anonymous users » Cart page (amazon_store/cart) cached for anonymous users
StatusFileSize
new900 bytes

Here's the patch to prevent caching of the cart page.

Committed to HEAD http://drupal.org/cvs?commit=303194

rfay’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

usera’s picture

the patch errors with 2.0rc1 with
Hunk #1 succeeded at 748 (offset -22 lines).
Hunk #3 FAILED at 1890.
1 out of 3 hunks FAILED -- saving rejects to file amazon_store.module.rej

rfay’s picture

This has been long since committed. Please use the dev release and report your results.

Thanks,
-Randy

Terko’s picture

Version: 6.x-2.0-rc1 » 6.x-2.x-dev

I still have this problem with the latest dev. Maybe it's something different than caching. I don't have this problem on the same install, different site and UC Cart.

rfay’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

@teri: If you have any of the modules that turn off sessions for anonymous users, you'll get this result as well. See #575526: Amazon Store module incompatible with no_anon (No Anonymous Sessions) module.

If you want to get me a copy of your codebase and database I'll take a look at it when I get a chance. You can put them somewhere and send me a contact telling me where they are.

Please test that turning off page caching in admin/settings/performance solves the problem for you. If it does not, then we have a different issue.

Terko’s picture

Thanks rfay! But the problem ... disappeared. I don't know exactly how. I tried to add $GLOBALS['conf']['cache'] = FALSE; in few places, this didn't worked but after few hours the problem disappeared (maybe there still was caches). So I didn't remember where exactly I've put them. But now it works fine! :)

rfay’s picture

Well, you shouldn't have to do that.

You can diff your file against the dev version to find out what you did. Just download (I assume it's the dev) and then use any diff tool to check.

If there is in fact a problem, we need to solve it for other people.

Remember, there will be future revisions of this, and if you hack the files and don't know what you did, an update will overwrite... and you'll have your bug again.

rfay’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking fixed - reopen if you have this problem again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.