Add customized field to the "Add New Product Page"

  • Home
  • Forums
  • Dokan
  • Add customized field to the "Add New Product Page"
This topic contains 2 reply and 3 voices, and was last updated by Sekander Badsha 9 years, 7 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
September 19, 2014 at 12:31 am 26998
Sekander Badsha 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.
September 19, 2014 at 4:09 am 27005
Simon Simon

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.

September 22, 2014 at 4:35 pm 27184
Sekander Badsha Sekander Badsha

Hello Jamie,
You can follow Simons’ instructon.

And thank you @Simon for being awesome 😀

Viewing 2 Posts - 1 through 2 (of 2 total)