• Is it possible to import/set a custom URL/permlink for Woocommerce products?

    Sorry for posting this twice, I didn’t receive an answer last time, maybe you missed it.

    Thanks,
    Max

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author ImportWP

    (@jcollings)

    Hi Max,

    Similar to importing a post_type, you can enable the post_name field and this will alter the slug that the product uses.

    When importing products, the importer checks to see if your product exists by using the sku, if the sku doesnt exist then it uses the post_name field, followed by the product title, if all of these are missing then it will insert a new product instead of updating. (you can change the unique identifiers for templates https://www.importwp.com/documentation/change-importers-unique-identifier/).

    Because you are trying to change the post_name field you will need to reference your products using the sku.

    James

    Thread Starter deckermax16188

    (@deckermax16188)

    Hi James,

    thanks for the quick reply.

    But I’m not quite sure if it answers my question. I know that the imported product title will alter the slug, but is it possible to import/set the product URL directly?

    I’m asking because my import file has a unique SKU for each article which is already formatted as a slug/URL, whereby the title it not unique, so if possible I would like to set this as slug/URL directly.

    Thanks in advance,

    Max

    Plugin Author ImportWP

    (@jcollings)

    You can enable the post_name field (this is the slug of the product and not the title), via the enable fields button at the bottom of the post section.

    Thread Starter deckermax16188

    (@deckermax16188)

    Awesome, that clarifies some things.

    Thanks!

    Thread Starter deckermax16188

    (@deckermax16188)

    Sorry to bug you here James, but unfortunately it still isn’t clear.

    When importing a post there is a field to enable post slug as you can see in this screenshot:

    importwp post fields

    But when importing a product then I don’t see such thing as post_name or slug field:

    View post on imgur.com

    Or am I missing something here?

    Thanks for you help, much appreciated

    Plugin Author ImportWP

    (@jcollings)

    Hi,

    It looks as if the post_name / slug field is missing from the importwp-woocommerce plugin, i have updated the branch here: https://github.com/jcollings/importwp-woocommerce/tree/dev_fix_missing_slug to add in the missing fields, but i still need to write a few tests on this before i can make the update available via the releases tab.

    I will let update you when this is available.

    James

    Plugin Author ImportWP

    (@jcollings)

    v2.0.5 released of the importwp-woocommerce addon adding the missing product slug field https://github.com/jcollings/importwp-woocommerce/releases/tag/2.0.5

    Thread Starter deckermax16188

    (@deckermax16188)

    Wow, that’s amazing, thank you so much for the quick fix!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is it possible to import/set a custom URL/permlink for Woocommerce products?’ is closed to new replies.