PrestaShopCorp / paypal

[ARCHIVED] This repository contains old code. Development has moved to https://github.com/202-ecommerce/paypal
7 stars 92 forks source link

how to override the file paypal\paypal_orders.php? #86

Closed jorbope closed 5 years ago

jorbope commented 5 years ago

I'm trying to override the class PayPalOrder (paypal\paypal_orders.php), I copied the entire file to

\override\modules\paypal\paypal_orders.php I renamed the class in this way: class PayPalOrderOverride extends PayPalOrder { .... } and I modified the content of the function public static function getTransactionDetails($ppec = false, $payment_status = false); because I got an error: PHP Notice: Undefined index: PAYMENTREQUEST_0_SHIPPINGAMT when I try to confirm a payment using Paypal. Alter that I removed all cache directory content but it doesn't work. what should I do to override this class?
tvorgul commented 5 years ago

Hello !

Thank you for your message. We will be glad to help you. Could you please contact our support team via prestashop addons please?

Thank you in advanced !

tvorgul commented 5 years ago

This module is maintained by 202 ecommerce. Since 2016, development has moved to another repository. To avoid confusions, this repository will be archived, while open issues and Pull Requests will be closed. For any questions, please check PayPal User documentation or contact 202 technical support team via prestashop addons. You can also create new issues via 202-ecommerce/paypal repository.