This presentation explains how to develop a custom event module in Magento to add and manage events, upload photos and Youtube videos, and view the event on Google map.
2. Magento is one of the most popular
choices for medium-to-large-scale web
shops.
Its feature set and architecture help set it
apart from other options available in
marketing today.
While there are a lot of third-party
extensions for Magento available, it is
also easy to develop them on your own.
Here we will specifically be looking at
the custom event module development.
3. Custom event module would enable you to do the following:
1. Add/edit event.
2. Manage event to add photos and YouTube videos.
3. See frontend view of the event on Google map with marker that
differentiates between the upcoming, current and past event.
Screen to add/edit event information.
4. Screen to mark location on map
You need to enter event venue in address field and it will then automatically locate
location on map with marker. You can drag and drop marker to adjust the location.
5. Front end view
Below is the screen showing the front
end view of the event:
Past event detail
For the past event, you can add photos
and YouTube videos. It is shown on the
event details page as below:
6. To change the default map to other country, open the following file:
“App/design/frontend/base/default/template/advaiya/event”
Open list.phtml file and update the latitude and longitude as country
specific (default is US lat, long)
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(39, -95);
Upload files to Magneto main folder and login/relogin into admin panel
to install the module. Once the module is installed, it will show up in the
top navigation named ‘event’.
7. Sample Code
You can download the sample code from here:
Have any questions?
You can reach us at connect@advaiya.com
+1 (425) 2563123
Follow Us: