Homey custom Invoice Generator
The Homey Invoice Generator is a custom WordPress plugin that generates invoices for bookings made through the Homey theme. The plugin utilizes TCPDF to create professional PDF invoices.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/gaganrdev/custom-homey-invoice/archive/refs/heads/main.zipHomey Invoice Generator
Description
The Homey Invoice Generator is a custom WordPress plugin that generates invoices for bookings made through the Homey theme. The plugin utilizes TCPDF to create professional PDF invoices.
Features
- Generates invoices for Homey bookings.
- Retrieves booking details, guest information, and pricing.
- Calculates SGST & CGST automatically.
- Adds property name for better identification.
- Uses TCPDF for high-quality PDF generation.
Installation
1️ Install TCPDF
The plugin requires TCPDF to generate PDFs. Install it by using the method below:
Manual Installation
- Download TCPDF from the official repository: https://github.com/tecnickcom/TCPDF
- Extract the files and upload them to your WordPress
wp-content/plugins/directory. - Ensure the
tcpdf.phpfile is located at:/srv/htdocs/wp-content/plugins/tcpdf/tcpdf.php
2 Install the Homey Invoice Generator Plugin
- Download or clone this repository into the
wp-content/plugins/directory:git clone https://github.com/yourusername/homey-invoice-generator.git - Activate the plugin in WordPress Admin under
Plugins > Installed Plugins.
Usage
- Navigate to your WordPress Admin.
- Go to
Bookingsand select a booking. - Append
?booking_id=BOOKING_IDto the URL:https://yourwebsite.com/wp-admin/admin-ajax.php?action=generate_invoice&booking_id=123 - The invoice will be generated as a downloadable PDF.
Note
- Works only with Homey Wordpress theme.
- You can modify the details button in Dashbord->Invoice to https://yourwebsite.com/wp-admin/admin-ajax.php?action=generate_invoice&booking_id=123 and replace 123 with reservation_id.
- Ensure the Directory has proper permission.
- Use FTP client to modify code in Wordpress.
- Use test-tcpdf.php to test if tcpdf is installed properly.
License
This project is licensed under the MIT License.
Contributing
Feel free to submit pull requests or open issues for improvements.
Made by Gagan