Home Forums Theme Support Dokan Add some field in Description in Product Page

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Sk 5 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17650

    Mohd Ghufran
    Member
    Post count: 25

    Hi Support,

    How to add some custom field in product page like screenshot below:

    Description

    Below add to cart or above it.

    #17651

    Sk
    Moderator
    Post count: 371

    Hello Mohd Ghufran,

    You could add some field 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.

    #17653

    Mohd Ghufran
    Member
    Post count: 25

    If I add this, so seller will have drop down option in their page right?
    I means drop down like :

    1. New Item
    2. Used Item

    #17655

    Sk
    Moderator
    Post count: 371

    No that hook is only for view in single product page.

    You could use hook ‘dokan_product_edit_after_downloadable' to add drop down field.

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

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

    #17802

    Mohd Ghufran
    Member
    Post count: 25

    I still can't understand this, it might be customization, but i need to know which file and the location of the file to edit.

    By the way when user listing their product the drop down menu selection will prompt where this item is new or used and will be show in listing page.

    #17941

    Sk
    Moderator
    Post count: 371

    Please check reference for do_action

    and reference for add_action

    Thank you

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

The topic ‘Add some field in Description in Product Page’ is closed to new replies.