News:

Looking for documentation? Take a look on our wiki

Main Menu

Plugin Payment Error

Started by Pantaleao, September 25, 2019, 19:56:53 PM

Previous topic - Next topic

Pantaleao

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

GJC Web Design

just add to the function parameters

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

to

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

line  1465
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Pantaleao


Problem solved, thank you very much...

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