Support » Plugin: Import any XML or CSV File to WordPress » I can’t import meta fields to Product

  • Resolved AHOiREKLAMA

    (@ahoireklama)


    I am trying to import and update WooCommerce prodcuts with WP All Import but I can’t import custom fields at all. All of my products are variable (each variation is represented as a standalone product with it’s and parent’s IDs in the XML) and I am setting custom fields like this:

    http://prntscr.com/tr7eha

    And I am using these import settings (I want to only update custom fields in this run):

    http://prntscr.com/tr7gfa

    No luck. The log says all products were updated, but those meta fields are not there. I’ve check wp_postmeta table, they are not there at all.

    This is what the log says for those metafields (and every other custom field as well):

    [12:40:46] - Custom field _wpm_gtin_code has been deleted for 'Dámska tunika Pink Planet LS204' attempted to 'update all custom fields' setting ...
    [12:40:46] - Custom field feed_name has been deleted for 'Dámska tunika Pink Planet LS204' attempted to 'update all custom fields' setting ...
    • This topic was modified 2 years, 4 months ago by AHOiREKLAMA.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AHOiREKLAMA

    (@ahoireklama)

    Additional info: The deletion seems OK, I can see it is first trying to delete it, then to create it agaon, these lines are further in the log:

    [13:58:55] - ACTION: pmxi_custom_field
    [13:58:55] - Custom field <code>_wpm_gtin_code</code> will be updated with value <code>9595950011547</code> for post <code>Dámska tunika Pink Planet LS204</code> ...
    [13:58:55] - ACTION: pmxi_update_post_meta
    [13:58:55] - ACTION: pmxi_custom_field
    [13:58:55] - Custom field <code>feed_name</code> will be updated with value <code>vip</code> for post <code>Dámska tunika Pink Planet LS204</code> ...
    [13:58:55] - ACTION: pmxi_update_post_meta

    It is worth to mention those custom fields don’t exist in wp_postmeta table. Does WPAI only update existing meta fields? If so, what would be the correct approach to this?

    Edit: It does not update the field which meta_key actually exists in the postmeta table eaither. It does not work at all.

    • This reply was modified 2 years, 4 months ago by AHOiREKLAMA.
    Thread Starter AHOiREKLAMA

    (@ahoireklama)

    Oh god. It works, mea culpa.

    Those settings were all right. I just messed up the unique identifier and ended up with creating new products after every run, while I was checking for those custom fields in the original products. I didn’t notice.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I can’t import meta fields to Product’ is closed to new replies.