Results 1 to 5 of 5
  1. #1

    red flag Add fee percentage for COD payment


    I'm sorry for my english but i'm italian, classic pizza and spaghetti...
    I would like add 5% at the total if the customers chose COD payment. It's possible? Now i can add a fix cost but no percentage...thankyou from Italy

    www.avotecnica.com/minimoto is my future site..

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add fee percentage for COD payment

    It looks like Zencart just supports a fixed fee. Can you average the fee over all expected COD ordrs?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add fee percentage for COD payment

    You could customize the file:
    /includes/modules/order_total/ot_cod_fee.php

    and change the code at:
    Code:
                for ($i = 0; $i < count($cod_zones); $i++) {
                  if ($cod_zones[$i] == $order->delivery['country']['iso_code_2']) {
                      $cod_cost = $cod_zones[$i + 1];
                      $cod_country = true;
                      //print('match' . $i . ': ' . $cod_cost);
                      break;
                    } elseif ($cod_zones[$i] == '00') {
                      $cod_cost = $cod_zones[$i + 1];
                      $cod_country = true;
                      //print('match' . $i . ': ' . $cod_cost);
                      break;
                    } else {
                      //print('no match');
                    }
                  $i++;
                }
    and have the $cod_cost built based on a percentage rather than a flat amount ...
    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!

  4. #4

    Default Re: Add fee percentage for COD payment



    i had install mod Credit Card Surcharge Fee and it's ok but the result is: TOTALE xx €uro and then there is + XX €uro for the COD but i'd like to do the sum of the two results.

    In the superinvoice it's ok:
    Totale parziale: 106 €
    Spedizione a peso: 30 €
    IVA 20.0%: 18 €
    Totale: 136 €
    Supplemento contrassegno: +7 € (add percentage 5% COD)
    Amount Applied: 0 €
    Balance Due: 143 € <<<<OK

    but in the list of the superorder and in the history of the customer the total is 136 €uro and not 143...
    It's possible (best solution) sum the order[total] + the percentage for the COD or hide the Balance Due and not the normal total (not the best solution)?

  5. #5
    Join Date
    Nov 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Add fee percentage for COD payment

    Hello say the same thing as avotecnica partner, I apologize for my English.

    There are ways to modify the COD payment module that you can purchase a fixed amount up to 100 euros and as a percentage of this amount.

    Thanks

 

 

Similar Threads

  1. v150 Need some Help in COD. COD fee depending on order price
    By bratsangels in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 16 Sep 2012, 12:53 PM
  2. Cod fee for groups?
    By Unicorn in forum Managing Customers and Orders
    Replies: 9
    Last Post: 29 Jul 2010, 12:19 PM
  3. Add a percentage of postage fee to total of purchase
    By laurieudy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jul 2008, 09:40 PM
  4. Handling fee for COD payment
    By Stoned-6 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Oct 2007, 06:23 PM
  5. Associating a cost with a payment option -- COD Fee
    By kiyosaru in forum Addon Payment Modules
    Replies: 1
    Last Post: 21 Sep 2006, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg