Home Forums WoodMart support forum Custom field not showing up on Woodmart theme

Custom field not showing up on Woodmart theme

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #375279

    contactpleazurr
    Participant

    Hello,

    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.jpg

    The 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.

    #375282

    Artem Temos
    Keymaster

    Hello,

    Please, switch to the default WordPress twenty-twenty theme and send us a link where we can see this information shown.

    Thank you

    #375286

    contactpleazurr
    Participant

    Hello, 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?”

    #375290

    Artem Temos
    Keymaster

    No, 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

    #375301

    contactpleazurr
    Participant

    Hello,

    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?

    #375306

    Artem Temos
    Keymaster

    But you said that it doesn’t work with the default WordPress theme also, right? Then why it should work with WoodMart?

    #375308

    contactpleazurr
    Participant

    Ok 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() );”

    #375314

    Artem Temos
    Keymaster

    This 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

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