2 replies [Last post]
raman2385's picture
Offline
Joined: 10/20/2009
Juice: 23
Was this information Helpful?

Hi,
After much study i have finally managed to make a very generic module that will update the cart quantity on checkout pages. It will use the Drupal's jquery support to update the cart.
Please review the same.
All you have to do is to enable the module for it to work.

Thanks,
Raman

PreviewAttachmentSize
cart_in_checkout.tar.gz3.22 KB
tommeir's picture
Offline
Joined: 10/14/2009
Juice: 5
greate module. quick fix: you

greate module.
quick fix:
you forgot to remove the "remove" button for every item in the cart table.
instead of

  unset($form['panes']['cart']['cart_review_table'][0]['remove']);

use

  for($i=0;$i<count($items);$i++) { unset($form['panes']['cart']['cart_review_table'][$i]['remove']); }
sumaiya's picture
Offline
Joined: 05/31/2010
Juice: 23
remove print_r otherwise doesnt work properly

there is also a print_r statement which you have disable

print_r($qty);

make it

//print_r($qty);