• Resolved Nazar Hotsa

    (@bugnumber9)


    Hello,

    Is it possible to exclude some fields from saving in ordermeta and usermeta?

    For example, we added some fields (HTML, checkbox) as purely “decorative” – those are some tips, extra info, acceptance, etc.
    We don’t need to save them in ordermeta and usermeta since this makes no sense.

    Such feature will help avoid cluttering the DB with extra unnecessary info.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @bugnumber9

    The general rule is that WooCommerce caches the sections that are constant with each order (like Billing and Shipping). Caching causes the fields to be completed based on the values stored in the profile. This is not a feature of our plugin but a WooCommerce feature.
    So these fields should be placed in the Order section – this section is not cached and the fields are not saved in the profile.

    Thread Starter Nazar Hotsa

    (@bugnumber9)

    Right, but what about a possibility to just display some fields on checkout page and NOT store them in the database?

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @bugnumber9

    I understand this point of view but our plugin does not provide this option.
    Please note that decorative fields (HTML etc.) have no values ??and are therefore not saved in the database.
    I would not call the checkbox a decorative field because it is a field with true/false values.

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude fields from saving in ordermeta and usermeta’ is closed to new replies.