Forums / Built-in Shipping and Payment Modules / zero dollar checkout problem caused by store credit mod

zero dollar checkout problem caused by store credit mod

Locked

Views: 2,307

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
13 Nov 2010, 1:40 AM
#1
world_surfer avatar

world_surfer

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

zero dollar checkout problem caused by store credit mod

I am having an issue with payment modules.

Zencart:1.3.9

The problem is that when a customer enters a coupon/store credit which covers 100% of the total ($0 subtotal), Paypal is selected as payment method and leads to order total errors.

However, once the error returns the customer to Step2 and the customer proceeds, freecharger is selected this time and order is processed without any issues....

Any ideas on how to fix this issue.

13 Nov 2010, 5:03 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: zero dollar checkout problem caused by store credit mod

The problem is that when a customer enters a coupon/store credit which covers 100% of the total ($0 subtotal)

Any ideas on how to fix this issue.

I would adjust the coupon minimum order amount to be more than the value of the coupon

Zen-Venom Get Bitten

13 Nov 2010, 7:57 AM
#3
world_surfer avatar

world_surfer

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: zero dollar checkout problem caused by store credit mod

yes. that would be a fix but the reason for this transaction is to enter paid orders in the system.

these have been paid by phone, however its being processed for record only. using coupons/store credits and by admin.

Otherwise, everything is fine.

13 Nov 2010, 11:24 AM
#4
world_surfer avatar

world_surfer

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: zero dollar checkout problem caused by store credit mod

It seems that Zencart has a bug in processing Zero total orders, so I came with a work around for now..

In the checkout page I ask the customer to go to previous page for verification and the 2nd run solved the issue. [I was having this issue with Paypal]

	$customtotal= $order->info['total'];		
       $paypalyes = $GLOBALS[$class]->title;

if ($customtotal <=0 && $paypalyes=='PayPal') {
	echo 'Detected discount. <a href="/index.php?main_page=checkout_shipping">Click here  to Verify and proceed</a>.';
} 

and to deal with submit button:

<? if ($customtotal <=0 && $paypalyes=='PayPal') { } else { ?>
<?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
<? } ?>

I hope this issue is solved by Zerncart team soon.

13 Nov 2010, 2:00 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: zero dollar checkout problem caused by store credit mod

that would be a fix but the reason for this transaction is to enter paid orders in the system

these have been paid by phone
That is not what you posted first!!!!
Paypal is selected as payment method and leads to order total errors.

Zen-Venom Get Bitten

13 Nov 2010, 8:06 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: zero dollar checkout problem caused by store credit mod

In the Admin->Customers->Orders screen, where you see the list of orders placed, the 2nd column shows 2 lines: the payment module and the shipping module used in the order. What's listed there for those orders that you allege are being paid via PayPal for $0.00 ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Nov 2010, 8:36 PM
#7
world_surfer avatar

world_surfer

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: zero dollar checkout problem caused by store credit mod

the payment shipping shows as "paypalwpp
zones".

I will give a historyof this issue:

When freecharger module was disabled, It was impossible to checkout using 100% store credit. And since the only other payment method available is Paypal, all orders, including $0 totals were sent to Paypal.

At this popint it output error 10401. I'm assuming Paypal doesnt like $0 total and payment shouldn't be sent there anyways for $0.

10401 Transaction refused because of an invalid argument...

After searching the forum, I found a thread that suggested enabling the 'freecharger' module to process Zero total and I did that.

Now, when the store credit covers 100% of the cost, Order total is calculated using store credit but method of payment stays as Paypal and submitted to Paypal page.

The issue is solved if the customer goes back to any of the previous pages in checkout process and proceeds from there. [maybe, its changed in sessions???]

What I find surprising is that the Invoice after the purchase shows 'papal' as the payment method.

17 Nov 2010, 9:23 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: zero dollar checkout problem caused by store credit mod

Is there any more history you've left out? Any other things you've turned off or turned on that probably shouldn't be?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Nov 2010, 10:41 AM
#9
world_surfer avatar

world_surfer

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: zero dollar checkout problem caused by store credit mod

Nothing that is related to payments. I figured it could be a $_sessions problem.
third party module (sore credit) maybe creating a conflict with zencart sessions variables.

The tweak I suggested earlier fixes the issue, by creating one extra click.

18 Nov 2010, 5:36 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: zero dollar checkout problem caused by store credit mod

On a brand new clean uncustomized install without any addons, I can't seem to replicate the "bug" you claim exists.
What exact steps should I be following to recreate the problem, using a brand new clean uncustomized install of Zen Cart?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Nov 2010, 9:31 PM
#11
world_surfer avatar

world_surfer

New Zenner

Join Date:
Nov 2010
Posts:
8
Plugin Contributions:
0

Re: zero dollar checkout problem caused by store credit mod

Yes, It seems that error is being created by the addons. in this case, its the store credit mod with combination of other mods.

I tested a clean install of Zencart and this error didnt exist in the test run.

DrByte:

On a brand new clean uncustomized install without any addons, I can't seem to replicate the "bug" you claim exists.
What exact steps should I be following to recreate the problem, using a brand new clean uncustomized install of Zen Cart?

24 Nov 2010, 6:54 PM
#12
mazo avatar

mazo

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Re: zero dollar checkout problem caused by store credit mod

v1.3.9.g
When I have a coupon of any percent discount, the amount of the order transfers to Paypal as zero. When I remove the coupon options, the amount transfers correctly to Paypal. Any Ideas.