[ic] disable payment mode based in shipping

Peter peter at pajamian.dhs.org
Sat Jun 14 23:13:21 UTC 2008


On 06/14/2008 06:36 AM, Salvador Caballé wrote:
> I have 2 shipping modes A , B. If the customer selects mode A, I need to 
> disable COD payment mode, and enable this payment mode  if the customer 
> selects  mode B.
> 
> I search  docs and list archive but I not found any information or idea to do 
> that, could some one help me.

Look in the files include/checkout/payment_select and 
payment_select_multi, find the line for:
               [if variable COD_ACCEPTED]

...and add a check in there for the correct shipmode.  The shipmode is 
stored in the mv_shipmode value space, so you can do something like:

[if variable COD_ACCEPTED]
[and value mv_shipmode eq foo]


Peter




More information about the interchange-users mailing list