Guest Posted March 26, 2004 Share Posted March 26, 2004 Hi, I'm trying to set up the cash on delivery fee module to calculate the fee as a percentage rather than a flat rate. My PHP skills aren't quite up to the job though. I understand the flow of the ot_code_fee.php file - to simplify it .... 1) sorts out whether or not a fee should be charged 2) grabs fee from database 3) sets the ot variable for cod fee to the flat amount found in step 2. What I need it to do is change step 2 above to retrieve total order amount so far. Once I've git thta, I think the rest is straightforward. Any kind person able to point me in the right direction? Cheers, Ali. Quote Link to comment Share on other sites More sharing options...
alienation Posted March 30, 2004 Share Posted March 30, 2004 I've posted a module in 'order totals' that calculates percentage on cod. It also calculates cod fee from a table if you wish. The module admin is im portuguese, but I guess it will be easy to translate. lokk for it at: http://www.oscommerce.com/community/contributions,1974 Hope it helps. Miguel Andrade Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.