Review Order screen line item price doesn't seem to be accounting for the quantity in the total price for that line item

Posts: 29
Joined: 08/08/2007
Uber Donor

Review Order Screen: Example, a quantity of 3x a $5.00 dollar item should total $15; but only shows $5 dollars as the total for that line item. The grand total and everything else seems to be correct. Any questions or ideas for a fix, please let me know.
Thank you,
Scott

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hmm.. I think I left it like this on purpose so people could see how much each item was. But now that I think about it, I may like it your way better. Eye-wink

The fix is to find the function uc_checkout_pane_cart() in uc_cart.module. There's a line with the following code in it:

<?php
  uc_currency_format
($item->price)
?>

Change what's in the parentheses to show the total price for that line:

<?php
  uc_currency_format
($item->price * $item->qty)
?>

Posts: 29
Joined: 08/08/2007
Uber Donor

I'll do as you suggested. I just got back from the county fair. I Had a great day and now I'm going to have a great night working with Ubercart.
Thanks again,
Scott

Posts: 67
Joined: 08/10/2007

Awesome, that fixed it.

Can you guys add this to the next/dev version too (just so I don't have to do it manually every time I upgrade to the new release)?

Thanks!

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

So you don't have to wait for Ryan's response in a couple of weeks, I'll say that he's probably already put it in the dev code. But I'll be sure to check just in case he hasn't. Eye-wink