Trip Package Sale
A comprehensive WordPress + WooCommerce plugin for travel package booking and sales. Features destination management, trip scheduling, passenger details collection, PDF confirmations, and a complete agent/reseller system with wallet payments.
đ Table of Contents
đ Getting Started
- âĸ System Requirements
- âĸ Auto Setup NEW
- âĸ Installation
- âĸ WooCommerce Setup
đī¸ Trip Management
- âĸ Destinations
- âĸ Categories
- âĸ Trip Packages
- âĸ Trip Dates & Scheduling
đ Booking System
- âĸ Booking Flow
- âĸ Passenger Details
- âĸ Payment Processing
- âĸ PDF Confirmation
đĨ Agent System
- âĸ Agent Registration
- âĸ Wallet System
- âĸ Discounts
- âĸ Agent Dashboard
âī¸ Configuration
- âĸ General Settings
- âĸ Auto-Created Resources NEW
- âĸ Email Settings
- âĸ Page Assignments
đ§ Advanced
- âĸ Shortcodes
- âĸ Hooks & Filters
- âĸ Troubleshooting
- âĸ FAQ
đ Auto Setup Feature
Zero configuration required - everything is created automatically on activation!
New in v1.2.0: When you activate the plugin, all required pages and the WooCommerce product are created automatically. No manual setup needed!
đ Auto-Created Pages
- Trip Listing -
/trip-listing/ - Trip Details -
/trip-details/ - Trip Booking -
/trip-booking/ - Booking Confirmation -
/trip-booking-confirmation/
đ Auto-Created Product
- Name: Trip Package
- SKU:
trip-package-sale - Type: Virtual, Sold Individually
- Visibility: Hidden from catalog
- Price: $0 (set dynamically)
đ§ Recreate Resources
- Go to Trip Packages â Settings
- View resource status in General tab
- Click "Recreate Missing Resources"
- Missing pages/product will be recreated
- Existing resources are preserved
đĸ Activation Notice
- Shows all created resources
- Direct links to edit each page
- Link to edit WooCommerce product
- Reminder to flush permalinks
- Link to plugin settings
System Requirements
Minimum requirements to run the plugin
WordPress
5.8+WooCommerce
5.0+PHP
7.4+MySQL
5.7+SSL
RecommendedMemory
128MB+PHP Extensions Required:
- GD or Imagick - For PDF generation
- mbstring - For multi-byte string handling
- JSON - For data processing
Core Features
Everything you need for travel package sales
Auto Setup
All required pages and WooCommerce product are created automatically on activation. Zero manual configuration needed to get started.
Destination Management
Create and manage travel destinations with images, descriptions, countries, and featured status. Organize trips by location for easy browsing.
Trip Categories
Organize trips into categories like Adventure, Beach, Cultural, Family, etc. Each category can have its own image and description.
Trip Packages
Create detailed trip packages with itineraries, inclusions, exclusions, duration, pricing for adults/children/infants, and photo galleries.
Trip Scheduling
Set multiple departure dates for each trip with individual pricing, availability tracking, and seat limits per date.
Passenger Management
Collect detailed passenger information including passport details, dietary requirements, special requests, and emergency contacts.
PDF Confirmations
Automatic PDF booking confirmation generation with trip details, passenger list, payment summary, and important travel information.
WooCommerce Integration
Seamless checkout with all WooCommerce payment gateways. Full HPOS compatibility for modern order storage.
Reviews & Ratings
Customer review system for trips with star ratings. Display average ratings on trip cards and detail pages.
Installation Guide
Get up and running in minutes
đĻ Step 1: Install Plugin
-
1
Upload plugin to /wp-content/plugins/
-
2
Activate via Plugins â Installed Plugins
-
3
Plugin creates database tables automatically
đ Step 2: Automatic Setup AUTO
-
â
Trip Listing page created automatically
-
â
Trip Details page created automatically
-
â
Trip Booking page created automatically
-
â
Booking Confirmation page created automatically
-
â
WooCommerce product created automatically
-
â
Settings linked automatically
âī¸ Step 3: After Activation
-
1
Go to Settings â Permalinks and click Save Changes (flushes rewrite rules)
-
2
Navigate to Trip Packages â Settings to configure options
-
3
Start creating destinations, categories, and trips!
đ Step 4: Add Search Form
-
1
Create a page or use homepage
-
2
Add shortcode:
[trip_search] -
3
Optional: Add
[trip_featured]for featured trips -
4
Optional: Add
[trip_destinations]for destinations grid
That's it! With auto-setup, you no longer need to manually create pages or the WooCommerce product. The plugin handles everything on activation!
đ Auto-Created Pages Reference
| Page | Slug | Shortcode | Status |
|---|---|---|---|
| Trip Listing | /trip-listing/ |
[trip_listing] |
AUTO |
| Trip Details | /trip-details/ |
[trip_details] |
AUTO |
| Trip Booking | /trip-booking/ |
[trip_booking] |
AUTO |
| Booking Confirmation | /trip-booking-confirmation/ |
[trip_booking_confirmation] |
AUTO |
| Trip Search | Your choice | [trip_search] |
Manual |
đī¸ Trip Management
Creating and managing travel packages
đ Destinations
-
â
Name & Country - Location identification
-
â
Description - Detailed destination info
-
â
Featured Image - Destination cover photo
-
â
Featured Status - Highlight on homepage
-
â
Trip Count - Auto-calculated trips
đ Categories
-
â
Category Name - Adventure, Beach, etc.
-
â
Description - Category overview
-
â
Category Image - Visual representation
-
â
Status - Active/Inactive toggle
-
â
Trip Count - Trips in category
âī¸ Trip Package Fields
- Trip Title
- Short Description
- Full Description (WYSIWYG)
- Destination & Category
- Featured Image & Gallery
- Days / Nights
- Departure Location
- Departure Time
- Multiple Departure Dates
- Adult Price
- Child Price
- Infant Price
- Discount Price (optional)
- Itinerary (day-by-day)
- What's Included
- What's Excluded
- Important Notes
Booking Workflow
Complete customer journey from search to confirmation
1. Search
Browse destinations, categories, or search trips
2. Select Trip
View details, itinerary, photos
3. Choose Date
Select departure date & passengers
4. Passengers
Enter all passenger details
5. Payment
WooCommerce checkout
6. Confirmation
Booking ref & PDF download
đĨ Passenger Details Form
Information collected for each traveler
Adults
Required: Title, First Name, Last Name, Date of Birth, Gender, Nationality
Passport: Number, Expiry Date, Issuing Country
Contact: Email, Phone (lead passenger)
Children
Required: Title, First Name, Last Name, Date of Birth, Gender
Passport: Number, Expiry Date
Age: Must match child age range
Infants
Required: First Name, Last Name, Date of Birth, Gender
Passport: Number, Expiry Date (international)
Note: Must be under 2 on departure
đ Form Validation Features
- Real-time validation - Errors shown instantly as user types
- Passport expiry check - Must be valid 6 months after return
- Age validation - DOB must match passenger type
- Name format - Must match passport (as per requirements)
- Phone validation - International format check
- Email verification - Valid email format required
đ PDF Booking Confirmation
Automatic confirmation document generation
đĢ What's Included in PDF
-
â
Booking Reference - Unique booking ID (TRP-XXXXX)
-
â
Trip Details - Name, destination, dates, duration
-
â
Passenger List - All travelers with details
-
â
Itinerary - Day-by-day schedule
-
â
Payment Summary - Price breakdown & total
-
â
Important Information - Travel notes
đĨ How to Download PDF
-
1
Confirmation Page - After payment completion
-
2
Email Attachment - PDF attached to confirmation email
-
3
WooCommerce Order - My Account â Orders â View
-
4
Admin Panel - Bookings â View â Download
-
5
Agent Dashboard - Agent's booking list
đ WooCommerce Integration
Seamless payment processing
Auto Setup: The WooCommerce product is now created automatically when you activate the plugin. No manual product creation needed!
Auto-Created Product AUTO
Name: Trip Package
SKU: trip-package-sale
Type: Virtual, Sold Individually
Visibility: Hidden from catalog
Payment Gateways
Supported: All WooCommerce gateways
Stripe, PayPal, Bank Transfer, Agent Wallet
Full HPOS compatibility
Order Integration
Trip details saved to order meta
Booking displayed in order details
PDF download from order page
HPOS Compatible: This plugin is fully compatible with WooCommerce High-Performance Order Storage (HPOS). Works with both legacy and custom tables order storage.
đĨ Agent/Reseller System
Complete B2B system for travel agents
đ¤ Agent Registration
- Admin creates agent accounts
- Assign "trip_package_agent" role
- Set discount percentage (0-100%)
- Initialize wallet balance
- Agent receives login credentials
đ° Wallet System
- Pre-paid wallet balance
- Admin adds funds manually
- Deducted on successful booking
- Full transaction history
- Low balance email alerts
đ Agent Dashboard
- View total bookings
- Check wallet balance
- Recent bookings list
- Download booking PDFs
- Transaction history
đˇī¸ Agent Discounts
- Percentage-based discount
- Applied at checkout
- Visible in order review
- Per-agent customization
- Discount shown on invoice
đ Admin Panel
Comprehensive management interface
đ Dashboard
- Total bookings count
- Revenue statistics
- Recent bookings list
- Quick action buttons
- Charts & graphs
đ Bookings
- View all bookings
- Filter by status/date
- View booking details
- Edit passenger info
- Download PDF
- Change status
đī¸ Manage Trips
- View all trips
- Add new trips
- Edit trip details
- Manage dates
- Set pricing
- Status toggle
đ Destinations
- Add destinations
- Upload images
- Set countries
- Featured toggle
- Trip count display
đ Categories
- Create categories
- Category images
- Descriptions
- Status management
đĨ Agents
- Create accounts
- Set discounts
- Manage wallet
- Add/deduct funds
- View agent bookings
â Reviews
- Moderate reviews
- Approve/reject
- View ratings
- Edit reviews
âī¸ Settings NEW
- General config
- Auto-Created Resources
- Page assignments
- Email settings
- Recreate resources button
đ Shortcodes Reference
All available shortcodes
Auto-Created Pages: Shortcodes marked with AUTO are automatically placed in their respective pages on plugin activation.
Display Shortcodes:
[trip_listing] // Trip listing with pagination â AUTO
[trip_details] // Single trip details page â AUTO
[trip_featured] // Featured trips grid
[trip_destinations] // Destinations grid
[trip_categories] // Categories grid
Booking Shortcodes:
[trip_booking_confirmation] // Booking confirmation page â AUTO
Agent Shortcodes:
[trip_agent_bookings] // Agent's booking list
[trip_agent_wallet_history] // Wallet transactions
Shortcode Parameters:
[trip_destinations limit="8" columns="4" featured="1"]
[trip_categories limit="6" columns="3"]
[trip_listing destination="5" category="3" limit="12"]
đī¸ Database Structure
Custom tables created by the plugin
wp_trip_package_sale_trips
Trip packages with details, pricing, duration, and settings
wp_trip_package_sale_trip_dates
Departure dates with availability and date-specific pricing
wp_trip_package_sale_destinations
Travel destinations with images, countries, and featured status
wp_trip_package_sale_categories
Trip categories for organization
wp_trip_package_sale_bookings
Booking records with status, totals, and customer info
wp_trip_package_sale_passengers
Passenger details linked to bookings
wp_trip_package_sale_reviews
Customer reviews and ratings for trips
wp_trip_package_sale_itineraries
Day-by-day itinerary for each trip
wp_trip_package_sale_faqs
Frequently asked questions for trips
wp_trip_package_sale_wallet
Agent wallet balances
wp_trip_package_sale_wallet_history
Wallet transaction history
đ File Structure
Plugin directory organization
đ§ Troubleshooting Guide
Common issues and solutions
â Pages not found (404) after activation
Auto-created pages return 404 error
â Shortcodes showing blank
Shortcode displays nothing on page
â PDF not generating
PDF download fails
â ī¸ Booking not created
Order completes but no booking
â ī¸ Agent discount not applying
Full price shown at checkout
âšī¸ Auto-created page missing
One or more pages weren't created
â Frequently Asked Questions
Q: Do I need to manually create pages for the plugin?
No! Starting with v1.2.0, all required pages (Trip Listing, Trip Details, Trip Booking, Booking Confirmation) are created automatically when you activate the plugin. The WooCommerce product is also created automatically.
Q: What if I accidentally delete an auto-created page?
Go to Trip Packages â Settings â General and click the "Recreate Missing Resources" button. The plugin will recreate any missing pages or the WooCommerce product.
Q: Why do I get 404 errors on the auto-created pages?
After activating the plugin, you need to flush the permalinks. Go to Settings â Permalinks and click "Save Changes". This tells WordPress to recognize the new page URLs.
Q: Can I have multiple departure dates for one trip?
Yes! Each trip can have unlimited departure dates. Each date can have its own pricing and availability settings.
Q: How does the agent wallet work?
Admin adds funds to agent wallets. When an agent books, the amount is deducted from their wallet. Agents can view their balance and transaction history in their dashboard.
Q: Can I customize the PDF design?
Yes, you can modify the generate-booking-pdf.php template file to customize the PDF layout, colors, and content.
Q: What payment methods are supported?
Any WooCommerce payment gateway! Stripe, PayPal, bank transfers, and more. Plus the built-in Agent Wallet for B2B transactions.
Q: Is the plugin translation-ready?
Yes! All strings use WordPress i18n functions. You can translate using any standard WordPress translation plugin or .po/.mo files.
đ Changelog
Version history
v1.2.0 (December 2025) LATEST
- đ NEW: Auto-create pages on activation (Trip Listing, Details, Booking, Confirmation)
- đ NEW: Auto-create WooCommerce product on activation
- đ NEW: "Recreate Missing Resources" button in Settings
- đ NEW: Activation notice with links to all created resources
- đ NEW: Auto-Created Resources status section in Settings
- ⨠Settings page IDs automatically linked on activation
- đ§ Improved activation process with better error handling
v1.1.0 (December 2025)
- ⨠New: Modern responsive design for all frontend pages
- ⨠New: WooCommerce Thank You page integration
- ⨠New: My Account â View Order booking display
- ⨠New: Updated booking confirmation page design
- ⨠New: Fixed shortcode display issues
- đ¨ Improved: Mobile-first responsive layouts
- đ¨ Improved: Card-based design system
- đ§ Fixed: Template file path references
v1.0.0 (November 2025)
- ⨠Initial release
- ⨠Trip management system
- ⨠Booking system with passenger details
- ⨠Agent/reseller system with wallet
- ⨠WooCommerce integration
- ⨠PDF confirmation generation
- ⨠Email notifications
Need Help?
Get support and stay updated with the latest features
đ§ Contact Support đ Documentation đŦ Community ForumTrip Package Sale Plugin v1.2.0 | Developed by Nasir Mehmood
Compatible with WordPress 5.8+ | WooCommerce 5.0+ | PHP 7.4+
Š 2025 All Rights Reserved
