Using WordPress Importer to import and connect Events and their Woo Products

Home Forums Ticket Products Event Tickets Plus Using WordPress Importer to import and connect Events and their Woo Products

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1280588
    Rob
    Participant

    Is there a way to use the WordPress Importer plugin to export event tickets and their associated WooCommerce products and then import them, connected, into another site?

    Here’s what I did:

    1. Export a specific event by exporting all events and then deleting all the events from the XML file <i>except</i> the event I want to import to the other site.
    2. Export the WooCommerce product that represents the ticket created for the event exported in #1 above.
    3. Import the event from #1 into the new site.
    4. Import the product from #2 into the new site.

    The problem is that the event on the new site is no longer associated with the WooCommerce product for its ticket.

    How do I connect them? Or do I only export/import the event and then manually re-create the ticket product?

    #1280590
    Rob
    Participant

    This reply is private.

    #1281647
    Barry
    Member

    Hi Rob,

    Great question.

    I’m admittedly unsure why they wouldn’t be connected – but I’m curious to learn why you are staging the import in this way.

    As a test, if I create an event and a matching (WooCommerce-backed) ticket, I can export using the regular WordPress exporter than import again on a clean install and both event and ticket come through, and are correctly associated with one another.

    Is it possible for you to try doing things that way?

    #1281937
    Rob
    Participant

    I’m doing this to develop content on a Dev version of the site and then export it so I can import it to a Live version of the site.

    Here’s a short screen video showing how I exported the event file from the Dev site. My screen recorder limits me to 30 seconds and staying on the same tab, so pretend that the import process is on the Live site, which is an identical WordPress and Event Tickets Plus/WooCommerce setup.

    In between the export and import process, I’m editing the XML file and removing all but the event I’m interested in exporting. As you can see in the file attached earlier, the only thing I could find in the exported XML that had to do with the event I wanted was the event, but not the WooCommerce product. I had to export that separately in its own XML file.

    Is there a better WordPress export/import plugin I should be using rather than the “default” one Automattic always recommends?

    #1281972
    Barry
    Member

    As you can see in the file attached earlier, the only thing I could find in the exported XML that had to do with the event I wanted was the event, but not the WooCommerce product. I had to export that separately in its own XML file.

    Sure, I understand that: but why not export the events and the products in the same operation, and similarly import them? You could still edit the XML in between those steps to remove extraneous data.

    Certainly when I tried just that, it worked without issue and on my destination site I imported an event complete with tickets/products.

    #1291873
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Using WordPress Importer to import and connect Events and their Woo Products’ is closed to new replies.