summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/produkt/index.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml
index 1f97071..5376495 100644
--- a/views/produkt/index.phtml
+++ b/views/produkt/index.phtml
@@ -64,7 +64,7 @@
<?php
$temp = $this->callMod('wpsg_mod_produktartikel', 'getProductcategorySelect', array($this->view['arFilter']));
$arr = array();
- foreach ($temp as $vv) $arr[$vv['term_id']] = $vv['label'];
+ foreach ($temp as $vv) $arr[$vv['term_taxonomy_id']] = $vv['label'];
echo wpsg_drawForm_Select('filter[productcategory_ids]', __('Produktkategorie', 'wpsg'),
wpsg_array_merge(array('-1' => wpsg_translate(__('Alle Produktkategorien (#1#)', 'wpsg'), wpsg_product::count($filterAll))),
$arr), @$this->view['arFilter']['productcategory_ids']); ?>
@@ -122,7 +122,7 @@
<ul class="pagination">
<li class="<?php echo ((wpsg_getStr($this->view['arFilter']['productcategory_ids']) == '-1' || !isset($this->view['arFilter']['productcategory_ids']))?'active':''); ?>"><a href="#" onclick="jQuery('#filterproductcategory_ids').val('-1'); jQuery('#filter_form').submit(); return false;"><?php echo wpsg_translate(__('Alle (#1#)', 'wpsg'), wpsg_product::count($filterAll)); ?></a></li>
<?php foreach ($arProductcategorySelect as $pk_id => $pk) { ?>
- <li class="<?php echo ((wpsg_getInt($this->view['arFilter']['productcategory_ids'], -2) == $pk['term_id'])?'active':''); ?>"><a href="#" onclick="jQuery('#filterproductcategory_ids').val('<?php echo $pk['term_id']; ?>'); jQuery('#wpsg_seite').val('1'); jQuery('#filter_form').submit(); return false;"><?php echo $pk['label']; ?></a></li>
+ <li class="<?php echo ((wpsg_getInt($this->view['arFilter']['productcategory_ids'], -2) == $pk['term_taxonomy_id'])?'active':''); ?>"><a href="#" onclick="jQuery('#filterproductcategory_ids').val('<?php echo $pk['term_taxonomy_id']; ?>'); jQuery('#wpsg_seite').val('1'); jQuery('#filter_form').submit(); return false;"><?php echo $pk['label']; ?></a></li>
<?php } ?>
</ul>