Forums / Built-in Shipping and Payment Modules / Customer gets order but not sent to paypal first (using both group discounts+coupons)

Customer gets order but not sent to paypal first (using both group discounts+coupons)

Locked

Started by demiurgia on 18 Jan 2010, 9:06 AM · Views: 4,885

Results 21 to 40 of 44
This thread is locked. New replies are disabled.
28 Jan 2010, 3:58 PM
#21
drbyte avatar

drbyte

Sensei

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

Customer gets order but not sent to paypal first (using both group discounts+coupons)

demiurgia:

I can do that but all I did to test on the second and third site was make a discount oricing group [50% ] and a coupon for $5. I placed myself in the discount group. used the coupon and went to checkout . All goes fine unitl the last confirm order page when i am directed straight to the page that says Thank you for your order.

...

If anyone has website payments standard just test it for me pretty please. I would like to know its not just my stores but a glitch that could perhaps then be fixed.

I just spent half an hour testing for you. I used a clean new v1.3.8a install, with demo products. I added a 10% coupon, and created an account which I put into the existing 10% discount-group. I added "Sample of Product General" to my cart, since it's a regular product. For shipping I chose Per-Item. Checkout with PayPal Website Payments Standard properly went to the paypal site, asked me to login, clicked Pay Now, and returned to my site with a completed order and payment.

So, I created a 50% discount group, and a $5.00 coupon, and used those in checkout, which worked correctly as well.

Next, since your numbers above don't mention shipping, I created a virtual product so that free-shipping would kick in. Checkout using both the coupon and the discount group worked just fine.

But, since my virtual-product test shows "free shipping" as the shipping summary and your numbers above don't even mention shipping at all, I turned off the ot_shipping order-total module (not something I recommend, but that's the only way to have shipping not show in the list) and tested again with a download-product and 50% group discount plus $5.00 coupon. Checkout took me to PayPal's website, login, pay, return to store with completed order.

So ... this begs the question ... What's different between your store and a brand new fresh clean install?

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

28 Jan 2010, 10:45 PM
#22
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Thank you - I really do appreciate you taking the time to test all that.
ok
Under paments modules we have Website Payments Standard as 1 and the free charge card as 2
Shipping - all products are downloads which are attached as zip files.
Shipping options - the only one turned on is Free Shipping which is sort prder 0.

It has me stumped lol.

I will play around some more in the store B and C which I own and see if it keeps erroring. There is no obvious reason it should happen at all three stores. No common denominator. Store A was not set up by me - I have just taken over helping the ownerafter she was hacked and had to set up a new store. Store B I took over as owner and it was set up by the previous owner [and has lots of messy files]
Store C is my own store I set up and never had problems with but never used discount groups.

As the order actuallly looks like it completes [it appears in orders instore, compltetes in customers accounts and says payment method Paypal] a store owner will not know it has failed until reconciling with the paypal account.

I have a screenshot here of the order in admin [you can see thewhole box with all the normal paypal info in is missing] The screenshot also includes the store copy of the order confirmation . [you can see it looks normal]

29 Jan 2010, 8:04 AM
#23
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

DrByte:

Express Checkout will work with either a Premier or a Business account. So there's no need for your client to upgrade to Business just to use Express Checkout.

Ok I have installed Express checkout on one of my stores and tested there.
I used a pricing group of 50% discount
coupon of $5

Turned of everyhing except express checkout module

logged in and went through checkout with 3 products as below

Sub-Total: $5.92
Free Shipping: $0.00
Discount Coupon: ddtds09 : -$2.96
Group Discount: -$1.48
Total: $1.48

Was not sent to paypal to pay.

I spent a few hrs today playing with coupons and pricing groups. It appears it happens the most number of times when the pricing group discount is 50%.

Boring reading but if anyone is interested enough here is what I got.

Testing at store B

With discount group 50% [whether sent to paypal]

group and 50% off coupon no
group and $2 coupon yes
group and 25% yes
group and 25% yes
group and 35% yes

group and 50% no

group and 50% no

group and 60% no

group and 45% no

