Full service web hosting, great prices and support. Starts at $1.99/month!
Page 2 of 2 First 12
Results 11 to 13 of 13

Thread: Cash on Delivery doesn't work

  1. #11
    cameroti
    Guest


    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
    cameroti
    Guest


    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


    Cash on Delivery doesn't work


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    598


    Default

    If you have a zero weight for a product, it is virtual.

Page 2 of 2 First 12

Similar Threads

  1. Cash on pickup question
    By knullhund in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 12-23-2004, 08: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, 03: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, 08:21 AM

Bookmarks

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
  •