• Resolved FahadUddinPK

    (@fahaduddinpk)


    I am trying to add a new post meta (cash on delivery price) for each of my order. Here is the code I am using,
    update_post_meta( $order_id, ‘cod_fee’, $extra_charges);
    When I update this code (I am not adding it in your plugin but in a new custom plugin) and I go to order export, it does not show me the new meta key (cod_fee) while exporting orders. Can you please help with it? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    So you go to section “Setup fields” , click “Add field”
    and don’t see “cod_fee” in the dropdown ?

    Do you have any order having this field ?
    Can you create fake order and fill “cod_fee” for it?

    The plugin pulls custom fields from existing orders.

    thanks, Alex

    Thread Starter FahadUddinPK

    (@fahaduddinpk)

    Thanks it worked.

    This is for post meta or order meta?

    Plugin Author algol.plus

    (@algolplus)

    hi

    WC order is post ??

    and it uses wp_postmeta, so no difference.

    thanks, Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding new post meta in export’ is closed to new replies.