Zen Cart Logo

ship to payment

Locked

Views: 797

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Nov 2007, 11:52 AM
#1
veganet avatar

veganet

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

ship to payment

I can associate a shipment to a payment?

example:

I have 2 shipping method, UPS and STORE PICKUP

For UPS I want to associate CREDIT CARD, CASH ON DELIVERY, and MONEY ORDER.

For STORE PICKUP I want to associate ONLY direct payment with money.

How I can DO?? TNKS :frusty:

14 Nov 2007, 1:18 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: ship to payment

$_SESSION['shipping']['id'] would give:
item_item
flat_flat
freeoptions_freeoptions
storepickup_storepickup
ups_2DA
ups_GND

Example, is shipping method ups:

substr_count($_SESSION['shipping']['id'], 'ups') !=0)

Payment module:

$_SESSION['payment']

This would give:
moneyorder
cc
cod
paypal
etc.

Now just control the $this->enabled in the module to decide when to show/hide the payment module ...

14 Nov 2007, 1:32 PM
#3
veganet avatar

veganet

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

Re: ship to payment

thank you Ajeh, I will create an admin contribution for shipping to paymet! Tnks :smile: