• Resolved webcipokislaszlo

    (@webcipokislaszlo)


    Hello

    I’ve made a custom xml feed with your plugin.
    In the feed I only want to export just the variations.
    When I put the product ID to the feed it correctly show that.

    Is it possible somehow to put the parent product ID only to the first variaton?

    Example:

    parent product ID: 1

    1. variaton ID: 2
    2. variation ID: 3
    etc

    I need in the xml:
    1. variation ID: 1
    2. variaton ID: 3
    etc.

    Could you help me to make the feed like this?
    Regards

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

    (@wpallimport)

    Hi @webcipokislaszlo

    This may be possible, but it would require a custom PHP function: https://d.pr/TD4D5j. Unfortunately, I do not have an example function for your specific use case, but the idea would be to:

    • Pass the variation ID and parent ID to your function.
    • Check if it’s the first variation.
    • If it is, return the parent ID. Otherwise, return the variation ID.
    Thread Starter webcipokislaszlo

    (@webcipokislaszlo)

    Hi

    Sorry but i’m not a php expert. Could you please help me somehow how to make this?

    That’s the only thing left to make my feed ready.

    Regards

    Plugin Author WP All Import

    (@wpallimport)

    Hi @webcipokislaszlo

    I’m sorry, but we can’t write custom code for your project.

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

The topic ‘xml feed first variation id’ is closed to new replies.