first commit
This commit is contained in:
33
admin/templates/baselinker/bundling-products.php
Normal file
33
admin/templates/baselinker/bundling-products.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<form method="POST" action="/admin/baselinker/bundling_products_save/">
|
||||
<table class="table mbn table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nazwa produktu</th>
|
||||
<th>SKU</th>
|
||||
<th>Produkt w Baselinker</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? foreach ( $this -> products as $product ):?>
|
||||
<tr>
|
||||
<td><?= $product['name'];?> - <?= $product['id'];?></td>
|
||||
<td><?= $product['sku'];?></td>
|
||||
<td>
|
||||
<select class="form-control" name="product_<?= $product['id'];?>">
|
||||
<option value="">--- wybierz produkt ---</option>
|
||||
<? foreach ( $this -> baselinker_products as $product_baselinker ):?>
|
||||
<option value="<?= $product_baselinker['product_id'];?>"
|
||||
<? if ( $product_baselinker['product_id'] == $product['baselinker_product_id'] or ( $product['sku'] == $product_baselinker['sku'] and $product['sku'] != "" ) ):?>selected="selected"<? endif;?>
|
||||
>
|
||||
<?= $product_baselinker['name'] . ' - ' . $product_baselinker['sku'];?>
|
||||
<? endforeach;?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<button class="btn btn-success btn-sm">
|
||||
<i class="fa fa-check-circle mr5"></i>Zapisz
|
||||
</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user