User Guide of Magento 2 Event Manager
Configurations
At the back end, go to FME EXTENSIONS > Configurations. Here you will find the following information:
- Enable Module: Enable or disable the extension.
- Header Link Title: Enter the title for the header on the events page.
- Enable Header Link: Enable or disable the header link for the events page.
- Footer Link Label: Enter the label/title for the footer link on the events page.
- Enable Footer Link: Enable or disable the footer link for the events page.
- Standard Latitude: Specify the latitude for the map’s default setting.
- Standard Longitude: Specify the longitude for the map’s default setting.
- API Key: Enter the Google Maps API Key (v3).
- Map Zoom: Specify the zoom level for Google Maps.
SEO Configurations
- Page Title: Specify title for events page
- Description: Provide description for events page
- Keywords: Provide keywords for events page
- URL Prefix: Provide events page access. URL (e.g. http://www.example.com/event)
- URL Suffix: Provide URL suffix e.g. .html
Configure Event Status Messages
Error message for empty collection: An Error message to be shown if no event has been defined for a particular date.
How To Manage Events?
At the back end go FME EXTENSIONS > Manage Events. Here you will find the list of all events in your store. You can edit events here as highlighted below. Click on Add New Events to continue.
Here you have to provide the following information to create an event:
General Form
- Status: Enable/Disable the event
- Event Title: Specify the title of the event
- Event Venue: Specify the name for the event venue
- Color: Select from the given colors to highlight the event
- Start Date: Schedule start date of the event
- End Date: Schedule end date for the event
- URL Prefix: Provide URL prefix for the event
- YouTube Video URL: Provide video (YouTube only) link for the event
- Provide custom text, insert widget or insert variable for the event
Recurring Events
- Recurring: Enable/Disable recurring option
- Repeat: Options to specify the repeat schedule
- Repeat Every: Options to repeat the event (1:mon | 2:mon-tue | 3:mon,tue,wed |..and so on)
Contact Information
Here you have to provide the contact information for the event in the following fields.
- Contact Person
- Phone
- Fax
- Address
Meta Information
- Page Title: Specify event page title
- Keywords: Specify event page keywords
- Description: Provide event page description
- Specify the store views for the event to be displayed on.
Venue Markers
Enter event location in the search field, drag the marker to populate the latitude and longitude in the form fields.
- Search Field
- Latitude: Provide latitude on the event location
- Longitude: Provide longitude of the event location
Event Tickets With Limited Options i.e. Dropdown And Input
- Options to attach products to the event which will function as the tickets for the event.
Gallery Images
- Options to attach images to the event.
GraphQL APIs
1. Events List
Description: Fetches paginated events for a store, allowing sorting by Start Date, End Date, and Event Name, while displaying basic product details. It also provides pagination information, including total count, current page, total pages, and page size.
Query
{
EventList(page: 1, pageSize: 5, sortBy: StartDate, sortOrder: DESC) {
items {
event_id
event_name
event_venue
event_start_date
event_end_date
image{
media_id
file
}
}
total_count
page_info {
current_page
total_pages
page_size
}
}
}
Result
{
"data": {
"EventList": {
"items": [
{
"event_id": 1,
"event_name": "Champion Tropy",
"event_venue": "Pakistan",
"event_start_date": "2025-02-20T10:40:00.000Z",
"event_end_date": "2025-03-31T09:40:00.000Z",
"image": [
{
"media_id": 1,
"file": "http://guest-tocustomer.local/media/tmp/events/event/media/Screenshot_from_2025-02-13_17-18-39.png"
},
{
"media_id": 2,
"file": "http://guest-tocustomer.local/media/tmp/events/event/media/Screenshot_from_2025-02-12_10-55-43.png"
},
{
"media_id": 3,
"file": "http://guest-tocustomer.local/media/tmp/events/event/media/Screenshot_from_2025-02-03_18-23-49.png"
}
]
},
{
"event_id": 2,
"event_name": "Tri Nation Series",
"event_venue": "Pakistan",
"event_start_date": "2025-02-18T05:49:00.000Z",
"event_end_date": "2025-02-25T05:49:00.000Z",
"image": [
{
"media_id": 5,
"file": "http://guest-tocustomer.local/media/tmp/events/event/media/Screenshot_from_2024-12-12_15-45-41.png"
}
]
}
],
"total_count": 2,
"page_info": {
"current_page": 1,
"total_pages": 1,
"page_size": 5
}
}
}
}
2. Get Event Details
Description: To retrieve event details along with related products.
Query
{
EventDetail(eventId: 2) {
event_id
event_name
event_venue
color
latitude
longitude
event_start_date
event_end_date
event_image
event_content
event_video
event_url_prefix
event_page_title
event_meta_keywords
event_meta_description
contact_name
contact_phone
contact_fax
contact_email
contact_address
identifier
creation_time
update_time
is_recurring
recurring_by
recurring_intervals
recurring_occurrences
recurring_on
recurring_end_dates
skip_date
is_active
store_id
image{
media_id
file
label
position
}
products {
product_id
name
price
image_url
}
}
}
Result
{
"data": {
"EventDetail": {
"event_id": 2,
"event_name": "Tri Nation Series",
"event_venue": "Pakistan",
"color": "black",
"latitude": "",
"longitude": "",
"event_start_date": "2025-02-18T05:49:00.000Z",
"event_end_date": "2025-02-25T05:49:00.000Z",
"event_image": "",
"event_content": "<style>#html-body [data-pb-style=SHQX2O1]{justify-content:flexstart;display:flex;flex-direction:column;background-position:left top;backgroundsize:cover;background-repeat:no-repeat;background-attachment:scroll}</style><div datacontent-type=\"row\" data-appearance=\"contained\" data-element=\"main\"><div data-enableparallax=\"0\" data-parallax-speed=\"0.5\" data-background-images=\"{}\" data-backgroundtype=\"image\" data-video-loop=\"true\" data-video-play-only-visible=\"true\" data-videolazy-load=\"true\" data-video-fallback-src=\"\" data-element=\"inner\" data-pbstyle=\"SHQX2O1\"><div data-content-type=\"text\" data-appearance=\"default\" dataelement=\"main\"><p>This is tri nation series between Pak, Aus, Eng</p></div></div></div>",
"event_video": "",
"event_url_prefix": "tri-nation-series",
"event_page_title": "Tri Nation Series",
"event_meta_keywords": null,
"event_meta_description": null,
"contact_name": "Naeem Adil",
"contact_phone": "03063692192",
"contact_fax": "",
"contact_email": "naeem.adil@unitedsol.net",
"contact_address": "Islamabad",
"identifier": "",
"creation_time": "2025-02-18 05:52:35",
"update_time": "2025-02-18 05:58:35",
"is_recurring": 0,
"recurring_by": 0,
"recurring_intervals": 0,
"recurring_occurrences": "",
"recurring_on": "",
"recurring_end_dates": "",
"skip_date": "",
"is_active": 1,
"store_id": 0,
"image": [
{
"media_id": 5,
"file": "http://guest-to-
customer.local/media/tmp/events/event/media/Screenshot_from_2024-12-12_15-45-41.png",
"label": "",
"position": 7
}
],
"products": [
{
"product_id": 1,
"name": "Joust Duffle Bag",
"price": "34.000000",
"image_url": "http://guest-tocustomer.local/media/catalog/product/m/b/mb01-blue-0.jpg"
},
{
"product_id": 2,
"name": "Strive Shoulder Pack",
"price": "32.000000",
"image_url": "http://guest-tocustomer.local/media/catalog/product/m/b/mb04-black-0.jpg"
},
{
"product_id": 6,
,"حقيبة ظهر فيوجن" :"name "
"price": "59.000000",
"image_url": "http://guest-tocustomer.local/media/catalog/product/m/b/mb02-gray-0.jpg"
},
{
"product_id": 14,
"name": "Push It Messenger Bag",
"price": "45.000000",
"image_url": "http://guest-tocustomer.local/media/catalog/product/w/b/wb04-blue-0.jpg"
}
]
}
}
}