Closed (won't fix)
Project:
Ubercart AJAX Cart
Version:
6.x-2.0-alpha7
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2009 at 00:26 UTC
Updated:
16 Jun 2011 at 08:28 UTC
Hi,
I would like to have the ability to "enable ajax cart view" at admin/store/settings/uc_ajax_cart so that I get the cool ajax transition on the screen when someone adds something to their cart.
However, I would also like to re-direct the browser page to /cart so that the user can decide to checkout there.
If I enable "enable ajax cart view" nothing happens in the browser except the ajax function of adding something to the cart in the cart block.
If I disable that box (and have the re-direct set like usual for the core Ubercart cart), I get re-directed to the /cart/ page.
Any way to have the best of both?
Thanks.
Comments
Comment #1
arbel commentedany luck with this?
Comment #2
tunicI can't see the point in redirecting to cart page after AJAX cart operation. It may be confusing, because you will see ajax operation message and then browser will load cart page.
I'm closing this bug, but may be reopen by popualr demand or a more reasonable or detailed user case.
Comment #3
cookiesunshinex commentedI really like the ajax operation message. It looks stylish and lets the user know that an action has taken place.
My shop only sells items that will be purchased individually for the most part. In other words, once they add something to the cart, it would be rare that they would purchase another item. I would rather direct them to the /cart page so that they could checkout rather than having them have to click checkout.
I do see your point about it seeming pointless, but It would be a cool feature of a site to be able to have the ajax cart operation in addition to being re-directed to the cart page.
Comment #4
tunicIf you really want to do this I can give a quick and dirty fix.
Take this line (line 17):
And substitue witsh these lines:
On evey cart operation, once it's finished and notification hides you will be redirected to cart page. So, if you remove, udpate or add an item you will be redirected. I think this funcionality is error prone, so you may face errors, but it may work.