I am having trouble writing the correct PHP code to activate a payment module.
What I want is for the payment module to activate only if the order total exceeds a certain amount (lets say $100).
I thought it would be simple like this:
if ($this->enabled == true) {
if ($order_totals) < 100) {
$this->enabled = false;
}
}
However it's not working. I think the $order_totals is not the correct input and I do not know PHP well. Does anyone know what the correct input might be?
Thank you for your help.
Bookmarks