Jump to content

Paypal Usa Order Confirmation Fix


tdr170

Recommended Posts

HI All:


 


I may now have a solution to orders not confirming with PayPal USA, this issue seems to have been caused by taxes and possibly vouchers.


The fix is pretty simple go to   /modules/paypalusa/views/templates/hook and edit standard.tpl, need to change 2 lines.


 


At line 41 and 48 change as below


change this:


{assign var="paypal_usa_total_discounts" value=$cart->getOrderTotal(true, Cart::ONLY_DISCOUNTS)}


 


to this:


{assign var="paypal_usa_total_discounts" value=$cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS)}


 


Now test some orders and see if they work, I tested and my orders now seem to be confirming both on a fresh install with demo products and on a new site I am working on with my own products that also include specific pricing, I also tested one with a voucher is also confirmed.


 


Please let me know your findings so I can report to Prestashop that this pull request needs to be integrated to the module.


 


Please let me know if this fixes issues with the module failing to confirm orders and orders not recorded in BO. (but do show on paypal)


 


Not 100% effective as 3 out of 5 orders failed to register in BO once I went live.


Edited by tdr170 (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Any progress on this? I'm using PrestShop 1.6.1.5 and PayPal USA module 1.3.9.

 

I'm  testing with sandbox. I turned maintenance mode off. Set free shipping and no tax. Added a product to the cart. Filled out the information. Checked out with paypal standard (I cannot select express and save those changes). The paypal order goes through, I return to the site to the order history page. There are no orders shown here, the item is still in the cart. Paypal payment went through fine, raw access logs show that the calls all had status 200. I checked the back end under orders and customers and there is no order that shows up. Under shopping carts I have a non ordered status. I have been searching through all the forums trying to figure this out. I have checked my permissions on the module folder, its 755 for all folders/subfolders. 

 

Does anyone have any udpates? I just migrated to another host and need the store to be up ASAP.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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...