This is a discussion on Cash on Delivery doesn't work within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi Michael, Ok I bit the bullet. Dropped all the data base tables, deleted all files on host server and ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#11
| |||
| |||
| Hi Michael, Ok I bit the bullet. Dropped all the data base tables, deleted all files on host server and up loaded new RC2 files. A clean install. I added one category and one test product and proceeded to checkout. COD did not show up. You get the message that 'This is currently the only payment method available for use on this order"... but there is no listed payment method below it. If you proceed to the next stage COD shows up as method of payment! Next I installed the Credit Card & Check / Money Order modules - they work fine. Can turn them on or off, install / uninstall etc they are rock solid. When only one is selected the 'select buttons' disappear and you get the 'This is currently the only payment ...etc'. This happens even if COD is 'true' as well. Tried many combinations with COD, all to no avail. Any ideas?? Cheers Tim For completeness, I should note that my US based hosting company insists on the four minor changes to the oscommerce code prior to install (on the basis of security they say). I cannot see how these affect the items listed above, but want to be thorough! Edit the file install/templates/pages/install_2.php On line 78(approx), replace 0: $script_filename = getenv('PATH_TRANSLATED'); if (empty($script_filename)) { $script_filename = getenv('SCRIPT_FILENAME'); } with : $script_filename = getenv('PATH_TRANSLATED'); //if (empty($script_filename)) { $script_filename = getenv('SCRIPT_FILENAME'); //} Edit the file install/templates/pages/install_3.php On line 14(approx), replace : $script_filename = getenv('PATH_TRANSLATED'); if (empty($script_filename)) { $script_filename = getenv('SCRIPT_FILENAME'); } with : $script_filename = getenv('PATH_TRANSLATED'); //if (empty($script_filename)) { $script_filename = getenv('SCRIPT_FILENAME'); //} Edit the file includes/application_top.php On line 43(approx), replace : if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; with : $PHP_SELF = ($_SERVER['SCRIPT_URL'] == '/') ? '/index.php' : $_SERVER['SCRIPT_URL']; Edit the file admin/includes/application_top.php On line 35(approx), replace : $PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ?$HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']); with : $PHP_SELF = (!empty($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']); |
| Sponsored Links | ||
| ||
|
#12
| |||
| |||
| OK, here's the thing, the reason the COD was not showing (and the other module I added) was that they both contained a 'disable if the cart contains a virtual product' section of code.... and for some reason all the products I have been adding default to content_type virtual. Comment out the section of code and it works just fine. So the question now is - why are my products defaulting to virtual?? I will pursue this in a different thread! Thanks for the help provided. Cheers Tim |
|
#13
| ||||
| ||||
| If you have a zero weight for a product, it is virtual.
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cash on pickup question | knullhund | osCMax v1.7 Discussion | 0 | 12-23-2004 08:24 PM |
| Admin ONLY for Cash or Check Purchase | JRiley | osCommerce 2.2 Modification Help | 0 | 11-17-2004 03:47 PM |
| Cash register icon top right of center box. | samsin1 | osCMax v1.7 Installation | 1 | 04-20-2004 09:25 AM |
| Delivery Address | lesmith | osCommerce 2.2 Modification Help | 1 | 02-11-2004 08:21 AM |