Order total is always zero for Beta6 for Checkout Screen

Posts: 8
Joined: 02/11/2008

On Checkout Screen under Payment Method the Order Total are 0.

Regardless of what the amount for the order is then when you goto payment it shows:

Order total preview:
Order total: 0

The next page with "Review order" shows the correct information. I have change the code in uc_order where was duplicate model = '%s', to only one but the calculation still shows zero. But when I submit to paypal. Paypal tells me that the amount has to be greater than zero even through that the Review order shows something that is different from zero.

I am using Drupal 5.7 with MySQL 4 and PHP4.

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

Do you have Javascript turned off?

Posts: 8
Joined: 02/11/2008

Yes, I have Javascript turned on.

Posts: 8
Joined: 02/11/2008

I also get this errors:

warning: usort(): The argument should be an array in ubercart/payment/uc_payment/uc_payment.module on line 544.
warning: Invalid argument supplied for foreach() in ubercart/payment/uc_payment/uc_payment.module on line 550.

in the payment method (I have turned extended error on with Devel module).

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

There's no way for me to tell what's going on here, but it sounds like some sort of configuration problem or module conflict. Perhaps trying it with Devel disabled will bring up different results? I know it's caused conflicts in the past.

Posts: 8
Joined: 02/11/2008

Hi Ryan,

I have now tested disabled one module at the time and found out that localizer and ubercart have some conflict that can't work together. Do you know any multilingual module that doesn't conflict with Ubercart?

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

You can try picking this up in the localizer module's issue tracker... I'm not sure if i18n will work or not. The issue is that some paths shouldn't be "localized." Any system path, like our AJAX paths or image paths, shouldn't be routed through localizer... but even then I'd imagine the module should pick up on these exceptions. So... I don't really have a solid recommendation, just a general vibe that the module shouldn't be breaking things like this. Sad

Posts: 85
Joined: 02/14/2008
Bug FinderGetting busy with the Ubercode.Internationalizationizer

I use i18n again. Some things are not perfect, but there are more people working on it and you can find already good tips, e.g. how to translate variables like 'Add to cart' or 'Catalog':
http://www.ubercart.org/forum/internationalization/29/translation