Home › Forums › WoodMart support forum › Custom field not showing up on Woodmart theme
Custom field not showing up on Woodmart theme
- This topic has 7 replies, 2 voices, and was last updated 2 years, 9 months ago by
Artem Temos.
-
AuthorPosts
-
May 12, 2022 at 3:24 pm #375279
contactpleazurrParticipantHello,
I have a custom field (named “VAT ID Number”) which is showing on my live site (with Dokan theme) but it is not showing on the staging site with Woodmart.
Please see live site (with dokan theme): https://snipboard.io/7kfWZ5.jpg
Please see staging site (with woodmart theme): https://snipboard.io/w5JhWa.jpgThe customisation was done on the functions.php file.
https://wedevs.com/blog/108107/how-to-add-extra-field-on-vendor-settings-page/A note from Dokan:
“Please note that the code is working 100% correctly. The problem is – If you are using any theme which has override store-header.php and removed the hook dokan_store_header_info_fields then this code wont work.I have no control over that if the theme author removed that hook.
In that case, you can modify the store-header.php file inside your theme and add the hook manually or ask your theme author not to delete – do_action( ‘dokan_store_header_info_fields’, $store_user->get_id() );”
Could you please clarify what was done on woodmart’s part? Does woodmart override the store-header.php and removed the hook dokan_store_header_info_fields?
Please advise why this field does not show.
-
This topic was modified 2 years, 9 months ago by
contactpleazurr.
-
This topic was modified 2 years, 9 months ago by
contactpleazurr.
May 12, 2022 at 3:26 pm #375282
Artem TemosKeymasterHello,
Please, switch to the default WordPress twenty-twenty theme and send us a link where we can see this information shown.
Thank you
May 12, 2022 at 3:36 pm #375286
contactpleazurrParticipantHello, I have added the info in the private content.
It’s in the vendor’s dashboard where they enter their store info which I created the custom field to include their VAT# for invoices.
It does not work with a default theme, but as mentioned, I need to know if woodmart does the following, which is stated from Dokan:
“Please note that the code is working 100% correctly. The problem is – If you are using any theme which has override store-header.php and removed the hook dokan_store_header_info_fields then this code wont work.I have no control over that if the theme author removed that hook.
In that case, you can modify the store-header.php file inside your theme and add the hook manually or ask your theme author not to delete – do_action( ‘dokan_store_header_info_fields’, $store_user->get_id() );”
Could you please clarify what was done on woodmart’s part for the reason why it doesn’t show? Does woodmart override the store-header.php and removed the hook dokan_store_header_info_fields?”
May 12, 2022 at 3:42 pm #375290
Artem TemosKeymasterNo, we didn’t override that file. You can try to find it in our theme files to see that we didn’t do this.
Kind Regards
May 12, 2022 at 3:52 pm #375301
contactpleazurrParticipantHello,
Thanks for your response. Why does the custom field not show up in woodmart theme then?
In that case, you can modify the store-header.php file inside your theme and add the hook manually or ask your theme author not to delete – do_action( ‘dokan_store_header_info_fields’, $store_user->get_id() );”
Is it safe t modify the store-header.php file inside the woodmart theme and add the hook manually?
May 12, 2022 at 3:56 pm #375306
Artem TemosKeymasterBut you said that it doesn’t work with the default WordPress theme also, right? Then why it should work with WoodMart?
May 12, 2022 at 4:04 pm #375308
contactpleazurrParticipantOk but I am trying to get it to work, so I am asking, Is it safe t modify the store-header.php file inside the woodmart theme and add the hook manually?
In that case, you can modify the store-header.php file inside your theme and add the hook manually or ask your theme author not to delete – do_action( ‘dokan_store_header_info_fields’, $store_user->get_id() );”
May 12, 2022 at 4:13 pm #375314
Artem TemosKeymasterThis file is related to the Dokan plugin, and not to our theme. You need to consult with plugin developers for help on this matter.
Kind Regards
-
This topic was modified 2 years, 9 months ago by
-
AuthorPosts
- You must be logged in to create new topics. Login / Register