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 <a.velios@gmail.com> 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
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