Zen Cart Logo
Forums / PayPal Express Checkout support / PayPal Express Not Allowing Discounts?

PayPal Express Not Allowing Discounts?

Locked

Views: 20,368

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
16 Jun 2007, 5:46 PM
#1
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

PayPal Express Not Allowing Discounts?

I am getting more and more customers saying the same thing: "I checked out with PayPal but it didn't factor in my store coupon or gift certificate."

I'm trying to figure out why that would be. The only thing I can think of is that some people are choosing to checkout by using the orange PayPal Express button from the Shopping Cart page, while others proceed to click the standard Checkout Button and go through the three step process of checking out through ZenCart before paying with the PayPal Express option.

Has this been addressed or brought up before?

For my PayPal Express settings, the "Express Checkout: Select Cheapest Shipping Automatically" and the "Express Checkout: Skip Payment Page" are both turned OFF.

17 Jun 2007, 4:37 PM
#2
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

By the way, I just found out that when this is happening to this particular customer, he is NOT going through the orange PayPal Express button on the shopping cart page.

He is actually going through the store's normal checkout process: that is, he selects his shipping, enters his discount code, chooses to pay with PayPal, but then when he's taken to the paypal screen, the discount isn't there.

I am attaching the three pictures of the checkout process to show you what I mean. Any ideas? This only happens to certain people, because others who checkout with PayPal seem to have no problems.

18 Jun 2007, 7:59 PM
#3
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

  • Bump * Anyone?
18 Jun 2007, 8:40 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Not Allowing Discounts?

Jeff_Mash:

This only happens to certain people, because others who checkout with PayPal seem to have no problems.

What other patterns have you noticed? Similarities, etc between those that had the problem and those that did not?

Which PayPal patches have you installed?

21 Jun 2007, 3:53 PM
#5
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

I just got this email from the same customer who was complaining:

"Just as an update... it gets more interesting

I just did a PayPal order for Snowstorm in China.
Order total was 4.85
I applied my discount coupon and it came to 4.36
When I got to PayPal, it said the total was 4.85
When I got my email receipt FROM PAYPAL, the total was 4.36.

It seems that the only place this is appearing is on the PayPal checkout page, but the actual amount that I'm charged is correct."

So it looks like the initial page of PayPal only reflects the non-discounted price, but when you go through with the transaction, it is correct. Have you heard of this before?

I am running the latest and greatest Zen Cart as well as the latest PayPal Express patch to my knowledge.

11 Sep 2007, 12:53 AM
#6
bodini avatar

bodini

New Zenner

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

Re: PayPal Express Not Allowing Discounts?

Was this issue ever resolved? I have the same problem. 1.3.7 w/ latest paypal patch.

11 Sep 2007, 1:25 PM
#7
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

bodini:

Was this issue ever resolved? I have the same problem. 1.3.7 w/ latest paypal patch.

Nope, I never got an answer as to WHY it happens. All I know is that I think it's something to do with PayPal and Zencart. I just tell my customers to continue with the PayPal checkout process, and they should see the discount on the final page. If they don't and the purchase goes through without the discount, I tell them that I'll refund the extra money they overpaid.

Not a solution, but it's the only thing I know how to do at this point. If you happen to find anything out, let me know.

12 Sep 2007, 12:29 AM
#8
bodini avatar

bodini

New Zenner

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

Re: PayPal Express Not Allowing Discounts?

Jeff_Mash:

Nope, I never got an answer as to WHY it happens. All I know is that I think it's something to do with PayPal and Zencart. I just tell my customers to continue with the PayPal checkout process, and they should see the discount on the final page. If they don't and the purchase goes through without the discount, I tell them that I'll refund the extra money they overpaid.

Not a solution, but it's the only thing I know how to do at this point. If you happen to find anything out, let me know.

I cant believe that we're the only two with this problem. :no:

16 Sep 2007, 12:01 AM
#9
haasplay avatar

haasplay

New Zenner

Join Date:
Sep 2006
Posts:
27
Plugin Contributions:
1

Re: PayPal Express Not Allowing Discounts?

I'm having the same problem, using latest patches for payPal WPP.

Anyone have any ideas?

16 Sep 2007, 8:14 PM
#10
crimson090 avatar

crimson090

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

