Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php errors thrown from Check/Money Order option


Recommended Posts

Posted

OK, if I change the moneyorder.php file in /catalog/includes/languages/english/modules/payment/ to include my company details on the html page, I get php errors as detailed below. This occurs after I hit the "Confirm order" button...whether it's a check/MO, Credit or Phone in Payment...

 

Warning: Cannot modify header information - headers already sent by (output started at /home/zacdog/public_html/store/includes/languages/english/modules/payment/moneyorder.php:8) in /home/zacdog/public_html/store/includes/functions/general.php on line 23

 

So basically, I am unable to modify what is displayed to the user...so they'll make the cheque/Money order out to the default "Your Company, Inc. Something St etc etc"

 

Help please!

Thanks, when this works, I'm set,,,except the Aus Bank payments isn;t working

Posted

it looks like you may have modified your moneyorder.php file and left 'white space' in the file.

go to the knowledge base and do a search on headers already sent and you will see a pretty good description of what you need to do.

 

remember, search is your best friend here . . .

Posted

Original file is below. This is exactly copy-pasted from the original, which WORKS

I checked the headers alreadsy sent on the knowledge database which said to look for whitespaces

<?php

 define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Make Payable To:<br>' . '   Your Company, Inc.<br>' . '   555 Something St.<br>' . '   Sometown, ST 00000<br><br>' . ' Your order will not ship until we receive payment.');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', 'Make Payable To:' . "\n\n" . 'Your Company, Inc.' . "\n" . '555 Something St.' . "\n" . 'Sometown, ST 00000' . "\n\n" . 'Your order will not ship until we receive payment.');
?>

 

I want to change it to:

 

<?php

 define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Cheque/Money Order');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Make Payable To:<br>' . '   Heresy Snow<br>' . '   1 Kurrajong St<br>' . '   Bentleigh East, Vic 3165<br><br>' . ' Your order will not ship until we receive payment.');
 define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', 'Make Payable To:' . "\n\n" . 'Heresy Snow' . "\n" . '1 Kurrajong St' . "\n" . 'bentleigh East Vic 3165' . "\n\n" . 'Your order will not ship until we receive payment.');
?>

Posted

Edited file locally in DW MX and found some whitespaces that were not evident in CPanel X online editing.

 

Download files to local machine, edit and upload.

 

super.

If only yhe Ausbank module would work

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.

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