Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

COD problem


Huldremor

Recommended Posts

I'm trying to set the cod fee, but in Order Total I only get these warnings:

 

Warning: main(/home/hjemmem/www/catalog/includes/languages/norwegian/modules/order_total/ot_fixed_payment_chg.php): failed to open stream: No such file or directory in /home/hjemmem/www/catalog/admin/modules.php on line 128

 

Warning: main(/home/hjemmem/www/catalog/includes/languages/norwegian/modules/order_total/ot_fixed_payment_chg.php): failed to open stream: No such file or directory in /home/hjemmem/www/catalog/admin/modules.php on line 128

 

Warning: main(): Failed opening '/home/hjemmem/www/catalog/includes/languages/norwegian/modules/order_total/ot_fixed_payment_chg.php' for inclusion (include_path='.:') in /home/hjemmem/www/catalog/admin/modules.php on line 128

 

 

Now, if I try and move that file to norwegian/modules/order_total, I lose the function all together. If I put it in both the language module and the ordinary one, it cannot redeclare. And if I put it in the ordinary module directory, the warnings come back aswell.

 

What to do..?

Link to comment
Share on other sites

looking on the details of your errors, it seems to me that the ot_fixed_payment_chg.php file is missing.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

This is the same problem you had earlier.

 

For every file in /includes/languages/english/...... and any directory in it, there should be one in /includes/languages/norwegian/.........

 

Not just /includes/languages/norwegian/modules/payment/....

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

This is the same problem you had earlier.

 

For every file in /includes/languages/english/...... and any directory in it, there should be one in /includes/languages/norwegian/.........

 

Not just /includes/languages/norwegian/modules/payment/....

 

I think I have one too many, actually... I get the "cannot redeclare" when I try and put it in both directories. It should be in the norwegian and the english directory - but what about the modules under catalog?

 

Or should there even BE one?

Have I messed this up completely..?

Link to comment
Share on other sites

The files in the language directories should only have DEFINE lines in them, no code.

 

So if you have put any file in these directories that have any lines containing <?php delte them from there/take them out and put them back where you got them from.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

The files in the language directories should only have DEFINE lines in them, no code.

 

So if you have put any file in these directories that have any lines containing <?php delte them from there/take them out and put them back where you got them from.

 

 

Aaah, that was the culprit - two codes and only one define. The warnings are gone now - thanks a million! :)

 

But the cod fee still won't show up in check out, though, I get the option but not the fee... Any thoughts?

Link to comment
Share on other sites

There is no charge for cash on delivery.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

How then can you add a cost to the customer for COD???

 

You could try searching the contributions for one that does this and install it but with your record ........

 

:-)

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

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...