Forums / Built-in Shipping and Payment Modules / Tie payment to certain shipping?

Tie payment to certain shipping?

Locked

Started by liah on 28 Jul 2006, 2:08 PM · Views: 1,145

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
28 Jul 2006, 2:08 PM
#1
liah avatar

liah

New Zenner

Join Date:
Mar 2006
Posts:
65
Plugin Contributions:
0

Tie payment to certain shipping?

I have two shipping methods.

a) send the products to the costumers (mail package)
b) Pick up the products in the store.

Can you tie my payment option "Pay in store when you pick up the package." to B? Now you can select to pay in store even though you might live in another country.

31 Jul 2006, 1:41 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Tie payment to certain shipping?

If you look in the modules ... there is a setting for $this->enabled

When that value is true, the module can run ...

When it is false the module cannot run ...

To work around the $this->enabled = true for being installed, you can use a function to test some condition to control it beyond the fact that it was installed ...

Using a function that tests the shipping method, you can determin when to allow which payment module to run ...

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!