Originally Posted by
ilmarchez
Thank you. How should I modify the code of the module to have it applying the minimum order condition only to wholesale?
Thanks again for all.
Change lines like these:
PHP Code:
if ($_SESSION['cart']->count_contents() > 0 && MIN_FIRST_ORDER_AMOUNT > 0) {
to
PHP Code:
if ($_SESSION['cart']->count_contents() > 0 && MIN_FIRST_ORDER_AMOUNT > 0 && $_SESSION['customer_whole'] == 1) {
and
PHP Code:
if($_SESSION['cart']->show_total() < MIN_FIRST_ORDER_AMOUNT) {
to
PHP Code:
if($_SESSION['cart']->show_total() < MIN_FIRST_ORDER_AMOUNT && $_SESSION['customer_whole'] == 1) {
That should only flag orders that are wholesale... where $_SESSION['customer_whole'] == 1
Bookmarks