Cart Question - dont want to automatically loading the cart content page?

glouie

Joined: 2006-10-25
Posts: 2
Posted: Wed, 2006-10-25 22:02

Hi,

I'm sort of new here..my friend and I just setup my Linux Server and I added the Gallery2 app so I could share pictures with my family. Its really great, and I'm enjoying using it.. but I have a question..

Is there a way to configure the Cart so that everytime I add an item, I'm NOT redirected to the Cart Contents page?

Its really sort of annoying to have to keep clicking back to return to the album thumbnail view to select another picture to add to the cart.

thanks,

george

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-10-25 22:28

no, there's no such option out of the box. you'd have to change the module to return to the originating view instead of redirecting to the cart.

 
glouie

Joined: 2006-10-25
Posts: 2
Posted: Thu, 2006-10-26 00:53

thanks for the quick response.. i was thinking that was what the answer was going to be.. unfortunately, I don't think I have the skillz to change the original module. I guess I'll just have to live with it the way it is.. Its not that big of a deal anyway. .really just a minor annoyance.. I have the carts turned off for my users anyway.. I was just trying to select some pictures for another project..

thanks again!!

-george

 
oggg

Joined: 2006-04-22
Posts: 35
Posted: Thu, 2007-08-16 16:32

in gallery2\modules\cart\AddToCart.inc.

change:

$results['redirect']['view'] = 'cart.ViewCart';

to:

$results['return']['view'] = 'cart.ViewCart';