osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #11  
Old 10-20-2005, 12:58 AM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
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']);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #12  
Old 10-20-2005, 05:46 AM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #13  
Old 10-20-2005, 08:59 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,985
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:55 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax