Zen Cart Logo
Forums / General Questions / Enable COD only for customers with Company

Enable COD only for customers with Company

Locked

Views: 741

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 May 2009, 2:37 PM
#1
rayspike avatar

rayspike

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Enable COD only for customers with Company

Is it posible to use the COD only for customers who have a Company Name filled in in the create account.

In the cod.php there is a statement

      if ($this->enabled == true) {
        if ($order->content_type != 'physical') {
          $this->enabled = false;
        }
      }

Thisw statement tells that if products are not physical there is no cod on checkout. I want the same only for customers with an company name and the the module must be shown, instead of not

9 May 2009, 8:35 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Enable COD only for customers with Company

You should be able to use:
$order->delivery['company'] <-- shipping
$order->billing['company'] <-- payment
$order->customer['company'] <-- customer