Post by LédiFrance » Sun Aug 09, 2015 7:27 pm

Hi,

Though taxes are calculated according to their priority, it seems that they are not displayed sorted on the checkout page. Am I missing something ? Is there an easy way to fix that ?

Thanks.

Newbie

Posts

Joined
Wed Jul 22, 2015 10:40 pm

Post by LédiFrance » Sun Aug 09, 2015 9:54 pm

Actually taxes are correctly ordered until this call in "catalog/controller/checkout/cart.php" :

Code: Select all

array_multisort($sort_order, SORT_ASC, $total_data);
The array_multisort function gets rid of the initial ordering in case of equality on the sortering key (which here is the sort order as defined between total, subtotal, taxes, etc., and therefore is the same for all taxes).

I believe this should be considered as a bug.

Newbie

Posts

Joined
Wed Jul 22, 2015 10:40 pm

Post by LédiFrance » Sun Aug 09, 2015 11:43 pm

Not really a bug fix, but here is a workaround.

Newbie

Posts

Joined
Wed Jul 22, 2015 10:40 pm
Who is online

Users browsing this forum: No registered users and 17 guests