diff options
| author | hartmut <noreply@maennchen1.de> | 2017-04-05 07:40:08 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-04-05 07:40:08 +0000 |
| commit | 0ec607cb4cef333dd76526e96aff1a7f86e56a9f (patch) | |
| tree | f1faac74c62342e97632147c46ddc47725a3acf8 /views/mods/mod_productvariants | |
| parent | 65ec3f5b7dccd7107bb34743e1572c09dd8c3bc2 (diff) | |
Lagerbestand, Gewicht und Füllmenge bei Varianten optional
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6193 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productvariants')
| -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>
|
