Jump to content

Custom product pricing with PayPal not working properly


Tachanka

Recommended Posts

Hello everyone.

I have some products that are customizable in my shop, depending on the customization, the price changes. I modified the Cart.php class (I know, terrible idea, but it works alright-ish) in order to do so, specifically the getOrderTotal function. Now, when I make the payment via bank transfer, the total shows up just fine. The cart and the back-office order details also work fine. But when I try to pay with PayPal, only the base price of the product is taken into account + shipping, the customization fees are missing.

I tried modifying several PayPal classes one at a time to no avail. I always got an error:

Quote

Error: The totals of the cart item amounts do not match order amounts.

I'd like to know what I can modify in order to not have these discrepancies and be able to order via PayPal.

 

I am running PrestaShop version 1.7.6.4, and the official PayPal module, thanks in advance.

Link to comment
Share on other sites

  • 1 month later...

Hello,
same problem here. I just wrote a ticket for help.

I have all my products with price zero, then i change price in ps_customized_data and everything is fine with bank transfer. If I use paypal module is a nightmare.

If they will send me help I'll write here their reply.

bye

Link to comment
Share on other sites

This is paypal mdule developer's reply:
"It is true that some customized modifications can impact the work of the module. The error that you have, tells that your item is not in stock or cart is empty, if all those options are good, I advise you to change your currency settings to Customer's currency, clear cache and check the issue."

Not works for me.

I found the solution here: https://github.com/PrestaShop/PrestaShop/pull/19876

This works for me!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...