Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi thetaalchemy,

    your template gives a rough idea, what you need in the end.
    The goal is to have a new JSON where the venue/location and event is in one node.

    But the Template-Engine doens not work like your Template suggested.

    E.g. try just:
    {startDate}

    This should give you “2015-07-24 13:00:00”

    subloop and similar concepts can be used to extract the List of “offers”.

    Thread Starter thetaalchemy

    (@thetaalchemy)

    I am so sorry – i posted the desired output.

    here is the input (or some of it) things that I have seen you do but cant seem to get to work is object referencing for example below:
    {pagination.object_count} does not work.

    {
    “pagination”: {
    “object_count”: 6,
    “page_number”: 1,
    “page_size”: 50,
    “page_count”: 1
    },
    “events”: [
    {
    “resource_uri”: “https://www.eventbriteapi.com/v3/events/17316473037/”,
    “name”: {
    “text”: “Theta Healing Manifesting Abundance Boulder CO”,
    “html”: “Theta Healing Manifesting Abundance Boulder CO”
    },
    “description”: {
    “text”: “…”,
    “html”: “…”
    },
    “id”: “17316473037”,
    “url”: “https://www.eventbrite.com/e/theta-healing-manifesting-abundance-boulder-co-tickets-17316473037”,
    “start”: {
    “timezone”: “America/Denver”,
    “local”: “2015-09-19T13:00:00”,
    “utc”: “2015-09-19T19:00:00Z”
    },
    “end”: {
    “timezone”: “America/Denver”,
    “local”: “2015-09-20T16:00:00”,
    “utc”: “2015-09-20T22:00:00Z”
    },
    “created”: “2015-06-09T03:58:04Z”,
    “changed”: “2015-06-09T04:03:38Z”,
    “capacity”: 8,
    “status”: “live”,
    “currency”: “USD”,
    “listed”: true,
    “shareable”: true,
    “invite_only”: false,
    “online_event”: false,
    “show_remaining”: false,
    “tx_time_limit”: 480,
    “logo_id”: “13770509”,
    “organizer_id”: “657845911”,
    “venue_id”: “10708278”,
    “category_id”: “114”,
    “subcategory_id”: “14009”,
    “format_id”: “9”,
    “category”: {
    “resource_uri”: “https://www.eventbriteapi.com/v3/categories/114/”,
    “id”: “114”,
    “name”: “Religion & Spirituality”,
    “name_localized”: “Religion & Spirituality”,
    “short_name”: “Spirituality”,
    “short_name_localized”: “Spirituality”
    },
    “subcategory”: {
    “resource_uri”: “https://www.eventbriteapi.com/v3/subcategories/14009/”,
    “id”: “14009”,
    “name”: “New Age”
    },
    “format”: {
    “resource_uri”: “https://www.eventbriteapi.com/v3/formats/9/”,
    “id”: “9”,
    “name”: “Class, Training, or Workshop”,
    “name_localized”: “Class, Training, or Workshop”,
    “short_name”: “Class”,
    “short_name_localized”: “Class”
    },
    “venue”: {
    “address”: {
    “address_1”: “2855 Folsom Street”,
    “address_2”: null,
    “city”: “Boulder”,
    “region”: “CO”,
    “postal_code”: “80304”,
    “country”: “US”,
    “latitude”: 40.028966,
    “longitude”: -105.26342999999997
    },
    “resource_uri”: “https://www.eventbriteapi.com/v3/venues/10708278/”,
    “id”: “10708278”,
    “name”: “Unity of Boulder Spiritual Center”,
    “latitude”: “40.028966”,
    “longitude”: “-105.26342999999997”
    },
    “ticket_classes”: [
    {
    “resource_uri”: “https://www.eventbriteapi.com/v3/events/17316473037/ticket_classes/36651496/”,
    “id”: “36651496”,
    “name”: “Deposit”,
    “description”: “Deposit Only\r\n$344 Due at start of the Class. excl. Accomodation. Student must provide their own food and beverages (we provide plenty of water)”,
    “cost”: {
    “currency”: “USD”,
    “display”: “$100.00”,
    “value”: 10000
    },
    “fee”: {
    “currency”: “USD”,
    “display”: “$3.49”,
    “value”: 349
    },
    “tax”: {
    “currency”: “USD”,
    “display”: “$0.00”,
    “value”: 0
    },
    “actual_cost”: {
    “currency”: “USD”,
    “display”: “$100.00”,
    “value”: 10000
    },
    “actual_fee”: {
    “currency”: “USD”,
    “display”: “$3.49”,
    “value”: 349
    },
    “donation”: false,
    “free”: false,
    “minimum_quantity”: 1,
    “maximum_quantity”: 10,
    “maximum_quantity_per_order”: 10,
    “on_sale_status”: “AVAILABLE”,
    “quantity_total”: 90,
    “quantity_sold”: 0,
    “sales_start”: “2011-05-06T15:00:00Z”,
    “sales_end”: “2015-09-05T13:00:00Z”,
    “hidden”: false,
    “include_fee”: false,
    “split_fee”: false,
    “hide_description”: true,
    “auto_hide”: false,
    “variants”: [],
    “event_id”: “17316473037”
    },
    {
    “resource_uri”: “https://www.eventbriteapi.com/v3/events/17316473037/ticket_classes/36651497/”,
    “id”: “36651497”,
    “name”: “Full Payment”,
    “description”: null,
    “cost”: {
    “currency”: “USD”,
    “display”: “$444.00”,
    “value”: 44400
    },
    “fee”: {
    “currency”: “USD”,
    “display”: “$0.00”,
    “value”: 0
    },
    “tax”: {
    “currency”: “USD”,
    “display”: “$0.00”,
    “value”: 0
    },
    “actual_cost”: {
    “currency”: “USD”,
    “display”: “$434.05”,
    “value”: 43405
    },
    “actual_fee”: {
    “currency”: “USD”,
    “display”: “$9.95”,
    “value”: 995
    },
    “donation”: false,
    “free”: false,
    “minimum_quantity”: 1,
    “maximum_quantity”: null,
    “maximum_quantity_per_order”: 8,
    “on_sale_status”: “AVAILABLE”,
    “quantity_total”: 8,
    “quantity_sold”: 0,
    “sales_start”: “2012-05-01T14:00:00Z”,
    “sales_end”: “2015-09-19T14:00:00Z”,
    “hidden”: false,
    “include_fee”: true,
    “split_fee”: false,
    “hide_description”: true,
    “auto_hide”: false,
    “variants”: [],
    “event_id”: “17316473037”
    }
    ],
    “logo”: {
    “id”: “13770509”,
    “url”: “https://img.evbuc.com/http%3A%2F%2Fcdn.evbuc.com%2Fimages%2F13770509%2F1677975177%2F1%2Foriginal.jpg?h=200&w=450&s=b0c99eae1361a065a32103a5af8a6cb9”,
    “aspect_ratio”: “2”
    },
    “organizer”: {
    “description”: {
    “text”: “XXX”,
    “html”: “xxx”
    },
    “logo”: null,
    “resource_uri”: “https://www.eventbriteapi.com/v3/organizers/657845911/”,
    “id”: “657845911”,
    “name”: “Kevin Baluha”,
    “url”: “https://www.eventbrite.com/o/kevin-baluha-657845911”,
    “num_past_events”: 56,
    “num_future_events”: 6
    }
    }
    ]
    }

    Plugin Author berkux

    (@berkux)

    Parsing out of your JSON the following is no problem:
    { “@context” : “https://schema.org”, “@type” : “EducationEvent”, “name” :”Theta Healing Manifesting Abundance Boulder CO”, “startDate” : “2015-09-19T13:00:00″,”,”endDate”:”2015-09-20T16:00:00″ “Location” : {“@type” : “Place”,”address”:”2855 Folsom Street Boulder CO 80304″,”name”:”Unity of Boulder Spiritual Center” }}

    There are 2 things you have to change in your template. Either you’ll find it. Or: My principle is: Donate whatever this is worth to you – in return I’ll send you the template code.
    That’s my offer…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘subloop ignored?’ is closed to new replies.