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
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
I dont know it it will take a % but look in the cod settings under the order totals modules in admin
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!
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
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!
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.
In the file catalog/includes/modules/order_total/ot_cod_fee.php
change the following lines:
line59toCode:$cod_cost = $cod_zones[$i + 1];and line 64Code: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]; }toCode:$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.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]; }
Hope that helps.
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
Just say thanks to Vasilt, in Spain COD is a percentage also.
You saved my day!!!![]()
Bookmarks