-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-instructions.html
More file actions
63 lines (54 loc) · 2.65 KB
/
test-instructions.html
File metadata and controls
63 lines (54 loc) · 2.65 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
<!DOCTYPE html>
<html>
<head>
<title>Air Du Cap Plugin Test</title>
<style>
body { font-family: Arial, sans-serif; margin: 40px; }
.instructions { background: #f0f8ff; padding: 20px; border-radius: 5px; margin-bottom: 30px; }
.shortcode { background: #f5f5f5; padding: 10px; font-family: monospace; border-left: 4px solid #007cba; }
</style>
</head>
<body>
<h1>Air Du Cap Integration Plugin - Test Page</h1>
<div class="instructions">
<h2>How to Test the Plugin:</h2>
<ol>
<li><strong>Go to your WordPress admin</strong> → Settings → Air Du Cap</li>
<li><strong>Click "Test API Connection"</strong> - it should now show more detailed results</li>
<li><strong>Create a new page/post</strong> in WordPress</li>
<li><strong>Add this shortcode</strong> to the page content:</li>
</ol>
<div class="shortcode">[airducap_search_form]</div>
<p><strong>Then test the form by:</strong></p>
<ul>
<li>Typing airport names like: <strong>Miami, London, Paris, New York, Los Angeles</strong></li>
<li>Typing airport codes like: <strong>LAX, JFK, LHR, CDG, MIA</strong></li>
<li>Trying partial names like: <strong>new, los, mia, lon</strong></li>
</ul>
</div>
<h2>Troubleshooting Tips:</h2>
<h3>If you still see "No airports found":</h3>
<ol>
<li><strong>Enable Debug Logging</strong> in Settings → Air Du Cap</li>
<li><strong>Try searching</strong> for airports in the form</li>
<li><strong>Check WordPress debug log</strong> (usually at <code>/wp-content/debug.log</code>)</li>
<li><strong>Look for API response</strong> - it will show exactly what the API is returning</li>
</ol>
<h3>Common Issues:</h3>
<ul>
<li><strong>API might require specific search terms</strong> - try different airport names</li>
<li><strong>API might have geographical restrictions</strong> - try major international airports</li>
<li><strong>API database might be limited</strong> - check with Air Du Cap what airports are available</li>
</ul>
<h3>Testing Flight Search:</h3>
<p>Once you can find airports, you can test flight search by:</p>
<ol>
<li>Selecting origin and destination airports</li>
<li>Choosing departure date (and optional return date)</li>
<li>Setting number of passengers</li>
<li>Clicking "Search Flights"</li>
</ol>
<hr>
<p><small>This is a test file to help you understand how to use the Air Du Cap plugin. You can delete this file once everything is working.</small></p>
</body>
</html>