Conditional actions, Condition: Order has a product of a particular class returns errors on Order complete

Project:Ubercart Contributions
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

I added two Tax rules to add tax to the shipping depending on the product class. Each of these rules has a Conditional action. The rule is applied if the Condition: Order has a product of a particular class is true and the appropiate tax is addes. This works fine on the checkout and the review order page. On the Order complete page I get the following warning several times:

warning: Invalid argument supplied for foreach() in ../modules/ubercart/uc_cart/uc_cart.ca.inc on line 126.

Deactivating the conditional action removes this warning. Unfortunately I need these rules to apply the correct shipping taxes.

I run drupal 6.16, Ubercart 6.x-2.2, Ubercart 2 VAT support 6.x-1.1

ButterCup's picture
Offline
Joined: 09/04/2010
Juice: 9
#1

Does it calculate and apply the shipping taxes correctly?

sampaka's picture
Offline
Joined: 02/22/2011
Juice: 8
#2

hi - did you find any answer to it? i have the same problems with Taxes that should change in relation to the product class. Maybe you found an workaround? thanks in advance

ButterCup's picture
Offline
Joined: 09/04/2010
Juice: 9
#3

To follow up, I had the same problem it seemed. The taxes were not being displayed, however the total was correct. Essentially letting me know it was a display issue. I turned on all the panes in Checkout settings and it corrected the issue.