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']);
Bookmarks