The example of this article describes the method of zen cart adding a reserved phone number in paypal to the order. Share it with everyone for your reference. The details are as follows:
The contact number in the IPN return value of PayPal is contact_phone. The premise is that your account has set the buyer to reserve a phone number when paying. If there is no requirement, the Values are not returned by default.
But this information is not obtained in the PAYPAL payment plug-in of zen cart. You need to manually modify the PAYPAL program. Next we will modify:
1. Add the contact_phone field in the paypal table
1 |
|
2. Modify the ipn_create_order_array function in the paypal_functions.php file
This file is in the ./includes/modules/payment/paypal directory
1 2 |
|
After modification, it is as follows
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
3. In order to see contact_phone in the order content of the background management, you need to modify the paypal_admin_notification.php file
This file is in the ./includes/modules/payment/paypal directory Add the following content under
:
1 2 |
|
I hope this article will be helpful to everyone’s PHP program design based on the zend framework.
For more related articles on zen cart’s method of adding a reserved phone number in paypal to the order, please pay attention to the PHP Chinese website!