I am trying to: synchronize the stock amounts between 2 languages via the troubleshooting tool because the synchro is not working when a product is sold in the shop.
Link to a page where the issue can be seen: the whole page.
I expected to see: a normal synchro of stock between product variations no matter in which language a product is sold.
Instead, I got: different stock amounts in 2 languages of the same product and its same variation - so we had to synchronize via troubleshooting tool in "WooCommerce Multilingual & Multicurrency". And this is not working ether, because we started this at 10:24 a.m. and now 4:53 p.m. it still is working due to the indicator wheel at the right bottom.
Welcome to WPML support. I'd be happy to help you with this.
Have you tried disabling all non-WPML plugins, switching to one of the default themes, and checking whether the issue persists or not?
Please remember to create a backup of your site (both files and the database) before making any updates or changes. This is always a good practice.
Further, It looks like there is some php error happening when running the troubleshooting on your site which is creating the problem, being so can you please follow the below steps and share the results?
maybe I did not point that out enough: this is a live site. So real transactions are happening at a rate of about 70 to 80% of the sales in sum. So we cannot switch anything of or display things due to the customers actions.
We can only log things by debugging. And due to real sales actions we cannot just repeat creating a problem, sorry.
Are there more other ways to check a possible solution?
We would need to replicate the issue, so we would need to try these steps, from what I understand I suggest you create a staging site so we can troubleshoot this further.
we now created a complete new staging site. The credentials are:
We also deactivated all plugins that are not necessary for using the shop. A standard theme also was activated. So the status should be like recommended.
We also activated the payment method "Pay by invoice" so that you can test limitless.
To reproduce the mentioned main issue you have to make a lot of orders within German and English and check the stock amounts if they are the same or not.
I hope this fits your needs for maybe solving this issue.
I logged in and went to hidden link and saw a warning message from WPML
Some settings from the WooCommerce Multilingual & Multicurrency wpml-config.xml file have been overwritten.
You should check WPML configuration files added by other plugins or manual settings on the Multilingual Content Setup section.
Custom field _stock configuration from wpml-config.xml file was altered!
The custom field _stock should be don't translate by default but in your setup it's marked as Copy, so please change it to the default option and test the issue, this should fix the issue.
To change the custom field settings:
- Go to WPML->Settings->Custom Field Translations
- Click on "show system fields"
- Search for _stock and set it to "Don't translate"
We now changed the settings and will observe the behaviour, because the issue is not permanent. So we only can check each time a sale happens if the stocks synchronize correctly.
The issue itself is not really to be marked as solved because of this. But the timeframe can be short or longer, therefore I would say we mark it as closed, not solved an if the probem persists I will refer to this topic.
The ticket will be opened for 2 weeks without any activity, so feel free to test within this timeframe and let us know, if you need more than 2 weeks, you can open a new chat and mention about this ticket and we can move forward from there.
Thanks
The topic ‘[Closed] Synchronizing stock via troubleshooting is not working’ is closed to new replies.