Re: Views Bulk Operations redirect
Lee Rowlands <[email protected]> Wed, 4 Jul 2012 06:35:22 +1000
| Newsgroups | gmane.comp.php.drupal.devel |
|---|---|
| Message-ID | <CA+SZrLbv=DoNmrSur8cfEfGKBfwRkyv4VdO2uBxTh224dB3W9g@mail.gmail.com> |
Hey uc_cart_add_item has redirect logic bundled into it. Have a look at the additional parameters. Have a look at how uc subproduct does it here: http://drupalcode.org/project/uc_subproduct.git/blob/refs/heads/6.x-1.x:/uc_subproduct.module#l797, it's table lets you add multiple products to the cart in one go Lee Rowlands On 3 July 2012 18:39, Athanasios Velios <[email protected]> wrote: > > Hello, > > I thought I will post a message before creating a new issue at drupal.org. > > I have a View with a VBO field and a single action. I want to redirect the > user to another page once the action is completed. I am able to do this > with ?destination=url or $form['redirect'], but the action only takes place > for the first item in the list and not the rest. Any ideas? > > More specifically, I have a new "add to cart" action which has recently > been committed to ubercart here: http://drupal.org/files/uc_**vbo_1.patch<http://drupal.org/files/uc_vbo_1.patch> > and I want the View to redirect the user to /cart after the products have > been added. > > Thank you in advance for any ideas. > > Thanasis >