osCmax v2.5 User Manual
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Cash on Delivery doesn't work

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

      
  1. #11
    Member
    Join Date
    Jul 2005
    Posts
    32
    Rep Power
    0


    Default

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

  2. #12
    Member
    Join Date
    Jul 2005
    Posts
    32
    Rep Power
    0


    Default

    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

  3. #13
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    If you have a zero weight for a product, it is virtual.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Cash on pickup question
    By knullhund in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 12-23-2004, 07:24 PM
  2. Admin ONLY for Cash or Check Purchase
    By JRiley in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-17-2004, 02:47 PM
  3. Cash register icon top right of center box.
    By samsin1 in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 04-20-2004, 08:25 AM
  4. Delivery Address
    By lesmith in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-11-2004, 07:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •