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.

Tagged: 

This topic contains 11 replies, has 2 voices.

Last updated by Dražen 1 year, 9 months ago.

Assisted by: Dražen.

Author Posts
April 21, 2023 at 7:59 am #13515651

konstantinosP-5

When wpml is enabled it creates a facebook event with currency (Euro) when i click on a product to add to cart

April 21, 2023 at 8:23 am #13516147

Dražen
Supporter

Languages: English (English )

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

Hello,

I created a setup with minimal installation of WordPress and WPML.

You can access the WordPress dashboard using the link below:
- hidden link

Kindly follow the steps below:
- Try to replicate the issue with a simple example
- If not needed do not install any additional plugins or themes
- Share with me step by step guide on what you did and how can I check the issue

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Regards,
Drazen

April 21, 2023 at 1:17 pm #13518115

konstantinosP-5

Hi,

There seems to be some weird issue. The duplicate facebook event happens only with a specific pixel id!

I couldn't replicate it on the installation you've sent me but i copied the website on a staging area and here are the findings.

Pixel id #1 ( old pixel) - Creates only 1 event after product add to cart
Pixel id #2 (new pixel) - Creates 2 events after product add to cart! one with only Currency info and one with full info.

When i disable WPML or completely reset WPML, Pixel id#2 also creates only 1 event!
I dont understand what setting in WPML can cause a specific pixel id to have a duplicated event :S

Is there any WPML setting that could add the currency event to woocommerce products?
*Multicurrency is off, only currency is in Euro.

April 24, 2023 at 5:45 am #13524295

Dražen
Supporter

Languages: English (English )

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

Hello,

okay, so it seems to be specific to your environment or settings.

And can you please explain how are you creating or adding these pixelIds?

Regards,
Drazen

April 24, 2023 at 7:39 am #13524761

konstantinosP-5

Hi Drazen,

I use the plugin pixelyoursite and i test them one at a time.

April 24, 2023 at 9:25 am #13525679

Dražen
Supporter

Languages: English (English )

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

Hello,

this plugin is not on our official compatible plugins list, so some issues may happen.

- https://wpml.org/plugin/

1) Can you please confirm issue still happens with the latest WPML version on your staging site and when only WPML plugins, WooCommerce and PixelYourSite are enabled?

2) Can you please share how can I test it working fine on the test sandbox website?

3) Can you please share how can I see it not working correctly on your staging site? If needed please share admin access via the next private reply.

Regards,
Drazen

April 24, 2023 at 11:10 am #13526243

konstantinosP-5

1) Yes

2) We can make the tests on the sandbox website you created. It's also showing the duplicate add to cart event. Please see the attached screenshot.

It must a bug..

hidden link

double-add-to-cart.png
April 24, 2023 at 12:19 pm #13527061

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

As I have said the plugin is not officially compatible, so some issues can happen. Seems to be a compatibility bug. We will do our best to check and try to help, but in the end, we might need plugin author collaboration.

Please share step by step guide on what you did on the sandbox website and how to check the issue. Please try to be as detailed as possible.

I will then try to reproduce it again on another fresh test site and escalate it to our compatibility team for further check.

Thanks,
Drazen

April 25, 2023 at 7:43 am #13531247

konstantinosP-5

Hi,

I installed woodmart theme (ajax add to cart on single product page option enabled).
I installed pixelyoursite plugin and added meta pixel and capi on facebook settings.
Installed WPML plugins (main, string translation, woocommerce multilingual), having Greek as main language and English as second (hidden).
Created a test product and use my pixel helper chrome extension to check the events.
When im in a product and add it to cart, the event add to cart has 2 entries, one normal from pixelyoursite with all the info and a second one that only has the currency and is probably coming from WPML because when WPML is disabled, there is only one event.

On the test site you sent me, i didnt get the duplicate error at first but i soon as i changed the main language to Greek, it appeared.

Thank you for your help, hope they can find the problem!

April 25, 2023 at 8:47 am #13531833

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I see and can check the issue on the test site you shared, but I see the problem still happening even when WPML plugins is disabled.

I do not think it is related to WPML, as it also event has the currency EUR, while in WooCommerce settings you have USD set.

Video: hidden link

Let me know, otherwise, I would suggest checking further with the plugin author on this.

Regards,
Drazen

April 25, 2023 at 9:45 am #13532271

konstantinosP-5

Hi Drazen,

Thank you for your help! It's such a weird bug. So far it was only happening when WPML was activated.

I will forward my request to pixelyoursite plugin developer.

Thanks again for your time!

April 25, 2023 at 12:46 pm #13533227

Dražen
Supporter

Languages: English (English )

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

Hello,

sure, thank you.

Feel free to let us know if anything else we can do to help.

Regards,
Drazen