Home Forums Theme Support Dokan Custom field in products

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  migueldelacueva 5 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #17870

    Post count: 6

    How can i create a Custom Field and associate it with a Product?

    And render that Custom field in the product template?


    Post count: 371

    hello migueldelacueva,

    You could use hook ‘dokan_product_edit_after_downloadable’ to add Custom Field.

    <?php do_action( 'dokan_product_edit_after_downloadable' ); ?>

    This will show on the side-bar of product edit page.


    You could show the fields in product page by using action hook ‘woocommerce_single_product_summary’.

    <?php add_action( 'woocommerce_single_product_summary', 'your_function', 40 ); ?>

    Please be aware on next update. You may lose your custom code.

    Thank you.


    Post count: 6

    Hi and Thanks,

    I am new with code, may you please specify that with an example and where do i have to write that?

    i mean for < ?php do_action( 'dokan_product_edit_after_downloadable' ); ?>
    in order to add a custom field

    and < ?php add_action( 'woocommerce_single_product_summary', 'your_function', 40 ); ?>
    in order to show fields in a product page

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom field in products’ is closed to new replies.