• Resolved Moto_

    (@moto_)


    Hi Etoile,

    I’m using a few custom fields and set the option “Hide Blank Fields” to yes.
    But unfortunately it still shows me the blank fields on the front-end (order status page).

    Any tips to fix this?

    Thanks in advance.

    Example

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moto,

    That screenshot doesn’t really let us know what’s going on. The feature should work, so, either the custom field isn’t set up properly, there actually is a value in the field, or something else is conflicting. Could you let us know what type of custom fields those are and, if applicable, what you put for the input values? Also, would you be able to provide a link to your status tracking page and a test order number we can use?

    Thread Starter Moto_

    (@moto_)

    Hi Etoile,

    Thanks for your reply.

    1. The custom fields types are: short text (all of them)
    2. There are no assigned input values (blank)
    3. I’ve checked if there is a value in the field, but that’s not the case.
    4. If I set the display option to YES or NO the only fields it’s affecting are the standard fields from the plugin. So only the custom fields have the issue.

    Example:
    The first two custom fields have a value in the order details, the other two don’t.

    Custom fields overview: https:(slash)(slash)ibb.co(slash)e5sQLd
    Link: http:(slash)(slash)goo.gl(slash)u2JoUD
    Ordernumber: 1

    (P.S. I’ve made the urls unreadable for the bots, so please remove the (slash)’s en change them to /)

    Hope this makes it easier to understand.
    Thanks again.

    • This reply was modified 8 years ago by Moto_.
    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moto,

    That’s very strange then, because that feature 100% works in the current version. Did you ever have something written in for that field for order number 1? Or did you maybe upload the order via spreadsheet? Sometimes what happens is there is actually a space in the custom field and it is not completely blank? For order number 1, could you please try putting a value in for the custom field, saving, checking on the front end to make sure it’s showing correctly, and then deleting the value, saving and checking again? Does it show as blank, or is it now hidden?

    Another thing to keep in mind is that, if you’re using a caching plugin, it’s possible that you’re being served a cached version of the shortcode output and the hide blank fields option is not applied. You can try deactivating any caching plugin you have as a test.

    If the issue persists, then can you please try deactivating all other plugins to see if it makes a difference? You can also try a default WordPress theme as a test.

    Thread Starter Moto_

    (@moto_)

    Hi Etoile,

    I tried it on a another website and it works likes you said. Also tried to fill in some values and deleted it after but that didn’t do the trick.

    Now i’m trying to delete the plugin on the site with all of the settings and stuff for a fresh start, but somehow if i delete and reinstall the plugin it remembers the old settings. Deleted it through WP and and FTP but both ways doesn’t delete the old data.

    Does it keep a data backup somewhere?

    Nvm, i found that the tables are still in the database.

    wp_EWD_FEUP_Fields
    wp_EWD_FEUP_Levels
    wp_EWD_FEUP_Payments
    wp_EWD_FEUP_Users
    wp_EWD_FEUP_User_Events
    wp_EWD_FEUP_User_Fields
    wp_EWD_OTP_Customers
    wp_EWD_OTP_Custom_Fields
    wp_EWD_OTP_Fields_Meta
    wp_EWD_OTP_Orders
    wp_EWD_OTP_Sales_Reps

    I can delete those without issues? And reinstall the plugin?

    • This reply was modified 7 years, 12 months ago by Moto_.
    Thread Starter Moto_

    (@moto_)

    Hmm, i just can’t get it to a fresh install.
    Deleted the tables, but the custom statuses for example are still there.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moto,

    If you delete all tables that are prefixed with EWD_OTP, it will delete all data from the plugin. If you then reinstall fresh, it will create the sample data.

    To delete all your settings (from the “Options” area in the plugin), you would need to go into your wp_options table and delete all rows prefixed with EWD_OTP.

    Thread Starter Moto_

    (@moto_)

    Hi Etoile,

    First of all, thanks for your time and effort to support us.

    Tables
    Deleted all the tables and installed a fresh installation, but again no luck.

    Plugins
    Deactivated all plugins on several sites to check if that’s the issue, but that isn’t the case.

    Theme
    Also tried it with a standard WP theme, but again no luck.

    Fresh Installs
    To be 100% sure it isn’t a plugin issue I’ve installed the plugin on 2 new websites (test environments) and on both websites I didn’t get the function to work.

    Clean Installation Example:
    Example: https://bit(dot)ly/2Lv2mnG
    Ordernr: 1
    Custom Field = TEST (No value in the field.)
    Hide blank fields is enabled in the options.

    Also tried it with an older plugin version, but that didn’t fix it either.

    Any other suggestions?

    • This reply was modified 7 years, 11 months ago by Moto_.
    • This reply was modified 7 years, 11 months ago by Moto_.
    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moto,

    We just tested this on one of our test servers and it seems that some special charter escaping is the reason that’s making the fields non-empty. So when you first create a custom field the hide blank field works but if you edit an order then it stops working and it shows the blank field. We’ll have to do some more testing to find the cause of this.

    Thread Starter Moto_

    (@moto_)

    Hi Etoile,

    I’m glad you could reproduce the issue.
    If you found the issue and could let me know with a bump of this topic, I would appreciate that.

    Thanks again for you assistance and wish you a great weekend.

    Thread Starter Moto_

    (@moto_)

    Hi Etoile,

    Sorry to bother, but I’m curious to know if you have found the issue?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moto,

    Thanks for asking for an update. Unfortunately, we haven’t fixed this issue yet, we’re working on it and we’ll be able to add a fix for this in an upcoming update.

    Thread Starter Moto_

    (@moto_)

    Hi Etoile,

    No worries, we’ll patiently wait on the next update.
    Thanks in advance!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Hide Blank Fields’ is closed to new replies.