[ic] COD handling

Ed LaFrance (New Media E.M.S.) ic_users at newmediaems.com
Mon Jul 12 17:28:02 EDT 2004


At 12:44 PM 7/12/2004, you wrote:

>I've seached myself silly on the list archives, but I havent found an 
>answer yet. It is something that has been asked before many times, but 
>there is no complete answer anywhere;
>If I select COD as a payment method a message is displayed 'There will be 
>a 0.00 charge added for COD'. Can somebody explain to in simple words me 
>how I can change this into something more useful (I am an ic newbie)? 
>Furthermore, I cant understand why such a trivial function isnt accessable 
>easier. I guess that every mechant is offering this payment method, so why 
>isnt there a way to change the charge via the UI? Just about everything is 
>changable like that, exept COD charges.
>
>-Patrick

This appears to be an unfinished part of the foundation demo - there are a 
few of these kinds of things about, so do not be too surprised. The COD fee 
is set up to be gotten from a 'handling' shipping method, but there is no 
such method in the demo. So you would need to add a new method named 'cod', 
which simply applies a fixed charge to any shipment, i.e. (when looking at 
shipping.asc):

cod     C.O.D. Fee      1       1       1       3.50


This would add $3.50 to any order when applied. The other thing you would 
want, which does not happen currently, is to recalculate the checkout page 
via form submission each time the payment method is changed. To do this you 
would just make the javascript call in include/checkout/payment_select:

*** payment_select.bak  2004-07-12 14:25:57.000000000 -0700
--- payment_select      2004-07-12 14:26:25.000000000 -0700
***************
*** 51,63 ****
   </script>
   [/if]

!               <SELECT NAME="mv_order_profile"
!                               onChange="[if scratch old_browser]
! 
this.form.submit()
!                                                       [else]
!                                                               visible()
!                                                       [/else]
!                                                       [/if]">
                 [if variable CREDIT_CARDS_ACCEPTED]
                 <option [selected mv_order_profile credit_card] 
value="credit_card">[L]Credit Card[/L]
                 [/if]
--- 51,57 ----
   </script>
   [/if]

!               <SELECT NAME="mv_order_profile" onChange="this.form.submit()">
                 [if variable CREDIT_CARDS_ACCEPTED]
                 <option [selected mv_order_profile credit_card] 
value="credit_card">[L]Credit Card[/L]
                 [/if]


- Ed



===============================================================
New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          Ed.LaFrance at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
=============================================================== 



More information about the interchange-users mailing list