wplaschg/iso-payment-mpay24-wmbi — Issue #1: Surcharges should be passed to template
Author: AndreasA
Created: 2012-01-26 20:28:24+00:00
State: open

Hello,

I just implemented this with my just acquired test account for mPAY24 (we will now probably buy mPAY24 as it works fine with this module) and I noticed that you don't pass on the surcharges (from isotope_rules) used for e.g. discounts to the template.

It is really simple to pass those on to the template (and then modify the template to use them, passing on just requires to add, e.g. after:

$objMdxiTemplate->tax = number_format($this->Isotope->Cart->taxTotal, 2);
$objMdxiTemplate->price = number_format($this->Isotope->Cart->grandTotal, 2);

the following (should be added):

$objMdxiTemplate->surcharges = $this->Isotope->Cart->surcharges;