Add very basic product import via CSV

This commit is contained in:
wrongecho
2026-08-03 18:58:53 +01:00
parent ad234c5e46
commit f87d43881e
3 changed files with 148 additions and 0 deletions

View File

@@ -69,6 +69,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } ?>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"></button>
<div class="dropdown-menu">
<?php if ($type_display == 'Products') { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
data-modal-url="modals/product/product_import.php">
<i class="fa fa-fw fa-upload mr-2"></i>Import
</a>
<div class="dropdown-divider"></div>
<?php } ?>
<a class="dropdown-item text-dark ajax-modal"
data-modal-url="<?= buildExportModalUrl('modals/product/product_export.php', ['type', 'category', 'archived', 'q']) ?>">
<i class="fa fa-fw fa-download mr-2"></i>Export