Guest Posted July 31, 2004 Posted July 31, 2004 Let me describe the problem: Product price = $53.99 Customer purchases item, attempts to use credit card to pay. When charge goes through (using payflow link module), charge attempted at merchant is $5399.00 . Charge is denied in most cases, if not will have to be reversed. We moved the website from a freebsd managed hosting server to a redhat linux with cpanel server thursday night, problem has been occuring since then, have had to start manually entering all credit card orders. I thought perhaps it was some sort of decimal point problem but I can't find any settings for it. Any advice or suggestions would be greatly appreciated, I am also looking for a oscommerce expert who is interested in working closely with the website owner to do upgrades, support, etc....
benfiesta Posted August 1, 2004 Posted August 1, 2004 If you have the same problem I had it's a decimal point error in the total. In my case the decimal point had to be a comma for the payflow to work but no matter how I defined it in currencies it would come out as a point. I'll shamefully admit that I just made a workaround by not using decimal values in currencies (setting number of decimals to 0). Naturally, if anyone would know how to rectify this it would be of great help to me too. Thx, Ben
Guest Posted August 1, 2004 Posted August 1, 2004 Unfortunately I get the following error when I click on currencies: Parse error: parse error, unexpected $, expecting ')' in /home/username/public_html/catalog/admin/currencies.php on line 351 So while this likely may be my problem, I'm really not sure how to fix this.
benfiesta Posted August 1, 2004 Posted August 1, 2004 Try opening the offending php file (admin/currencies.php) and check that there are no blank lines at the end. Some text editors (I've noticed..) add empty lines at the end. There should be no blank lines below the closing ?> in the document.
Guest Posted August 1, 2004 Posted August 1, 2004 tep_redirect(tep_href_link(FILENAME_CURRENCIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $HTTP_GET_VARS['cID'])); break; case 'delete': $currencies_id = tep_db_prepare_input( These are the last things in the file and there is nothing else there.
benfiesta Posted August 1, 2004 Posted August 1, 2004 if those are the last lines in your file the file is broken - maybe you've worked that out by now. Since my installation is pretty customized it's no good for you to get a new file from me - I suggest downloading a new oscommerce package (make sure you get the right version) and get the file from there. If you run into other wierd errors - if one file is broken there may be others.. Ben
Recommended Posts
Archived
This topic is now archived and is closed to further replies.