• Resolved Kosmostarfild

    (@kosmostarfild)


    Hello!
    When importing store coupons from xml, they create a new store in the stores category. For example: “ChicMe WW” (slug: chicme_ww).
    Then, I need to change the “name” and “slug” of the created store to get “ChicMe” (slug: chicme).
    The problem is that if at the next import from xml a new coupon appears, which is addressed to the “ChicMe WW” store, then another “ChicMe WW” store is created again.
    How to make sure that on the next import new coupons are assigned to the changed store with the changed data “ChicMe” (slug: chicme)? https://yadi.sk/i/QH13-WJ9vtf4VA
    I really hope for your help.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @kosmostarfild,

    How to make sure that on the next import new coupons are assigned to the changed store with the changed data “ChicMe” (slug: chicme)?

    You must import the new “slug” to match the existing store category.

    Thread Starter Kosmostarfild

    (@kosmostarfild)

    You must import the new “slug” to match the existing store category.

    And what function can you use so that “old_slug” is renamed to “new_slug” on import, and the import is identified by the store ID, and not by “name” and “slug”?

    Plugin Author WP All Import

    (@wpallimport)

    Hi @kosmostarfild,

    And what function can you use so that “old_slug” is renamed to “new_slug” on import

    Here’s an example of how to map/rename values during an import: https://www.wpallimport.com/documentation/developers/code-snippets/#mapping-values.

    and the import is identified by the store ID, and not by “name” and “slug”?

    WP All Import searches for taxonomy terms by slug, so this really shouldn’t be necessary as long as you’re mapping the value “ChicMe WW” to “chicme” (the new slug).

    Plugin Author WP All Import

    (@wpallimport)

    Hi @kosmostarfild,

    I’m marking this as resolved since it’s been a while. You can follow up here if you still have a question.

    Anyone else reading this, please open a new topic.

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

The topic ‘Import problem into modified category’ is closed to new replies.