Post by ab-oc » Wed May 06, 2015 11:24 pm

Hello everybody,

I got an issue on total-modules at the moment.
When cart value is 0.00 (caused by voucher) the tax module isn't displayed anymore.
I've digged around in source code, but didn't find the point, where this happens.

Hopefully you can point me to / help me with that issue?!
A explanation how the total modules work together would be also great ::)

Thank you very much

Andreas

New member

Posts

Joined
Tue Apr 29, 2014 11:22 pm

Post by soundzgood-nz » Sun May 10, 2015 10:28 am

Is the tax module listed by sort order after the voucher or before in Order Totals?

Simon

User avatar
Active Member

Posts

Joined
Sat Oct 25, 2014 5:15 pm
Location - New Zealand

Post by ab-oc » Sun May 10, 2015 6:01 pm

Hello Simon,

my modules listed as followed:
- subtotal
- coupon
- shipping
- voucher
- tax
- total

So I can change order and put tax before voucher, then it's displayed, but that creates a mess for german tax laws.

At the moment I understand that:

Code: Select all

public function getTotal(&$total_data, &$total, &$taxes) {
from one to the following total module the variables $total_data, $total and $taxes are given over.
In tax-module the foreach isn't accomplished, because $taxes are empty:

Code: Select all

		foreach ($taxes as $key => $value) {
			if ($value > 0) {
So tax isn't displayed.

I don't understand, why $taxes is also set to zero when $total is set to zero by voucher module?!

Maybe you or someone else knows what / why...

Regards

Andreas

New member

Posts

Joined
Tue Apr 29, 2014 11:22 pm
Who is online

Users browsing this forum: Bing [Bot] and 101 guests