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
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

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

This topic contains 21 replies, has 2 voices.

Last updated by Yvette 3 years, 8 months ago.

Assisted by: Yvette.

Author Posts
June 10, 2021 at 8:16 am #8958999

jakobM-4

I'm having an issue with Woocommerce+WPML+Product Addons. When trying to edit an order in the admin, the additional cost of the Product Addon is removed.

June 10, 2021 at 12:22 pm #8962857

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

I will be handling your ticket now.

Please upload your version of Woocommerce Produt Addons plugin here:
hidden link

Create an example of the issue you are experiencing using the produts and theme that are already configured.

Then write back with steps that I need to do to confirm the issue so I can then escalate it to our compatibility team.

Thanks

June 10, 2021 at 9:12 pm #8966499

jakobM-4

Hi Yvette

To replicate the issue on your sandbox go to:
hidden link and add some text to the add on input field. Then add to basket. Proceed to checkout and place the order entirely.

In the admin go to the order, change the status to hold in order to be able to edit the order.

When trying to add an extra product to the order, the price of the add on is removed.
Here is a video: hidden link

June 11, 2021 at 12:43 pm #8972879

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

This has been confirmed and escalated to our comaptiblity team for more work.

June 18, 2021 at 9:28 am #9024395

jakobM-4

Hi Yvette

Do you have an eta on a fix? If you need me to test anything let me know 🙂

June 21, 2021 at 1:30 pm #9039011

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

I do have some feedback. We have a possible workaround but it is to be used with caution and to be thoroughly tested by you. It is provided "as is".

At the moment, it looks like this is only happening when multicurrency is enabled. The development team is evaluating how to best approach any "fix" to this issue as a fix could cause more problems than it solves at this point for the larger client base.

Here is the workaround:
In file wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-orders.php::set_converted_totals_for_item on line 348

Replace this line:

$item_price = $this->multi_currency->prices->raw_price_filter( $item->get_product()->get_price(), $order_currency );

with this

$item_price = $item->get_data()['subtotal'];

The issue is currently in the hands of our development team.

June 21, 2021 at 7:26 pm #9041067

jakobM-4

Hi Yvette

Thanks for getting back to me. I tried replacing the line, however the issue remains.

June 22, 2021 at 9:07 am #9044811

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hmmm. I will send back to the compatibility team but unfortunately, the sandbox site expired.

Please upload the plugin again to this sandbox site.

hidden link

If you don't mind to create the example again - that would be appreciated too.

June 22, 2021 at 8:17 pm #9049807

jakobM-4

Hi Yvette

I really don't have the time to set it up again. It did use a significant amount of time on the last time. Just use multi currency and multi language and the product add-on plugins.

I also have a Dev site I would be happy to give access to.

June 23, 2021 at 7:51 am #9052535

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Then please provide access to the Dev site.
I will pull off the required things I need from there.

June 28, 2021 at 1:22 pm #9079987

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

I setup the same example on a new sandbox site WITH the recommended changes:
hidden link

The issue is resolved there.
Please confirm this yourself.

Is the development site available for me to apply the same code changes there?
It may be that your site has a compatibility issue with yet another plugin.

Please advise if you are able to confirm the fix on the sandbox site or not.

June 28, 2021 at 3:37 pm #9081013

jakobM-4

Hi Yvette

I just tested and the issue remains. Try and edit ordre 109. Add another Polo to the order and the add-on fee disappears.

What I changed was I installed the Danish language and made DK the default site. Translated the Polo product and made sure to input the price manually (no automatic currency exchange)

June 28, 2021 at 4:52 pm #9081407

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

I see this is only happening when the default language is not English.

Do you agree with this statement?

June 29, 2021 at 6:14 am #9084333

jakobM-4

Hi Yvette

Yes - that seems to be the case. Or if the product is in another currency. Not sure which is causing it.

July 9, 2021 at 8:50 am #9162879

jakobM-4

Hi Yvette

Any updates?