Page 2 of 2

Re: Viva.Com Smart Checkout Plugin (WooCommerce) Issue

Posted: Wed Jan 21, 2026 8:10 pm
by Belkin
Aye, I have, but what's the craic if that dunnit work as well?

Re: Viva.Com Smart Checkout Plugin (WooCommerce) Issue

Posted: Wed Jan 21, 2026 8:23 pm
by Webmaster
I can promise you, it’ll definitely work. But to be straight with you, this isn't a real fix for the plugin itself—it only hides the warning from view. If your friend knows what he’s doing with code, tell him there is a proper technical solution, but he needs to be comfortable editing the plugin files.

He needs to open this specific file (it’s inside the includes folder within the plugin directory—make sure he doesn’t mix it up with the other includes folders, as there are plenty of them):

/includes/class-wc-vivacom-smart.php

Find the class definition and add this property near the top:

Code: Select all

class WC_Vivacom_Smart_Payment_Gateway extends WC_Payment_Gateway {
    public $order_status;
In other words, add

Code: Select all

public $order_status;
just under

Code: Select all

class WC_Vivacom_Smart_Payment_Gateway extends WC_Payment_Gateway {
This sorts the issue completely, satisfies the requirements for PHP 8.2 and removes the warnings entirely, rather than just hiding them. It stops the version compatibility error at the source.

Just keep in mind that this change will be overwritten if the plugin is updated. We’ll have to hope the Viva techies actually update their code to the standard I’ve given you here. Best of luck.

Re: Viva.Com Smart Checkout Plugin (WooCommerce) Issue

Posted: Wed Jan 21, 2026 8:24 pm
by Belkin
Nice one, man. Pure class!

By the way, something just occurred to me

Posted: Wed Jan 21, 2026 8:28 pm
by Webmaster
No problem at all, mate—glad I could be of use.

By the way, something just occurred to me. You got access to your hosting panel? If you do, have a look and see if it lets you change the PHP versions. If it does, you don't need a soul to help you. Just hop into your control panel, click on the PHP settings, and dial the version back to anything below 8.2. Job's a good 'un—the error will vanish.

This’ll work a million per cent, and you won't need any coding skills whatsoever.

Re: Viva.Com Smart Checkout Plugin (WooCommerce) Issue

Posted: Wed Jan 21, 2026 8:30 pm
by Belkin
You had to start with this, really. Yes, it's now fully sorted. In a few clicks :-) THANK YOU!