Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a COD Fee


jackiteIT

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by goodbrains
Link to comment
Share on other sites

  • 2 months later...

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

Full Speed Ahead, Damn the Torpedoes!

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...