Order total removed when modifying a Paypal WPS paid order

Created on 22 February 2014, over 11 years ago
Updated 18 August 2025, 2 months ago

Hi all,

I'm working on a Drupal Commerce (7.x-1.7) site. I have several orders paid on my system, with various payment method (Atos, Paypal WPS and Cheque). My client asked me to implement a map displaying all finished orders. To do so I used Openlayers and Geofield : I added a new Geofield field to the billing information customer profile, computed from the address field already in place there. Then I had to populate this new field for all the already finished orders. As I couldn't find a way to geocode existing billing information customer profiles, and since I have only a few orders made, I manually modifiy each billing information (open "Edit" tab and simply click on "Save") to trigger the geocoding and get lat/lon for each billing information. Then I was able to set up a view on orders, and with proper filters and proper relationship on billing infos I ended up with a nice map displaying my orders.

All of this was maybe not really clean or smart but I worked fine...But then I found that the order total field had been wiped out for all the orders paid with Paypal WPS (all good for Atos and Cheque). I ended up with a total order of 0, no more components (no VAT lines, no shipping lines, only "Order total : 0€").

I was able to reproduce the scenario : a completed order using Paypal WPS, edit order, simply click on "Save" (no need to modify anything), and the order total informations are gone. My line items though are still there, so I imagine that I could trigger an order total computation and get back my components. But I can't figure a way to do so...

I have several rules (most of them are default rules in DC) reacting on "After an order is updated", but I can't see anything dealing with the order total.

Any idea on what happened here ?
Thanks

EDIT : I was able to get back my total components by changing order status to "Cancelled" then back to "Finished". But still I'd like to understand what happened when modifying a Paypal paid order !

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

PayPal WPS

Created by

πŸ‡«πŸ‡·France flo81

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024