Home Forums Theme Support Dokan Add customized field to the "Add New Product Page"

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  Sekander Badsha 4 years, 8 months ago.

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

    Jamie
    Member
    Post count: 7

    Hello,

    I am seeking assistance on how to Add customized field to the “Add New Product Page”
    If I am not mistaken the page is located at “themes/dokan/templates/new-product.php”

    I was adding the field in my Child Theme under “functions.php.

    I was trying to add the following filed:
    drop-down for Product: New, Used or refurbished

    Then I was trying to make a space for:
    Make,
    Model and year.

    Please assist. Thank you.

    #27005

    Simon
    Member
    Post count: 58

    You're probably better off using attributes for that. The attributes tab will show after the product is submitted the first time.

    See: WooCommerce Product Attributes and Adding attribute from Dokan frontend

    You can add fields to the new-product.php file, but you'll need to copy the file under the same directory structure in your child theme. Then you'll need to add the field and also make sure that it gets submitted with the rest of the fields in the form post action.

    #27184

    Sekander Badsha
    Member
    Post count: 2067

    Hello Jamie,
    You can follow Simons' instructon.

    And thank you @simon for being awesome ๐Ÿ˜€

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

The topic ‘Add customized field to the "Add New Product Page"’ is closed to new replies.