We are setting up our eshop and when we import a product in english we want it to duplicate in greek, which it's not.
We have a WP_Cron job which retrieves some products from another system via web services and inserts the new products at WooCommerce or updates them if already exists. The WP_Cron is scheduled to be executed every 1 hour.
When we insert a new product, we want to duplicate this product to the Greek language. The product is duplicated but neither the attributes, nor the variations are duplicated.
If we manually duplicate the product everything is working properly.
If we execute the process without WP_Cron (click on a button and wait for the process to complete) again everything is working properly.
We have tried to fix the issue to another WooCommerce installation with the Twenty Sixteen theme and just the WooCommerce and WPML installed but without success.
So, the question is how can we duplicate the product via WP_Cron.