Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Unusual Paypal problem

    We have a site which has some code added to the checkout_process page which triggers an email to the manufacturer of the item ordered.

    This code is activated when an order has been processed by either Paypal or Protx... except that if the Paypal customer has been returned to the site automatically, then, although the order is complete and appears in ZenCart, that email does not go to the manufacturer.

    If the client doesn't wait for automatic return and clicks the manual link, then the code IS activated and that email is sent.

    Can anybody suggest why there should be a difference?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unusual Paypal problem

    As long as the customer is actually coming back to your store after completing the PayPal order, I don't see why there would be any difference between clicking the button vs allowing the automatic return.

    If it's breaking because the customer closes their browser and never returns to your store, that's another story ... meaning you probably need to put your extra code in another place.
    .

    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.

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Unusual Paypal problem

    Thank you DrByte - hadn't occurred to me that people may not bother to come back.

    However I've tested the auto/manual myself so even though neither of us can think of a reason, there is definitely different behaviour between the two options.

    I'll try moving it to the checkout_success page.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unusual Paypal problem

    If they don't click to come back to your site, then the checkout-success page won't solve anything.
    You'll have to do something in the /ipn_main_handler.php, probably just before this line:
    Code:
        ipn_debug_email('Breakpoint: 6 - Completed IPN order add.' . '    ordersID = '. $ordersID . '  IPN_id =' . $paypalipnID);
    HOWEVER: it's important to note that if the customer makes a payment WITHOUT creating a PayPal account AND closes the browser without choosing "yes or no" to PayPal's invitation to create an account at the end of their order, the IPN is not sent, and your store will never know about the order, and thus it doesn't matter how many hooks you put in or where (you won't get emails from the store, and neither will your manufacturers). PayPal still hasn't fixed that design flaw.
    .

    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.

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Unusual Paypal problem

    Thanks for that advice - although the "HOWEVER" part is not the problem here.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

 

 

Similar Threads

  1. Unusual Paypal Express Behaviour
    By soxophoneplayer in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 5 Mar 2011, 10:48 PM
  2. Unusual amount of PayPal API 10417 errors
    By stagebrace in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 16 Nov 2008, 11:26 PM
  3. Unusual problem installing zen cart
    By raunharman in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 16 May 2008, 02:16 PM
  4. Unusual Product listing Alignment problem
    By Sawhorse in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 18 Feb 2008, 03:50 PM
  5. Urgent! Please help with unusual problem
    By Bread_O in forum General Questions
    Replies: 3
    Last Post: 26 Jan 2008, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg