-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-usage.html
More file actions
243 lines (210 loc) Β· 8.27 KB
/
Copy pathsample-usage.html
File metadata and controls
243 lines (210 loc) Β· 8.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<title>Air Du Cap Integration - Sample Usage</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
line-height: 1.6;
}
.container {
background: #f9f9f9;
padding: 30px;
border-radius: 8px;
margin: 20px 0;
}
.instructions {
background: #e3f2fd;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
border-left: 4px solid #2196f3;
}
.code-block {
background: #f5f5f5;
padding: 15px;
border-radius: 4px;
font-family: monospace;
margin: 10px 0;
border: 1px solid #ddd;
}
.step {
background: white;
padding: 20px;
margin: 15px 0;
border-radius: 6px;
border-left: 3px solid #4caf50;
}
.warning {
background: #fff3cd;
border: 1px solid #ffeaa7;
color: #856404;
padding: 15px;
border-radius: 4px;
margin: 15px 0;
}
h1, h2, h3 {
color: #333;
}
.highlight {
background: #ffeb3b;
padding: 2px 4px;
border-radius: 3px;
}
</style>
</head>
<body>
<h1>π©οΈ Air Du Cap API Integration - Setup Guide</h1>
<div class="instructions">
<h2>π Quick Setup Instructions</h2>
<p>Follow these steps to get your Air Du Cap flight search working on your WordPress website:</p>
</div>
<div class="step">
<h3>Step 1: Activate the Plugin</h3>
<ol>
<li>Go to your WordPress Admin Dashboard</li>
<li>Navigate to <strong>Plugins β Installed Plugins</strong></li>
<li>Find <strong>"Air Du Cap API Integration"</strong></li>
<li>Click <strong>"Activate"</strong></li>
</ol>
</div>
<div class="step">
<h3>Step 2: Configure Settings (Optional)</h3>
<ol>
<li>Go to <strong>Settings β Air Du Cap</strong> in your WordPress admin</li>
<li>The plugin comes pre-configured with your API credentials</li>
<li>Click <strong>"Test Connection"</strong> to verify everything works</li>
<li>Save settings if you make any changes</li>
</ol>
</div>
<div class="step">
<h3>Step 3: Add the Search Form to Your Page</h3>
<h4>Option A: Using Shortcode (Recommended)</h4>
<p>Add this shortcode to any page or post:</p>
<div class="code-block">[airducap_search_form]</div>
<h4>Option B: In Elementor</h4>
<ol>
<li>Edit your page with Elementor</li>
<li>Add an <strong>HTML Widget</strong></li>
<li>Paste the shortcode: <span class="highlight">[airducap_search_form]</span></li>
<li>Update the page</li>
</ol>
<h4>Option C: In Gutenberg (Block Editor)</h4>
<ol>
<li>Edit your page</li>
<li>Add a <strong>Shortcode Block</strong></li>
<li>Paste: <span class="highlight">[airducap_search_form]</span></li>
<li>Publish the page</li>
</ol>
</div>
<div class="step">
<h3>Step 4: Test the Functionality</h3>
<ol>
<li>Visit the page where you added the shortcode</li>
<li>Try typing in the Origin field (e.g., "New York")</li>
<li>Select an airport from the dropdown</li>
<li>Do the same for Destination</li>
<li>Select dates and passenger count</li>
<li>Click <strong>"Search"</strong></li>
</ol>
</div>
<div class="container">
<h2>ποΈ Available Shortcodes</h2>
<h3>Primary Search Form</h3>
<div class="code-block">[airducap_search_form]</div>
<p>Displays the complete flight search form with all functionality.</p>
<h3>Search Form without Tours Tab</h3>
<div class="code-block">[airducap_search_form show_tours="false"]</div>
<p>Displays only the flight search tab, hiding the tours option.</p>
<h3>Results Page (Optional)</h3>
<div class="code-block">[airducap_flight_results]</div>
<p>Use this on a separate results page if you want to show results elsewhere.</p>
</div>
<div class="container">
<h2>π§ Customization Options</h2>
<h3>Styling</h3>
<p>To customize the appearance, edit:</p>
<div class="code-block">/wp-content/plugins/airducap-integration/assets/airducap.css</div>
<h3>Functionality</h3>
<p>To modify behavior, edit:</p>
<div class="code-block">/wp-content/plugins/airducap-integration/assets/airducap.js</div>
<h3>API Settings</h3>
<p>Go to <strong>Settings β Air Du Cap</strong> in WordPress admin to:</p>
<ul>
<li>Change API credentials</li>
<li>Set default currency</li>
<li>Enable debug mode</li>
<li>Test API connection</li>
</ul>
</div>
<div class="warning">
<h3>β οΈ Important Notes</h3>
<ul>
<li><strong>API Credentials:</strong> The plugin is pre-configured with your test credentials</li>
<li><strong>Rate Limiting:</strong> Don't make too many API requests in testing</li>
<li><strong>HTTPS Required:</strong> The API requires secure connections</li>
<li><strong>JavaScript:</strong> The plugin requires JavaScript to be enabled</li>
</ul>
</div>
<div class="container">
<h2>π Troubleshooting</h2>
<h3>Common Issues & Solutions</h3>
<div style="margin: 15px 0;">
<strong>Search form not showing:</strong>
<ul>
<li>Check if plugin is activated</li>
<li>Verify shortcode spelling</li>
<li>Try on a different page</li>
</ul>
</div>
<div style="margin: 15px 0;">
<strong>Airport search not working:</strong>
<ul>
<li>Check browser console for JavaScript errors</li>
<li>Test API connection in Settings β Air Du Cap</li>
<li>Verify internet connection</li>
</ul>
</div>
<div style="margin: 15px 0;">
<strong>No flight results:</strong>
<ul>
<li>Try different airport combinations</li>
<li>Check if dates are in the future</li>
<li>Verify API credentials are correct</li>
</ul>
</div>
<div style="margin: 15px 0;">
<strong>Styling issues:</strong>
<ul>
<li>Clear browser cache</li>
<li>Check for CSS conflicts with theme</li>
<li>Test with a default WordPress theme</li>
</ul>
</div>
</div>
<div class="container">
<h2>π Support Information</h2>
<p>For additional help:</p>
<ul>
<li>Check the plugin's README.md file for detailed documentation</li>
<li>Enable debug mode in Settings β Air Du Cap</li>
<li>Check WordPress error logs</li>
<li>Test API connection using the admin panel</li>
</ul>
<h3>API Documentation</h3>
<p>Full API documentation available at:</p>
<div class="code-block">https://uat-book.airducap.com/api/schema/redoc/</div>
</div>
<div style="text-align: center; margin-top: 50px; padding: 30px; background: #f0f0f0; border-radius: 8px;">
<h2>π You're All Set!</h2>
<p>Your Air Du Cap flight search integration is ready to use. Add the shortcode to your page and start testing!</p>
<div style="font-size: 24px; margin: 20px 0;">
<span class="highlight">[airducap_search_form]</span>
</div>
</div>
</body>
</html>