Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

skip payment page if cart price =0 ??


monakur

Recommended Posts

If I am giving away free promo downloads of media products, how would I allow the customer to skip the credit card/paypal payment page if the total value of all cart contents is $0?? Thanks!

Link to comment
Share on other sites

I installed it, but I get this error when trying to checkout:

 

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /includes/functions/database.php:13) in /includes/functions/database.php on line 25

 

Any thoughts? Thanks!

 

Also, I backed up my checkout_payment.php file and reuploaded it, but I still get the same error message.

Link to comment
Share on other sites

Any trailing whitespaces before <?php or after?> in database.php? it's the usual suspect. Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

I checked database.php and there was a space after ?>, but after I erased it, I still have the same problem. I mean, if I reinstalled the original checkout_payment.php that has been there and been working, why is the site still not working now? did adding the new one change something that has to be manually changed back? I can send you the code or a link to the site if you want - thanks

Link to comment
Share on other sites

No that doesn't make any sense. Any chance a file got copied into the wrong location, e.g. root level file into language level? All PHP problems can be conquered with logic - just go through the affected files methodically, see if they have been changed, if they are in the right location and focus on checkout_payment.php as your first suspect. It's quite easy to copy something into the wrong place - we've all been there and it's a bugger to find. Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...