I'm having the exact same issue. Latest version etc. Wasn't a very fun day launching my store and receiving this complaints :(

25 Sep 2007, 3:02 PM
#11
fostergross avatar

fostergross

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

I've been having the same issue on a store that I service. I installed the latest june 17th patch. I put the PPE module into debug mode. And the Paypal_Action log doesn't record the discounted total anywhere. Niether does the Paypal_Debug_EC log for a transaction. The Paypal_Action log has the total of the cart before the discount is applied as well as the shipping charge which is adding up to be the total that shows up on paypal.

Somewhere along the lines the PPE module is getting the correct total for discounted orders wrong, and sending the pre discounted total. I'm going to take a quick look and see if I can find anything.

25 Sep 2007, 4:35 PM
#12
fostergross avatar

fostergross

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

So I poked around for a bit, and I had a few questions that if no solution is known by the development team I would like answered so maybe I could find a solution to this problem.

When paypalwpp->ec_step1() is run it creates a new order with no order ID how does zencart find the order information as it isn't recorded anywhere in the database that I could find. So where is the order information that is later injected into calc_order_amount() come from if in progress orders are not in the database?

Where is the discounted total stored? I can find no record of it in the order object used in ecstep1 or the SESSION superglobal. So where is that discount amount or discounted total stored?

25 Sep 2007, 10:18 PM
#13
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: PayPal Express Not Allowing Discounts?

fostergross:

So where is the order information that is later injected into calc_order_amount() come from if in progress orders are not in the database?
Although I don't really know the code of the Paypal modules very well, I am quite sure the whole session array (which includes order data of course) is being stored into the database and restored. That, and the fact that the session array is encoded and serialized before it's saved (as BLOB), probably explains why you couldn't find the data.

26 Sep 2007, 12:11 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Not Allowing Discounts?

Try this:

/includes/modules/payment/paypalwpp.php
around line 1583 you'll see this code:```
// init new order object
require(DIR_WS_CLASSES . 'order.php');
$order = new order;

$doPayPal = $this->paypal_init();


Insert the extra lines as shown:```
    // init new order object
    require(DIR_WS_CLASSES . 'order.php');
    $order = new order;

[B]    require(DIR_WS_CLASSES . 'order_total.php');
    $order_total_modules = new order_total;
    $order_totals = $order_total_modules->pre_confirmation_check();
    $order_totals = $order_total_modules->process();
[/B]
    $doPayPal = $this->paypal_init();

**
These changes are included in v1.3.8a and v1.3.9**

26 Sep 2007, 8:21 PM
#15
fostergross avatar

fostergross

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

Dr. Byte: Once again you saved the day. That worked fantastically!! Just so I understand what's going on incase I run into a something simillar in the future. The order total module is being included and processing the global order object and changing the total in order->info by applying discounts.?

Thanks again for the speedy and fantastic response :)

26 Sep 2007, 11:31 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Not Allowing Discounts?

Yes, that's the fix.

28 Sep 2007, 3:32 PM
#17
fostergross avatar

fostergross

New Zenner

Join Date:
Dec 2006
Posts:
20
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

fantastic Thanks again for all the great work :)

30 Sep 2007, 5:29 PM
#18
daza4 avatar

daza4

New Zenner

Join Date:
Sep 2007
Posts:
2
Plugin Contributions:
0

Re: PayPal Express Not Allowing Discounts?

This works a treat but doesn't seem to add the tax on for the (flat rate) shipping even though I've got tax configured (correctly, I believe) on shipping.... the order total shows correct in ZC (with tax included in the shipping amount) but when going through to Paypal the total is there without the tax on the shipping. I've got around this by changing my shipping to tax free and just changing the fee charged.

Is there a fix that will allow the tax to be configured correctly on the shipping and go through correctly to PayPal?

Cheers!

2 Oct 2007, 8:36 AM
#19
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Not Allowing Discounts?

Daza4:

This works a treat but doesn't seem to add the tax on for the (flat rate) shipping even though I've got tax configured (correctly, I believe) on shipping.... the order total shows correct in ZC (with tax included in the shipping amount) but when going through to Paypal the total is there without the tax on the shipping. I've got around this by changing my shipping to tax free and just changing the fee charged.

Is there a fix that will allow the tax to be configured correctly on the shipping and go through correctly to PayPal?

Cheers!

Similar to the earlier suggestion, try this:

/includes/modules/payment/paypalwpp.php
around line 1583 you'll see this code:```
// init new order object
require(DIR_WS_CLASSES . 'order.php');
$order = new order;

$doPayPal = $this->paypal_init();


Insert all the extra lines as shown:```
    // init new order object
    require(DIR_WS_CLASSES . 'order.php');
    $order = new order;

[B]    require(DIR_WS_CLASSES . 'shipping.php');
    $shipping_modules = new shipping($_SESSION['shipping']);
[/B]
    require(DIR_WS_CLASSES . 'order_total.php');
    $order_total_modules = new order_total;
    $order_totals = $order_total_modules->pre_confirmation_check();
    $order_totals = $order_total_modules->process();

    $doPayPal = $this->paypal_init();
5 Oct 2007, 1:16 AM
#20
bodini avatar

bodini

New Zenner

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

Re: PayPal Express Not Allowing Discounts?

Thank you, DrByte.:clap: