When caching the uc_catalog view, the add-to-cart button won't work and cart isn't updated.
The catalog pages have multiple products.

Turning cache off isn't a option, because then the performance of the catalog is very very slow.

Is their a sollution to get the add-to-cart button to work in a catalog view with caching on?

Comments

tr’s picture

Assigned: jawi » Unassigned
Category: bug » support
Priority: Major » Normal
Status: Active » Closed (works as designed)

Please read and understand the discussion in #723804: Add To Cart in View won't work. Unless something has changed in Views in the intervening time, the status is still the same as described there.

tr’s picture

Issue summary: View changes

updated urls

jawi’s picture

Issue summary: View changes

changed url

philsward’s picture

Status: Closed (works as designed) » Active

Sorry to re-open, but I too have noticed this symptom. Without cache, the page takes a good 6-8 seconds to load. With cache, it's around 2-3...

My only conceivable workaround is to get rid of the "add to cart" button and do my best to get people to view the product page so I can enable cache. I have a better chance of conversion with a fast loading page over not having the add to cart button...

Any thoughts on looking into this further? Maybe the button can be excluded from the cache or something?

DanZ’s picture

Reading the linked issues, there isn't a simple solution to this problem. It looks like Drupal isn't meant to deal with cached dynamic forms.

It's just a wild guess, but you might be able to do something with Cart Links.

philsward’s picture

Status: Active » Closed (works as designed)

@DanZ yeah, I had the same thought with cart links...

Thx for the response. If it isn't something easy to fix, I guess I'll find a workaround. Just sucks knowing it is a potential conversion killer :-/

philsward’s picture

Issue summary: View changes

removed writing errors