verbb / events

Craft CMS Plugin for events management and ticketing.
Other
22 stars 13 forks source link

Tickets in feedMe? #145

Closed anchovy closed 4 months ago

anchovy commented 8 months ago

Question

Can we import tickets via feedme? it's mentioned in #46 but this is quite old. The ticket options are visible when setting up the feedme feed, but neither the ticket settings capacity field is added when run. image

Additional context

No response

engram-design commented 8 months ago

Seems to work for me using JSON data.

[
    {
        "title": "Feed Me Test",
        "tickets": [
            {
                "type": 158,
                "price": 11,
                "quantity": 9999
            }
        ]
    }
]

Note that that type is the Ticket Type ID. I can see you're just using default values, but the integration doesn't work like that and needs to be provided with an array of ticket data. It's possible we can make allowances for this scenario if that's valid - I just wasn't sure if you were doing that just for testing.

anchovy commented 8 months ago

Hi, thanks for that. In our use case we do need default tickets for all imported events, so using default values is a valid use case.

engram-design commented 8 months ago

Fixed for the next release. To get this early, run composer require verbb/events:"dev-craft-4 as 2.0.5".

engram-design commented 4 months ago

Fixed in 2.0.6