summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomas <noreply@maennchen1.de>2016-11-02 08:34:56 +0000
committerthomas <noreply@maennchen1.de>2016-11-02 08:34:56 +0000
commit2877078b06cad41ea29da4365879309cf557e30f (patch)
tree5de07a7211d5abd9a94d7a518c5b41c4832de5a4
parent2094d675daa9d316ee3987bbcae156af88ed08d7 (diff)
- grafische Anpassung Produktübersicht
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5886 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/css/admin.css6
-rw-r--r--views/produkt/index.phtml8
2 files changed, 13 insertions, 1 deletions
diff --git a/views/css/admin.css b/views/css/admin.css
index b402cf3..032d716 100644
--- a/views/css/admin.css
+++ b/views/css/admin.css
@@ -130,6 +130,12 @@
.wpsg_admin_submenu input[type="submit"], .wpsg_admin_submenu input[type="button"] { width:100%; margin-bottom:10px !important; }
#wpsg-bs.wpsg_products .wpsg_productgroup_link_wrap { float:left; }
+/*
+ * Produktbackend
+ */
+.wpsg_productview_backend-sold-out { color:#dc3232; font-weight:700; }
+.wpsg_productview_backend-available { color:#7ad03a; font-weight:700; float:left; margin-right:5px; }
+
/* Bestellverwaltung */
.wpsg_order .wpsg_status_link_wrap { min-height:50px; float:left; display:inline-block; }
.wpsg_order .col_checkbox { width:20px; }
diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml
index 57a9f47..1d2b5fa 100644
--- a/views/produkt/index.phtml
+++ b/views/produkt/index.phtml
@@ -162,7 +162,13 @@
<?php } ?>
<?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?>
<td>
- <div style="line-height:inherit; margin-bottom:0.2em;"><?php echo $d['stock']; ?></div>
+ <div style="line-height:inherit; margin-bottom:0.2em;">
+ <?php if ($d['stock'] == '0' ) {?>
+ <div class="wpsg_productview_backend-sold-out"><?php echo __('Ausverkauft', 'wpsg');?></div>
+ <?php } else { ?>
+ <div class="wpsg_productview_backend-available"><?php echo __('Vorrätig', 'wpsg');?></div><div>(<?php echo $d['stock']; ?>)</div>
+ <?php }?>
+ </div>
<?php if ($this->hasMod('wpsg_mod_varianten')) $arVarianten = $this->callMod('wpsg_mod_varianten', 'loadVarianten', array($d['id'])); if (wpsg_isSizedArray($arVarianten)) { ?>
<div style="line-height:inherit; padding:2px 0px 0px;">
<a class="clueTip" href="#" rel="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_stock&edit_id=<?php echo $d['id']; ?>&noheader=1&wpsg_cmd=getVariInfo"><?php echo __('Variantenbestand', 'wpsg'); ?></a>