Home›Support›English Support›[Resolved] no webhook sent when woocommerce multilingual is used for translation
[Resolved] no webhook sent when woocommerce multilingual is used for translation
This thread is resolved. Here is a description of the problem and solution.
Problem: Client reported an issue where webhooks are WC Webhook is not triggered when a new product translated.
Solution: We have confirmed that this is a known issue and it will be addressed in a future update of WPML. However, this fix will take some time to be released. In the meantime, we recommend the following workaround: 1. Ensure you have a complete backup of your site files and database. 2. Add the following code to your theme's functions.php file:
Hi, i'm trying to receive the webhook when using woocommerce multilingual, actual behaviour is: no webhook sent when woocommerce multilingual is used for translation,
I created a webhook from WooCommerce->Settings->Advanced->Webhook
Topic is product created, as seen in the screenshot sent
The webhook works fine when i'm using WooCommerce standard product editor, but if i use WooCommerce multilingual the event is not fired, so i can't receive it on webservice.
Other problem: if standard WooCommerce product editor is used, the event is fired but the lang param is not sent with other data, i can only read it from permalink, so it's not the expected behaviour, but this is the minor problem
thanks for getting back to and explaining the issue. I think I get a better idea of the issue, but to be fair I am not sure if this is expected and will need to check further with our 2nd tier/developers.
In order to proceed, can you please help us out and reproduce the issue on minimal with some simple dummy examples, so we can see issue happening.
I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
- hidden link
Kindly follow the steps below:
- Set up WPML plugins and WooCommerce
- Try to replicate the issue with some simple dummy example
- Share with me step by step guide on how can I check the issue
I've done the setup, you have just to change-->
Change destination url of webhook (WooCommerce->Settings->Advanced->Webhook->URL field) and set any your ws as endpoint to test
Normal behaviour:
If you add a product via Products section (so the standard one, not wpml) you'll receive the webhook, same if you translate it in the same section, but you recommend to use wpml editor instead of that.
The problem is if you use wooCommerce multilingual editor: you can try to translate there any products and you won't receive the webhook, it's just not being sended
I should now if it can be fixed soon or if i have to send my own webhook, it is necessary for our project, thanks
thanks for getting back and setting up the test site.
If you add a product via Products section (so the standard one, not wpml) you'll receive the webhook
I am afraid I am not familiar with this part of WooCommerce and in what way should I receive webhook or how should we check the issue, that is why I asked you to share with me step by step guide.
Thus is the case can you please share with us a video of the steps you take to reproduce the issue and issue happening when testing on the sandbox website? You can use a free tool like Loom.
That way we can see and it and would be easier to understand.
Sorry but could you please set the conversation to someone of the it deparment? they surely know what i'm talking about, the only requirment is to have an endpoint for receiving the webhook, i can send you a video but i already told everything, you have to translate a product from (left panel) WooCommerce->WooCommerce Multilingual->Products and see that no webhook is sent
Please understand we can not proceed to the next step or escalate the issue further without an exact step-by-step guide on how to reproduce the issue or a video where we can see these steps.
Please provide step by step guide or video where we can see all steps, and then I can check further on this with our 2nd tier support.
What i have to exaplain you? how to publish a webservices somewhere? I already told everything, just show this ticket to someone that is developing your plugins... but anyway i'll repeat again
step by step:
"Change destination url of webhook (WooCommerce->Settings->Advanced->Webhook->URL field) and set any your ws as endpoint to test"
"you have to translate a product from (left panel) WooCommerce->WooCommerce Multilingual->Products and see that no webhook is sent" --> hidden link
In the video i can show you how to translate a product and change the url of the webhook but how i can show you that is not working? You can watch the screen for some minutes and figure out that nothing reachs the endpoint
If you can teel me an email i can publish on our ws the endpoint for testing so you can receive an email when it works, if you do not receive the email the webhook were not fired
Please note I have a workflow that we need to follow and information that needs to be gathered before proceeding to the next step or escalating the issue.
Nevertheless, I have checked WC documentation further on this and could see there are WC Webhook logs where I can monitor when and if the hook is triggered.
In these logs, I can see the hook triggered when the product is created, but not when translated, as you described before.
I will now share this issue and ticket with our 2nd tier support to check and advise further.