I have the redirect to cart functionality working, with views hack. Basically I'm just leveraging the exiting ubercart redirect functionality.
In store admin > configuration > cart settings: put the path to your cart (probably just 'cart') in the field 'Add to cart redirect'
Now you will have to add in a line of code into the multibuy module (this should probably get rolled into the next version as has no other impact). I posted this back at #82 in this thread but have reposted below:
The following is added to the end of the uc_multibuy_form_submit() function.
<?php
//Added to get redirect functionality -SB 15/07/2010
if (isset($_GET['destination'])) {
drupal_goto();
}
$redirect = variable_get('uc_add_item_redirect', 'cart');
if ($redirect != '<none>') {
$_SESSION['uc_cart_last_url'] = uc_referer_uri();
drupal_goto($redirect);
}
else {
drupal_goto(uc_referer_uri());
}
?>Thats it, the multibuy form should now respect the cart redirect setting.
