Subversion Repositories wpShopGermany4

Compare Revisions

Ignore whitespace Rev 8430 → Rev 8429

/produkttemplates/standard.phtml
189,35 → 189,14
<div class="wpsg_clear"></div>
<?php /* Lagerbestand START*/ ?>
<?php
if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') {
$stock_source_display = '0'; // Variantenbestand
if ($oProduct->getMeta('wpsg_vp_product_stock_display', false, '0') === '0') {
// Einstellung
if ($this->get_option('wpsg_vp_product_stock_display') === '1') $stock_source_display = '1';
} else if ($oProduct->getMeta('wpsg_vp_product_stock_display') === '1') {
$stock_source_display = '1'; // Produktbestand
}
$stock_display = $this->view['data']['stock'];
if ($stock_source_display === '1') $stock_display = $oProduct->__get('stock');
?>
<?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
<div class="wpsg_mod_produktindex_stock">
<?php if ($stock_display > 0) {?>
<?php if (intval($this->view['data']['stock']) > 0) {?>
<label><?php echo __('Lagerbestand', 'wpsg'); ?></label>
<?php echo wpsg_translate(__('#1# Artikel auf Lager','wpsg'), $stock_display); ?>
<?php echo wpsg_translate(__('#1# Artikel auf Lager','wpsg'), $this->view['data']['stock']); ?>
<?php } else { ?>