Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Paypal Express - 2 Email Notifications Rate Topic   - - - - -

 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 472 posts

Posted 25 November 2020 - 09:26 AM #1

Hi, 

 

Is it possible to stop PayPal express orders to send out 2 email notifications, one for the Open status and the other for the Processes status? I think only the final order status should be notified, in this case, the Processed status.

 

Note: I use the "O" status for an offline payment method so cannot uncheck the notifications

 

Thanks!


4.11.5


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21562 posts

Posted 25 November 2020 - 01:28 PM #2

app/addons/paypal/paypal_express.functions.php

 

try to replace

fn_finish_payment($order_info['order_id'], $pp_response);

with

fn_finish_payment($order_info['order_id'], $pp_response, false);

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 472 posts

Posted 25 November 2020 - 03:50 PM #3

app/addons/paypal/paypal_express.functions.php

 

try to replace

fn_finish_payment($order_info['order_id'], $pp_response);

with

fn_finish_payment($order_info['order_id'], $pp_response, false);

(!) Not tested

 

 

It works! Thank you so much!!!  :-)


4.11.5


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21562 posts

Posted 26 November 2020 - 04:33 AM #4

You are welcome! :)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2380 posts

Posted 26 November 2020 - 07:50 AM #5

I never understood the 2 emails... sending 1 should be default behavior.


When life hands you lemons, bring on the Tequila baby!


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 472 posts

Posted 26 November 2020 - 08:01 AM #6

I never understood the 2 emails... sending 1 should be default behavior.

 

 

I have been having this problem for years now, every single time I upgrade the software a modification needs to me made, but as I'm not a developer and the code is never the same, I need to ask for help every time.

 

The only downside of this modification is that now I don't receive the "F" failed order email notifications, as only the Processed ones are sent.


4.11.5


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11998 posts

Posted 29 November 2020 - 09:01 PM #7

Curious...  Isn't the issue that a paypal order is "Open" until it's processed, then becomes 'Processed/Paid"?  If so, wouldn't turning off order notifications for 'Open' be the easiest and proper approach?  I'm not aware of other payment providers that use a multi-step order status to track the transition to paid.  Most credit card orders go directly to "Processed/Paid".


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21562 posts

Posted 30 November 2020 - 05:08 AM #8

Curious...  Isn't the issue that a paypal order is "Open" until it's processed, then becomes 'Processed/Paid"?  If so, wouldn't turning off order notifications for 'Open' be the easiest and proper approach?  I'm not aware of other payment providers that use a multi-step order status to track the transition to paid.  Most credit card orders go directly to "Processed/Paid".

 

This is common case. But @E.Qi.Librium needs notifications for Open status due to offline payment methods


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)