Activate payment module according to cart value
Posted: Fri Oct 08, 2021 3:49 am
Hello
Moving my old site from OsCommerce 2.3 to Phoenix I would like activate/deactivate moneyorder.php payment module depending of the cart value.
On OsCommerce the code was :
But unfortunately it is not working with phoenix.
Any help will be welcome,
Thanks in advance,
Sandrine
Moving my old site from OsCommerce 2.3 to Phoenix I would like activate/deactivate moneyorder.php payment module depending of the cart value.
On OsCommerce the code was :
Code: Select all
if(MODULE_PAYMENT_MONEYORDER_STATUS == 'True'){
if($_SESSION['cart']->total>299){
$this->enabled = true;
} else {
$this->enabled = false;
}
} else {
$this->enabled = false;
}Any help will be welcome,
Thanks in advance,
Sandrine