-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin-page.php
34 lines (33 loc) · 1.56 KB
/
plugin-page.php
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
<!-- Heavy help from https://makitweb.com/programmatically-file-upload-from-custom-plugin-in-wordpress/ -->
<h1>Upload File</h1>
<p>Select a parent product sheet and it's corresponding variations sheet.</p>
<div>
<b>Region Lock: </b>
<h2 style="display: inline;"> <?php echo ICL_LANGUAGE_CODE; ?> </h2>
Only products in this region/language (check the WP top bar) will be imported.
</div>
<p><b>Status: </b> <span class='import_status'>Waiting for a parent and variations CSV file.</span></p>
<form name='product_file_importer' enctype='multipart/form-data'>
<div class='form-field'>
<input id='test_button' type='button' name='test_button' value='Refresh Existing Products'>
</div>
<div class='form-field'>
<label for='force_button'>Force Update</label>
<input id='force_button' type='checkbox' name='force_button' value=''>
</div>
<div class='form-field'>
<label for='parent_file'>Parent Products CSV file</label>
<input id='parent_file_input' type='file' name='parent_file'>
</div>
<div class="form-field">
<label for='variation_file'>Variation Products CSV file</label>
<input id='variation_file_input' type='file' name='variation_file'>
</div>
<div class="form-field">
<label for='package_file'>Package Information CSV file</label>
<input id='package_file_input' type='file' name='package_file'>
</div>
<div class="form-field">
<input id='import_button' type='button' name='import_button' value='Import' disabled=true>
</div>
</form>