Lodgify API Integration with Calendar – WP Plugin
This project was to create a custom API Integration with Lodgify APIs to fetch availabilty and price for properties from client’s account. On Frontend it has a shortcode to display calendar with availability and price of that property.
On backend, we have settings page to enter API Key for lodgify and select which property to show availablity and price on frontend calendar.
It includes features like:
- Shortcode to display calendar on frontend on any page or widget.
- Backend settings page to enter API Key from Lodgify and select property for displaying availability and price on frontend shortcode.
A Shortcode for Calendar
This plugin has a shortcode to display availability and price calendar that will show availabilty of property for each date and price for same.
It also shows color based on availability, also show night stay availability with a icon.
Backend Settings page for API
This plugin has a settings page on backend to enter API key from Lodgify for connecting to their API.
It also allow to select a propoerty which we will fetch price and availability for calendar on frontend.
Caching for Pricing
This plugin use wordpress’s transient feature to cache fetched price and availability for an hour so it doesn’t need to fetch it from API every time calendar is visited on frontend.