group and 45% no

group and 49% no

different products don't matter

group and 50% no

changed discount group to 30%

group and 25% coupon yes

group and 30% yes

group and 50% yes

group back to 50%

group and coupon no

group 50 and coupon 45% yes

group 50 and 60% no

group 50 and 60% no

group 50 amd 49% yes

group 50 and $5 coupon no

group 50 and $5 coupon no

group and $3 coupon no

group and 2 coupon no

at Store A

test group at 50% discount whether sent to paypal

group and coupon $5 yes

group and coupon $5 yes

group and coupon 50% off no

with $5 coupon failed - order nett was .98

with $5 coupon worked - order was 13.99

with $5 coupon worked -order was 2.62

changed group to 25%

with $5 coupon worked on the same order

with $5 coupon failed when order total .28

So after all that I am going to do some designing before I go crazy :frusty:

7 Feb 2010, 11:57 AM
#24
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Wanted to update that I installed the Online group pricing mod and disable the zen dicount group pricing and no longer have the issue. Woould that not confirm that the problem is with the group pricing ???

8 Feb 2010, 2:23 AM
#25
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

I am still having the same issue at my other 2 stores if I use a discunt group and a coupon. AND the online group pricing while it has fixed my problem at store A is causing other issues so I would really love to find out what the problem might be and fix it so I can go back to using the zen grup pricing and not risk orders going through with no payment - anyone ?????? any ideas what I could look at.

24 Feb 2010, 10:48 AM
#26
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Could someone please relook at this issue again please. It isi still causing me an enormous headache. I have taken the following steps which just confirm to me that there is an issue.

I installed a clean new zencart [latest version]

Made a pricing group with 50% discount
Made a customer account and put that customer in the discount pricing group.

Made a test coupon for $5 off any product

Turned on the paypal website payments standard.

Tested using coupon and was sent to paypal.[with an included test product]

I then turned of all payment modules except paypal [processsing] and zencart free charge card [default]

I turned of all shipping modules except free shipping.

Created a downloadable product - price $8
one attribute attached whcih is the downloadable zip

Went through checkout with one in cart and using the coupon.

:clap: It did not send me to paypal but straight to checkout success page with the download link :clap:

NB This is a clean install of the latest version. These are the only steps I took.

This whole issue is causing me an enormous amount of work in the store as we have customers in a pricing group for one year. As I stated in a previous post I have installed the online group pricing and we no longer have the error occurring. This however is only a temporary solution of us so we actually get paid for products. It causes its own problems that we are having to work around. I really want to go back to the standard group pricing discounts and be able to use coupons. If this is happening in 4 zencart installs I have access to I believe it is an issue. As it appears that the orders go through correctly unless a store is reconciling every paypal purchase whcih of course they should be it could easily be missed that you are not getting paid for your orders.

Please I would appreciate all assistance with this issue.

I tested further with a coupon for 25% discount and it works and sends me to paypal. I then changed the coupon to 50% of and it faults. I have tested at least 10 times and keep getting the error so it is not just a one of problem.

24 Feb 2010, 9:55 PM
#27
drbyte avatar

drbyte

Sensei

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

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

demiurgia:

I installed a clean new zencart [latest version]Given the date of your post, I assume you mean v1.3.8a
So, I've set up a clean install of v1.3.8a with the demo products included.
demiurgia:

Made a pricing group with 50% discount
Made a customer account and put that customer in the discount pricing group.

Made a test coupon for $5 off any product

Turned on the paypal website payments standard.

Tested using coupon and was sent to paypal.[with an included test product]That works for me too.
demiurgia:

I then turned of all payment modules except paypal [processsing] and zencart free charge card [default]

I turned of all shipping modules except free shipping.I did the same.
demiurgia:

Created a downloadable product - price $8
one attribute attached whcih is the downloadable zipI'm testing using the "Single Download" product included in the demo products, which has a downloadable zip attribute connected to it.
Its price is $39.
demiurgia:

Went through checkout with one in cart and using the coupon.Did that:
I have a 10%-off coupon, which subtracts $3.90
And the customer is set to the 50%-off group, thus subtracting an additional $17.55
Thus the amount to be submitted for payment is $17.55
And, on the confirmation screen, up under the billing address it says "Payment Method: PayPal", as expected.
demiurgia:

It did not send me to paypal but straight to checkout success page with the download linkI'm not getting that. It's taking me to PayPal exactly as expected.

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

24 Feb 2010, 11:11 PM
#28
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

First thank you so much for taking the time to look at this.

DrByte:

Given the date of your post, I assume you mean v1.3.8a

yes downloaded it yesterday.

I'm testing using the "Single Download" product included in the demo products, which has a downloadable zip attribute connected to it.
Its price is $39.
Did that:
I have a 10%-off coupon, which subtracts $3.90
And the customer is set to the 50%-off group, thus subtracting an additional $17.55
Thus the amount to be submitted for payment is $17.55
And, on the confirmation screen, up under the billing address it says "Payment Method: PayPal", as expected.
I'm not getting that. It's taking me to PayPal exactly as expected.

I did the same as you using the included demo product and used a 10% coupon and got the same result - I was sent to paypal.
If I use a 50% off coupon I am NOT sent to paypal every time. Tested 4 times.
I then used 25% off coupon and WAS sent to paypal.
Tested again with 50% off coupon and NOT sent to paypal.

I thought the issue maybe was to do with our small prices but I used the test prodcut with $39 price and so it seems it is when the coupon discount is larger or maybe near to the discount group discount. When I tested in our stores I thought it was a random error but now using the 50% coupon it faults every time.

I really hope you can get the same fault. :smile:

25 Feb 2010, 12:31 AM
#29
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Further to my prev post I have continued testing further.
I used pricing groups with 25% discount and 40% discount.

The fault occurs EVERY time that the combined discount [pricing group disocunt add coupon discount] is equal to or greater than 100%.

So 25% discount group with coupon 74% is ok but change the coupon to 75% and it faults.

40% discount group is ok with coupon discount up to 59% but faults with coupon discunt 60% or greater.

It makes some illogical sense to my non technical mind that if the discount in total is over 100% it could cause an error. The problem is this is something that we do. The customers are in a 50% off group and occasionally we have a coupon for 50%. They don't get a 100% discount due to the way zencart applies the discounts.

If this can be confirmed as a known error then we will have to work around it unless there is a solution. I just hope to clarify specifically what the error is so I [and everyone else] know what to avoid.

I am going to do some testing now using set dollar amount coupons.

25 Feb 2010, 1:06 AM
#30
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

PLEASE START READING AT POST 28 this is a second update on my testing.

I did further testing using a fixed price coupon instead of a percentage.

I tested with a discount group of 25%, 40% and 50%.
I used the test products single downloads and multiple downloads in separate tests to verify.

Results were consistent. When the total of discount group percentage add discount coupon amount [as a percentage of product price] is equal to or larger than 100% you are not sent to paypal.

ie [as this is confusing]

Product - single download
Price is $39
Discount group 50%
Coupon for $19 [less than 50% of product price]
The total percentage discount is less than 100%
Cart forwards to paypal.

Product - single download
Price is $39
Discount group 50%
Coupon for $20 [greater than 50% of product price]
The total percentage discount is greater than 100%
Cart DOES NOT forward to paypal.

As I said I also tested with different group discounts and also with the multiple download product. Results were the same.

25 Feb 2010, 1:52 AM
#31
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,692
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Product - single download
Price is $39
Discount group 50%
Coupon for $19 [less than 50% of product price]
The total percentage discount is less than 100%
Cart forwards to paypal.

Product - single download
Price is $39
Discount group 50%
Coupon for $20 [greater than 50% of product price]
The total percentage discount is greater than 100%
Cart DOES NOT forward to paypal.

Did you do the math? In case #1 there is a balance of 50 cents ... in #2 there is no balance due ... why would you want them to go to PayPal?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

25 Feb 2010, 2:03 AM
#32
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Kim:

Did you do the math? In case #1 there is a balance of 50 cents ... in #2 there is no balance due ... why would you want them to go to PayPal?

Thanks for looking Kim.
Zencart applies the discount from a discount coupon [fixed pr percentage] first and then the group discount. So if the price is $39 dollars with a $20 coupon - balance is $19. It then applies the group discount to this. So you would be paying $9.50

25 Feb 2010, 2:30 AM
#33
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,692
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

What is the sort order you have set for the order total modules in the Admin> Modules> Order Totals?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

25 Feb 2010, 2:46 AM
#34
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Kim:

What is the sort order you have set for the order total modules in the Admin> Modules> Order Totals?

I am testing this on a clean new install now so they are the default ones that are set up on installation.

Discount coupon 280
group discount 290

All the stores having the issue are the same.

25 Feb 2010, 4:06 AM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Setting up a Test Download Product at $39.00 where 50% Discount Group is before the $20 Coupon, the balance is $0.00 so nothing sent to PayPal ...

Setting up with the $20 Coupon before the 50% Discount Group, there is a $9.50 balance and that is sent to PayPal ...

One thing to note is ... if this is an Upgrade or you may have made changes and are not sure of the defaults ... it helps to save the settings of all modules for Shipping, Payment and Order Totals and do a REMOVE, INSTALL and re-configure from your saved information to ensure that all keys are correct and to obtain the proper sort orders ...

Unless you have a particular reason, the default sort orders are usually the correct ones to be using ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Feb 2010, 4:46 AM
#36
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Ajeh:

Setting up a Test Download Product at $39.00 where 50% Discount Group is before the $20 Coupon, the balance is $0.00 so nothing sent to PayPal ...

Setting up with the $20 Coupon before the 50% Discount Group, there is a $9.50 balance and that is sent to PayPal ...

One thing to note is ... if this is an Upgrade or you may have made changes and are not sure of the defaults ... it helps to save the settings of all modules for Shipping, Payment and Order Totals and do a REMOVE, INSTALL and re-configure from your saved information to ensure that all keys are correct and to obtain the proper sort orders ...

Unless you have a particular reason, the default sort orders are usually the correct ones to be using ...

Thank you for reading Linda - would you mind reading back to post 26 and onwards which outlines the steps I have taken. This is a clean zencart install with the default settings. I would just really like to confirm that there is an issue so I can try to work from there on a solution. I really appreciate your help just don't quite understand what you are saying.

25 Feb 2010, 5:25 AM
#37
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

I REALLY DON'T WANT THIS ISSUE TO GET CONFUSED SO PLEASE IF YOU ARE LOOKING NOW TO HELP ME START READING AT POST 26 THANKS

I have confirmed myself on a clean install it makes no difference if the sort order in order total has group discount or coupon first.
Either way if the total of both is over 100% the customer is not sent to paypal to pay.
The way I see it is that even though the cart price is over zero [Example
$39 less 50% group discount = $19.50
less 50% coupon discount = balance to be paid $9.50
You should go to paypal to pay
BUT you don't
try it if you need confirmation]
Could some other file [ the paypal related ones ???] calculate the 2 discounts adding to 100% so they do not send the customer to paypal. [remember 50% plus 50% does not equal 100% of the original price when applied to the shopping cart]

Please I am not a zencart guru just a designer who is teaching herself and trying to get her stores working efficiently but I am not crazy [well maybe a little] I have tested and Tested this and it is an issue.
I would really appreciate the big gurus looking exactly at what steps I took exactly [from post 26 onwards] and confirming there is an issue.

Then I will ask what we can do about it lol

25 Feb 2010, 6:03 AM
#38
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,692
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

What does the order say the payment method is when you get a "free" one ?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

25 Feb 2010, 6:12 AM
#39
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

Kim:

What does the order say the payment method is when you get a "free" one ?

It says paypal both on the order confirmation and in the admin under the order.

Thanks

25 Feb 2010, 5:46 PM
#40
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,692
Plugin Contributions:
0

Re: Customer gets order but not sent to paypal first (using both group discounts+coupons)

What PayPal module are you using?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.