Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

This topic contains 6 replies, has 2 voices.

Last updated by Bigul 4 months, 4 weeks ago.

Assisted by: Bigul.

Author Posts
June 29, 2024 at 2:34 pm #15858195

desireeM

Background of the issue:
When deleting an order, woocommerce decreases the products recorded sales (see function `wc_update_total_sales_counts(`)

However `WCML_Synchronize_Product_Data` method `sync_product_total_sales` will always only increase the sales.

Therefore you end up with completely incorrect data

Symptoms:

Questions:

June 29, 2024 at 2:35 pm #15858200

desireeM

woocommerce-multilingual 5.3.6
WooCommerce 8.7 and above probably also earlier versions too

July 1, 2024 at 7:55 am #15866353

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us: http://wpml.org/faq/provide-debug-information-faster-support/

This may be a compatibility issue. We would like to make sure this bug exists in a minimal setup or not. Do you have a staging site(clone copy of the live site)?

Please let us know the exact steps to reproduce the bug on your site.

--
Thanks!

Bigul

July 1, 2024 at 11:52 am #15868238

desireeM

Issue happens with minimal WP, WooCommerce, WPML, WCML - I even sent you the exact lines of code why it happens.

>Please let us know the exact steps to reproduce the bug on your site.

Already described them in the original request.

How about you read it first before pasting a default reply?

July 1, 2024 at 3:49 pm #15869730

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. Please note that we are not able to reproduce the issue exactly in our test installations. Therefore please let us know the exact steps to reproduce the bug on your site.

Also, please fill in the private details fields after a full site backup{mandatory}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information-sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

July 2, 2024 at 8:44 am #15873644

desireeM

>we are not able to reproduce the issue exactly in our test installations

How did you check the total sales count after the order was deleted?

July 2, 2024 at 1:09 pm #15875498

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. I checked it in the WooCommerce>>Reports section. Am I missing any steps?

--
Thanks!

Bigul

The topic ‘[Closed] WCML increases product sales when order is deleted’ is closed to new replies.