hello, i must had modified the plugin since it seems it's not compatible with your VM version:
/plugins/vmpayment/payulatam/payulatam.php
the original code inside function _getHtmlForm($method, $order, $cart)
- Code: Select all
$iva = floatval($cart->pricesUnformatted['taxAmount']);
$baseIva = 0;
if($iva != 0) {
$baseIva = floatval($cart->pricesUnformatted['basePrice']);
} if (isset($cart->pricesUnformatted['priceWithoutTax'])) { $baseOva = floatval($cart->pricesUnformatted['priceWithoutTax']);
comment the above code, and add the proper lines like this:
- Code: Select all
/*
$iva = floatval($cart->pricesUnformatted['taxAmount']);
$baseIva = 0;
if($iva != 0) {
$baseIva = floatval($cart->pricesUnformatted['basePrice']);
} if (isset($cart->pricesUnformatted['priceWithoutTax'])) { $baseOva = floatval($cart->pricesUnformatted['priceWithoutTax']); }
*/
$iva = floatval($order['details']['BT']->order_tax);
$baseOva = floatval($order['details']['BT']->order_subtotal);
plugin version (just for the reference):
- Code: Select all
<name>PayuLatam</name>
<creationDate>April 7 2014</creationDate>
<author>Payu Latam Development Team</author>
<copyright>Copyright (C) 2014 Virtuemart Team. All rights reserved</copyright>
<version>2.5</version>
<description>Payu Latam Payment Plugin for VirtueMart</description>
best regards, stan