Forums / General Questions / Make it impossible to choose COD when Store pickup?

Make it impossible to choose COD when Store pickup?

Locked

Views: 714

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 May 2010, 11:41 AM
#1
fredsjo avatar

fredsjo

New Zenner

Join Date:
Jun 2009
Posts:
29
Plugin Contributions:
0

Make it impossible to choose COD when Store pickup?

Hi
Is it some way to make it impossible for my customers to choose COD when they choose store pickup? :lookaroun

Fredrik
NORWAY

9 May 2010, 3:24 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Make it impossible to choose COD when Store pickup?

You can customer the Cash on Delivery cod Payment module to not show when the selected Shipping Module is the Store Pickup storepickup by adding:

      $this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
      if ($_SESSION['shipping']['id'] == 'storepickup_storepickup') {
        $this->enabled = false;
      }

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!