• I am using WPML with woocommerce. My customer doesn’t like the way that entering one product in two pages for making it multi-language. So, I custom made the product input page to hide everything but added some custom fields for my customer to enter ALL the product information including multi-language in ONE page. And I added a custom function to put back all the information to the right place from the custom field using the following hook.

    add_action(‘wp_insert_post’, ‘custom_product_save’);

    It works for simple product. But I don’t know how to do it for variable product. How can I change the product to variable product in the code and how can I add the variable?

    https://www.ads-software.com/plugins/woocommerce/

  • The topic ‘Adding Variable Product in the code’ is closed to new replies.