• Resolved Vivek Athalye

    (@vnathalye)


    Earlier there were couple of hooks wcmp_fpm_fields_general and after_wcmp_fpm_data_meta_save using which we could add custom fields on general tab of Add/Edit Product page.

    But in current version these hooks are missing and I could not find any equivalent filters / actions that serve the purpose.

    Can you please suggest me the right way to add a Mandatory Select list on general tab?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @vnathalye, You have to use this filter wcmp_afm_before_general_product_data to add custom field under General tab, and use this filter to save the data wcmp_process_product_object

    Thread Starter Vivek Athalye

    (@vnathalye)

    Ok. So as I understand, now we need to write the HTML for showing required fields, as compared to the earlier method where we just needed to pass the field configuration and the API will generate appropriate HTML.

    Fine. Will use these. Thanks.

    Thread Starter Vivek Athalye

    (@vnathalye)

    @dualcube One suggestion:
    Whenever a hook is removed or changed, mention it in changelog.
    Or otherwise implement a functionality like the one WooCommerce has implemented with WC_Deprecated_Hooks.
    That will avoid confusion and help developers to quickly find alternative hooks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘custom fields on Product – General tab’ is closed to new replies.