Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zero Total Checkout after Coupon


Guest

Recommended Posts

I have installed the Discount Coupons Addon and the Download Controller Addon. When a customer wants to checkout of my store with free products only, the "no payment" module is recognized and says no payment is required. (Which is perfect...) However, I want to offer my designers on my store the ability to checkout using a 100% off coupon for products (that aren't normally free).

 

The problem I am having is when the designer puts in the coupon code, the cart already knows there are products in there that are NOT free and doesn't put the "no payment" module as an option. Once the coupon is rendered, it does show a zero balance (which is right), but there is only 1 way to pay (Paypal). The designer then gets redirected to paypal with a zero balance... Paypal then asks to enter an amount to bill... yada yada yada.

 

Is there a way to change the process to recognize when the cart total equals zero after a coupon has been applied so other payment modules will be allowed?

If I click the "edit" link to change the payment preference, it loses the coupon code and doesn't recognize it has been applied, hence starting over again.

 

Any help would be appreciated. Thanks in advance!!

Link to comment
Share on other sites

  • 2 months later...

I have installed the Discount Coupons Addon and the Download Controller Addon. When a customer wants to checkout of my store with free products only, the "no payment" module is recognized and says no payment is required. (Which is perfect...) However, I want to offer my designers on my store the ability to checkout using a 100% off coupon for products (that aren't normally free).

 

The problem I am having is when the designer puts in the coupon code, the cart already knows there are products in there that are NOT free and doesn't put the "no payment" module as an option. Once the coupon is rendered, it does show a zero balance (which is right), but there is only 1 way to pay (Paypal). The designer then gets redirected to paypal with a zero balance... Paypal then asks to enter an amount to bill... yada yada yada.

 

Is there a way to change the process to recognize when the cart total equals zero after a coupon has been applied so other payment modules will be allowed?

If I click the "edit" link to change the payment preference, it loses the coupon code and doesn't recognize it has been applied, hence starting over again.

 

Any help would be appreciated. Thanks in advance!!

 

Hey Bradi... Were you ever able to solve this issue?

 

I also need a way to tell OSC that zero amount on the order is ok to process.

I have been told that there is a module that does this but have yet to find it...

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 3 months later...

I've run into the same situation and am getting the error message:

 

"This transaction cannot be processed. The amount to be charged is zero."

 

Sure would like to be pointed in the right direction for a fix. I don't necessarily want to bypass the login - actually I'd prefer the customer register through the store - just be able to complete the order for a free / no charge sample product.

 

Thanks in advance,

Erich

"When one door closes another door opens; but we do often look so long and so regretfully upon the closed door, that we do not see the ones which open for us." ~~~ Alexander Graham Bell, inventor

Link to comment
Share on other sites

I'm in too. I have hundreds of copies of my software distributed already. Just build the osCommerce store and loving it. I need to update everyones software and getting the members to add themselves to the store and then download what they already own with a coupon would really help.

 

Simply put, I need to be able to give away products that are not usually free to a select group of people (a coupon would really help out).

Link to comment
Share on other sites

Hi Everyone,

I have yet to find a solution to this problem... I was just wondering if you (that posted) have found a solution yet? I think I will try and post the question in the Super Download Shop forum and in the Discount Coupon forum and see what I can find!

 

Hopefully one of you have found a solution! :)

 

Thanks for replying,

 

Bradi

Edited by DScrapDesigner
Link to comment
Share on other sites

Hi All,

Found this contrib, that I thought might be the answer:

 

http://addons.oscommerce.com/info/3747

 

I tried to install this contrib, but still can't get it to work. It seems to work fine - up until you click the "Cofirm Order". Then I get this error:

 

"This transaction cannot be processed. The amount to be charged is zero."

 

If anyone can get this to work, any insight would be very welcome.

 

Thanks in advance,

Erich

"When one door closes another door opens; but we do often look so long and so regretfully upon the closed door, that we do not see the ones which open for us." ~~~ Alexander Graham Bell, inventor

Link to comment
Share on other sites

  • 1 month later...

Make backups before editing!

 

I can only go through and tell you how I resolved this problem. It might not be the best way but it does work well for us.

 

Open checkout_confirmation.php and go to (approximately) line 109 ...right before the line with:

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

 

insert:

 

if ( $order->info['subtotal'] == 0 ) {
       tep_redirect(tep_href_link(FILENAME_CHECKOUT_PROCESS, NULL, 'SSL'));
}

 

Save and close.

 

Now open checkout_process.php at at approx line 80, find the line that says:

 

$payment_modules->before_process();

 

and change that line to:

 

if ( $order->info['subtotal'] > 0 ) {
 $payment_modules->before_process();
}

 

The next part is optional and is done just so the payment method on the customer's receipt makes sense.

 

Editing checkout_process.php

 

at approx line 280, find the line that says:

 

$email_order .= $order->info['payment_method'] . "\n\n";

 

and change that line to:

 

if ( $order->info['subtotal'] == 0 ) {
   $email_order .= "None (Zero Balance Purchase)\n\n";
} else {
   $email_order .= $order->info['payment_method'] . "\n\n";
}

 

 

Make backups before editing! But this worked for us.

Edited by robertniles
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...