diff options
| -rw-r--r-- | views/mods/mod_productvariants/admin_edit.phtml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 62636c6..c32a6cd 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -26,11 +26,15 @@ <?php if (wpsg_isSizedInt($this->view['product_id'])) { $colspan += 3; ?>
<th class="col_artnr"><?php echo __('Artikelnummer', 'wpsg'); ?></th>
<th class="col_price"><?php echo __('Preis', 'wpsg'); ?></th>
+
+ <?php if ($this->hasMod('wpsg_mod_stock')) { ?>
<th class="col_stock"><?php echo __('Lagerbestand', 'wpsg'); ?></th>
+ <?php } ?>
<?php if ($this->hasMod('wpsg_mod_weight')) { ?>
<th class="col_stock"><?php echo __('Gewicht', 'wpsg'); ?></th>
<?php } ?>
+
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
<th class="col_stock"><?php echo __('Füllmenge', 'wpsg'); ?></th>
<?php } ?>
@@ -142,7 +146,10 @@ <?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
<td class="col_artnr"><span class="wpsg_editable" id="productvariation_anr_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['anr']); ?></span></td>
<td class="col_price"><span class="wpsg_editable" id="productvariation_price_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc(wpsg_ff($vari['price'], $this->get_option('wpsg_currency'))); ?></span></td>
+
+ <?php if ($this->hasMod('wpsg_mod_stock')) { ?>
<td class="col_stock"><span class="wpsg_editable" id="productvariation_stock_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['stock']); ?></span></td>
+ <?php } ?>
<?php if ($this->hasMod('wpsg_mod_weight')) { ?>
<td class="col_stock"><span class="wpsg_editable" id="productvariation_weight_<?php echo $vari['id']; ?>"><?php echo wpsg_hspc($vari['weight']); ?></span></td>
|
