Thread: 1% over total

Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2006
    Location
    Sofia, Bulgaria
    Posts
    203
    Plugin Contributions
    0

    Default 1% over total

    how can I put 1% tax over the total or sub total for cash on delivery ?
    I tried many stuffs but there is no where to put this percent

  2. #2
    Join Date
    May 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: 1% over total

    I dont know it it will take a % but look in the cod settings under the order totals modules in admin

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

    Default Re: 1% over total

    You would need to customize the current Order Totals Module for computing the 1% vs the $cod_cost based on the settings ...

    This should not be terribly hard to do, just have to adjust the cost amount to to be the total * XX to get the new $cod_cost then the rest of the calculations would work ...
    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: v1.5.5]
    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
    Join Date
    Apr 2006
    Location
    Sofia, Bulgaria
    Posts
    203
    Plugin Contributions
    0

    Default Re: 1% over total

    here U right that is nothing hard but do not have idea from php syntax and I've tried to multiply $cod_cost in cod.php pay module but nothing.

    So please can tell me more how can I make to multiply total order (* 0.01) when client USE cash on delivery .

    Where on which lines and how I mean that I dont know the syntax

    Thanks Again for everything

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

    Default Re: 1% over total

    I would have to sit down and write the code to make these changes ...

    Perhaps when I have more time to customize this code for you I will be able to do so ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Apr 2006
    Location
    Sofia, Bulgaria
    Posts
    203
    Plugin Contributions
    0

    Default Re: 1% over total

    I think will be easier for all that USE zen cart to be able at settings in COD to be able to add tax which tax will be imposed by VAT.

    Becouse in the COD method in Bulgaria the Delivery companies takes a 1% of the total billing.
    I dont now how it is in the other contries but here is that way :)

    Im thankfull for the attention of zen cart team :)
    Last edited by sicness; 1 Jun 2006 at 09:51 AM.

  7. #7
    Join Date
    Jan 2006
    Posts
    44
    Plugin Contributions
    1

    Default Re: 1% over total

    In the file catalog/includes/modules/order_total/ot_cod_fee.php
    change the following lines:
    line59
    Code:
    $cod_cost = $cod_zones[$i + 1];
    to
    Code:
    if (substr($cod_zones[i+1], -1)=='%'){
    $cod_cost = ($order->info['total']-$order->info['shipping_cost'])*((double)substr($cod_zones[i+1],0,(strlen($cod_zones[i+1])-1)))/100;
    } else {$cod_cost = $cod_zones[$i + 1];
    }
    and line 64
    Code:
    $cod_cost = $cod_zones[$i + 1];
    to
    Code:
    if (substr($cod_zones[i+1], -1)=='%'){
    $cod_cost = ($order->info['total']-$order->info['shipping_cost'])*((double)substr($cod_zones[i+1],0,(strlen($cod_zones[i+1])-1)))/100;
    } else {$cod_cost = $cod_zones[$i + 1];
    }
    This way if you enter absolute amount in the COD fee field in Admin->Modules->Order Total you will have absolute amount as a COD fee but if you enter % after the number you will get a percentage of the order total less shipping.
    Hope that helps.

  8. #8
    Join Date
    Apr 2006
    Location
    Sofia, Bulgaria
    Posts
    203
    Plugin Contributions
    0

    Default Re: 1% over total

    Now the other problem is that I cant figure out how to confugire the COD Fee Module
    I cant understand where what to put.
    Actually I need only for one country and nothing more but I cant understand which one for what it serve ?
    Negative feelings were burned by the progressive increase of Euphoria

  9. #9
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Idea or Suggestion Re: 1% over total

    Quote Originally Posted by vasilt View Post
    In the file catalog/includes/modules/order_total/ot_cod_fee.php
    change the following lines:
    line59
    Code:
    $cod_cost = $cod_zones[$i + 1];
    to
    Code:
    if (substr($cod_zones[i+1], -1)=='%'){
    $cod_cost = ($order->info['total']-$order->info['shipping_cost'])*((double)substr($cod_zones[i+1],0,(strlen($cod_zones[i+1])-1)))/100;
    } else {$cod_cost = $cod_zones[$i + 1];
    }
    and line 64
    Code:
    $cod_cost = $cod_zones[$i + 1];
    to
    Code:
    if (substr($cod_zones[i+1], -1)=='%'){
    $cod_cost = ($order->info['total']-$order->info['shipping_cost'])*((double)substr($cod_zones[i+1],0,(strlen($cod_zones[i+1])-1)))/100;
    } else {$cod_cost = $cod_zones[$i + 1];
    }
    This way if you enter absolute amount in the COD fee field in Admin->Modules->Order Total you will have absolute amount as a COD fee but if you enter % after the number you will get a percentage of the order total less shipping.
    Hope that helps.

    Very good tips!

  10. #10
    Join Date
    Apr 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: 1% over total

    Just say thanks to Vasilt, in Spain COD is a percentage also.
    You saved my day!!!

 

 

Similar Threads

  1. v150 No USPS shipping options if order total over $1000
    By spyderrobotics in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 5 Oct 2014, 02:40 PM
  2. Discount over total price with Freeoptions
    By bogyi in forum General Questions
    Replies: 1
    Last Post: 18 Mar 2011, 12:51 AM
  3. Shipping is free if total is over $20 - in two categories only
    By lyricwings in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 9 Nov 2006, 04:16 PM
  4. Shipping Won't Total Over 2000g
    By UrbanMaleClothing in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 4 Nov 2006, 11:37 AM
  5. Shipping Won't Total Over 2000g
    By UrbanMaleClothing in forum Addon Shipping Modules
    Replies: 1
    Last Post: 3 Nov 2006, 08:56 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR