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.

This topic contains 38 replies, has 4 voices.

Last updated by Lauren 4 years, 8 months ago.

Assisted by: Bruno Kos.

Author Posts
January 13, 2020 at 3:32 pm #5284065

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Ok, here it is:
hidden link

Can you tell me if it would be a problem that you set this PayPal scenario here, test, debug and tell us how to get the same result? That way we will know we are on the same page with setup, testing and everything.

Let me know if you have another (simpler) way or access you can provide (like your testing site?). We abandoned Sandbox so the sandbox we used before - hidden link - is no longer working.

Regards,
Bruno Kos

January 13, 2020 at 4:35 pm #5284765

blazP-4

Hello Bruno,

I have set a scenario and recreated the issue. Please have a look at the log file on your server.

Best regards,

January 14, 2020 at 7:08 am #5287151

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

May I ask on which site have you done it?
hidden link

This one? I didn't have WooCommerce multilingual set, so not sure where did you recreate it.

Regards,
Bruno Kos

January 14, 2020 at 7:12 am #5287159

blazP-4

Hello Bruno,

Yes, on this one: hidden link

Best regards,

January 14, 2020 at 8:14 am #5287555

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

You sure it isn't working properly? 🙂 Full amount is 30 EUR and currency seems to be converted.
I just tested this, see the video:
hidden link

One thing I forgot on this test site was this:
https://wpml.org/forums/topic/paypal-standard-not-working-with-the-second-language/#post-5251665

But I added this line here as well.

Regards,
Bruno Kos

January 14, 2020 at 8:39 am #5287801

blazP-4

Hello Bruno,

I see. It works properly on demo site. It does not work on my site. The issue is as I described previously.

[item_name_1] => Product #1 x 1, Product #2 x 1, Product #3 x 1
[quantity_1] => 1
[amount_1] => 12.99
[item_number_1] => 3952
[lc] => hr
[amount_2] => 28.90
[amount_3] => 16.90
[shipping_1] => 0
[bn] => WooThemes_Cart

lines 35 to 28 in class-wcml-currencies-payment-gateways.php

public function add_hooks() {
add_action( 'init', array( $this, 'init_gateways' ) );
add_filter( 'woocommerce_gateway_description', [ $this, 'filter_gateway_description' ], 10, 2 );
add_filter( 'option_woocommerce_stripe_settings', [ 'WCML_Payment_Gateway_Stripe', 'filter_stripe_settings' ] );

Is this ok?

Best regards

January 14, 2020 at 9:45 am #5288145

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Yes, that seems to be the correct code. You can check my website to confirm.

I'm not sure why it doesn't work your case though - can you perhaps try creating new simple products? Are they perhaps variable products, bundled products or something else?

I would suggest you try to narrow down your installation to be the same as my, there must be some difference, perhaps related to PayPal gateway settings, WooCommerce multilingual settings or something else.

Regards,
Bruno Kos

January 14, 2020 at 3:45 pm #5291101

blazP-4

Hello Bruno,

I'll do my best to find the root cause. Do you perhaps know if somebody else reported such issue or my case is the only one?

Best regards,

January 15, 2020 at 7:24 am #5295273

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

As far as I know, this is the only case we have, our 2nd and 3nd tier also engaged thoroughly into this and the ran multiple tests on their clean localhost installations, however we all see the same result - price going properly through payment gateway.

Regards,
Bruno Kos

January 15, 2020 at 9:54 pm #5301691

blazP-4

Hello Bruno,

I have set a testing site, deactivated all plugins but WPML and Woocommerce. Problem still persists...

Would it be possible that you grant me the access to the testing site hidden link

I would check what else might be different.

Best regards

January 16, 2020 at 6:30 am #5303215

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

This link logins you automatically as an admin:
hidden link

Regards,
Bruno Kos

January 16, 2020 at 6:32 am #5303217

blazP-4

Hello Bruno,

It does not login me automatically.

January 16, 2020 at 6:40 am #5303235

blazP-4

Unfortunately. When I try to login with this credentials it turns back..

ERROR: User can't find.

January 16, 2020 at 6:57 am #5303329

blazP-4

I am in now...Thank you.

January 16, 2020 at 7:19 am #5303385

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Ok, Let me know how it goes. On your website, there is always one last resort, it is about resetting WPML and creating new products.

The reset action does not delete translated images, translated posts, and translated taxonomies. It only affects translation and language information that WPML associates with each content type.
https://wpml.org/faq/how-wpml-reset-works/

So basically you would start clean related to WPML.

Regards,
Bruno Kos

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.