VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Pantaleao on September 25, 2019, 19:56:53 PM

Title: Plugin Payment Error
Post by: Pantaleao on September 25, 2019, 19:56:53 PM
Good afternoon!

See if you can help me.

I'm having an error every minute on the site:

PHP Warning: plgVmPaymentGerencianet :: setCartPrices statement (VirtueMartCart $ cart, & $ cart_prices, $ method) must be compatible with vmPSPlugin :: setCartPrices (VirtueMartCart $ cart, & $ cart_prices, $ method, $ progressive = true) in / home / xxxxxxxxx / public_html / plugins / vmpayment / managernet / managersnet.php at line 1465


Payment Plugin: Gerencianet
Joomla 3.9.12
PHP 7.2
VirtueMart 3.4.2
Title: Re: Plugin Payment Error
Post by: GJC Web Design on September 25, 2019, 23:05:24 PM
just add to the function parameters

setCartPrices (VirtueMartCart $cart, & $cart_prices, $method)

to

setCartPrices (VirtueMartCart $cart, & $cart_prices, $method, true)

line  1465
Title: Re: Plugin Payment Error
Post by: Pantaleao on September 27, 2019, 21:42:37 PM

Problem solved, thank you very much...

function setCartPrices (VirtueMartCart $cart, &$cart_prices, $method, $progressive=true) {
        return parent::setCartPrices($cart, $cart_prices, $method, $progressive=true);
    }