Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.2.0-b1
-
Fix Version/s: 3.2.0-b2
-
Component/s: Client Interface
-
Labels:None
Description
On the wizard/checkout.pdt template, an "invalid argument supplied to foreach" error occurs on line 151.
It appears that tax totals are iterated over, however, in at least one particular instance (using the BuycPanel module), the tax totals are not an array, but rather a single float value.
i.e.
Array
(
[subtotal] => Array
(
[amount] => 1.2500
[amount_formatted] => $1.25 USD
)
[total] => Array
(
[amount] => 1.2500
[amount_formatted] => $1.25 USD
)
[total_w_tax] => Array
(
[amount] => 1.7200
[amount_formatted] => $1.72 USD
)
[tax] => 0.47
[fees] => Array
(
[setup] =>
)
[discount] => Array
(
[amount] =>
)
)
Activity
Field | Original Value | New Value |
---|---|---|
Description |
On the wizard/checkout template, an "invalid argument supplied to foreach" error occurs on line 151.
It appears that tax totals are iterated over, however, in at least one particular instance (using the BuycPanel module), the tax totals are not an array, but rather a single float value. i.e. Array ( [subtotal] => Array ( [amount] => 1.2500 [amount_formatted] => $1.25 USD ) [total] => Array ( [amount] => 1.2500 [amount_formatted] => $1.25 USD ) [total_w_tax] => Array ( [amount] => 1.7200 [amount_formatted] => $1.72 USD ) [tax] => 0.47 [fees] => Array ( [setup] => ) [discount] => Array ( [amount] => ) ) |
On the wizard/checkout.pdt template, an "invalid argument supplied to foreach" error occurs on line 151.
It appears that tax totals are iterated over, however, in at least one particular instance (using the BuycPanel module), the tax totals are not an array, but rather a single float value. i.e. Array ( [subtotal] => Array ( [amount] => 1.2500 [amount_formatted] => $1.25 USD ) [total] => Array ( [amount] => 1.2500 [amount_formatted] => $1.25 USD ) [total_w_tax] => Array ( [amount] => 1.7200 [amount_formatted] => $1.72 USD ) [tax] => 0.47 [fees] => Array ( [setup] => ) [discount] => Array ( [amount] => ) ) |
Status | Open [ 1 ] | In Progress [ 3 ] |
Security | Private [ 10000 ] |
Summary | Order Plugin: Foreach error attempting to display tax totals on wizard checkout | Order Plugin: Foreach error attempting to display tax totals on checkout |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Fixed