Hey<div>uc_cart_add_item has redirect logic bundled into it.</div><div>Have a look at the additional parameters.</div><div>Have a look at how uc subproduct does it here: <a href="http://drupalcode.org/project/uc_subproduct.git/blob/refs/heads/6.x-1.x:/uc_subproduct.module#l797">http://drupalcode.org/project/uc_subproduct.git/blob/refs/heads/6.x-1.x:/uc_subproduct.module#l797</a>, it's table lets you add multiple products to the cart in one go</div>
<div><br></div><div>Lee Rowlands<br><br><div class="gmail_quote">On 3 July 2012 18:39, Athanasios Velios <span dir="ltr"><<a href="mailto:a.velios@gmail.com" target="_blank">a.velios@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<br>
<br>
I thought I will post a message before creating a new issue at <a href="http://drupal.org" target="_blank">drupal.org</a>.<br>
<br>
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?<br>
<br>
More specifically, I have a new "add to cart" action which has recently been committed to ubercart here: <a href="http://drupal.org/files/uc_vbo_1.patch" target="_blank">http://drupal.org/files/uc_<u></u>vbo_1.patch</a><br>
and I want the View to redirect the user to /cart after the products have been added.<br>
<br>
Thank you in advance for any ideas.<br>
<br>
Thanasis<br>
</blockquote></div><br></div>