HI
It seems when a cart contains a discount voucher in the cart (in ps_cart_rule table), the paypal module only calculates discounts which are based on percentages and not amounts.
Therefore, the value for reduction_percentage must in ps_cart_rule must be set while the value for "reduction_amount" is ignored. This results in a total without discount being sent over to PayPal for payment collection.
It seems only the paypal module suffers this issue, other payment modules correctly will also check the reduction_amount value for a cart rule when calculating discounts.
I identified the problem in the following file:
/modules/paypal/classes/MethodEC.php
in the method _getDiscountsList
Kind Regards
Musaffar
Thanks for opening this issue! We will help you to keep its state consistent
PayPal module is not provided by PrestaShop, please contact module developer here : https://addons.prestashop.com/contact-form.php?id_product=1748
Hi
The author of the module in the module list and all licensing headers is named as "Prestashop". The module itself also contains the following line in the constructor method:
$this->author = 'PrestaShop';
Who is the author if not Prestashop? Please advise.
Kind Regards
Musaffar
It鈥檚 a partnership, module developer is @202-ecommerce
Hi Matt
Thanks, I've reported the bug to them.
Due to this being an official Prestashop module, it would be helpful if you or another member of the Prestashop team could report the bug to them along with me as this would help expedite the resolution of the bug. In my my view, this is a serious bug which prevents fixed amount cart rules to be used.
Kind Regards
Musaffar
I鈥檝e ping them on my last message, I鈥檓 sure they will response soon.
Hi
Super! many thanks
Kind Regards
Musaffar
Hi @musaffar-patel
Thank you for this information.
Please to not hesitate to contact our support team for getting quick response for your specific case. If it's already done, our team will answer you as soon as possible
Best regards
Clotaire for 202 ecommerce
Hello,
@musaffar-patel Thank you again for this information.
This issue has been already fixed and the version 5.1.4 will be released on addons at the end of this week or by the beginning of next week.
Do not hesitate to use our official repository for reporting any issue or contact our support team if you have any additional questions.
Also, do not hesitate to contact our support team for getting the fixed version as soon as possible.
Regards,
Tetiana
202 ecommerce
Thanks, I've forwarded your message to my client who spotted the issue.
All the best for now
Musaffar