jackiteIT Posted April 28, 2004 Share Posted April 28, 2004 I'm trying to add a COD fee to my order total module. The old site had it, but I cannot figure out how to add it to the new site. What I have done so far: 1. Made a copy of the ot_loworderfee.php file in the catalog/includes/modules/order_total/ directory and renamed it to ot_cod.php. 2. Did a find and replace of anything that said low order, etc and changed it to COD in the file. 3. uploaded it to the server. When I logged into admin and tried to install it, I was getting a stream error message in the order totals screen. Here's the exact error messages: Warning: main(/home/jackite/public_html/includes/languages/english/modules/order_total/ot_cod.php): failed to open stream: No such file or directory in /home/jackite/public_html/admin/modules.php on line 128 Warning: main(): Failed opening '/home/jackite/public_html/includes/languages/english/modules/order_total/ot_cod.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jackite/public_html/admin/modules.php on line 128 Any help would be greatly appreciated. Thanks! Cody Quote Link to comment Share on other sites More sharing options...
goodbrains Posted April 28, 2004 Share Posted April 28, 2004 Hi. Now I can't say I am anytype of expert, but I am currently working on something similar (in that I am messing around with the order total module. From the looks of the errors, I would say at least to begin with, you have not created and uploaded new language files for this new module page. look in includes/languages/english/modules/order_total for the language page. Here you will find some definitions that would need tweeked. Quote Link to comment Share on other sites More sharing options...
goodbrains Posted April 28, 2004 Share Posted April 28, 2004 (edited) p.s. you will want to make sure that your class name definition is named the same as the file Example: includes/modules/order_total/ot_cod.php //DECLARES class ot_cod { var $title, $output; function{ } function {} } //end class Edited April 28, 2004 by goodbrains Quote Link to comment Share on other sites More sharing options...
klipywitz Posted July 13, 2004 Share Posted July 13, 2004 If you guys do manage to have news on this topic, could you please let me know? I am also extremely interested in solving this so that I can add a COD fee, as the old version seemed to have it. Thanks! daniel Quote Full Speed Ahead, Damn the Torpedoes! Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2004 Share Posted July 30, 2004 the new version "has it" but i can't get it to work! i check COD for payment but it wont add the fee, i don't get it!! Quote Link to comment Share on other sites More sharing options...
1quicksi Posted August 19, 2004 Share Posted August 19, 2004 (edited) There is a contribution that does just this by Chris Dunning. http://www.oscommerce.com/community/contri...h,chris+dunning Edited August 19, 2004 by 1quicksi Quote knowledge base | Contributions | Search 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.
Note: Your post will require moderator approval before it will be visible.