Thanks dblToe/ChatGPT
it looked promising but $minOrderRetail = getConfigValue('MIN_ORDER_AMOUNT'); and
$minOrderWholesale = getConfigValue('MIN_ORDER_WS_AMOUNT'); gave me the error below:
[12-Nov-2024 16:12:15 US/Eastern] PHP Fatal error: Uncaught Error: Call to undefined function getConfigValue() in /includes/classes/observers/class.minimum_order_amount.php:81
Stack trace:
#0 /includes/classes/traits/NotifierManager.php(87): minimum_order_amount->update(Object(notifier), 'NOTIFY_HEADER_E...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 /includes/modules/pages/shopping_cart/header_php.php(192): base->notify('NOTIFY_HEADER_E...')
#2 /index.php(35): require('/volume1/web/st...')
#3 {main}
thrown in /includes/classes/observers/class.minimum_order_amount.php on line 81
[12-Nov-2024 16:12:15 US/Eastern] Request URI: /shopping_cart.html, IP address: 192.168.1.123
--> PHP Fatal error: Uncaught Error: Call to undefined function getConfigValue() in /includes/classes/observers/class.minimum_order_amount.php:81
Stack trace:
#0 /includes/classes/traits/NotifierManager.php(87): minimum_order_amount->update(Object(notifier), 'NOTIFY_HEADER_E...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 /includes/modules/pages/shopping_cart/header_php.php(192): base->notify('NOTIFY_HEADER_E...')
#2 /index.php(35): require('/volume1/web/st...')
#3 {main}
thrown in /includes/classes/observers/class.minimum_order_amount.php on line 81.
[12-Nov-2024 16:12:15 US/Eastern] Request URI: /shopping_cart.html, IP address: 192.168.1.123
--> PHP Fatal error: Uncaught Error: Call to undefined function getConfigValue() in /includes/classes/observers/class.minimum_order_amount.php:81
Stack trace:
#0 /includes/classes/traits/NotifierManager.php(87): minimum_order_amount->update(Object(notifier), 'NOTIFY_HEADER_E...', Array, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 /includes/modules/pages/shopping_cart/header_php.php(192): base->notify('NOTIFY_HEADER_E...')
#2 /index.php(35): require('/volume1/web/st...')
#3 {main}
thrown in /includes/classes/observers/class.minimum_order_amount.php on line 81.
$minOrderWholesale = defined('MIN_ORDER_WS_AMOUNT') ? MIN_ORDER_WS_AMOUNT : 400;
$minOrderRetail = defined('MIN_ORDER_AMOUNT') ? MIN_ORDER_AMOUNT : 100;
did work but it doesn't solve my problem. Is there an alternative to getConfigValue?