cancel
Showing results for 
Search instead for 
Did you mean: 

Layered navigation display the admin value option label

Layered navigation display the admin value option label

 

Has anyone figured out how to display the admin value on the frontend instead of the default store view.

 

 

 

<?php elseif ($item['count'] > 0) : ?>
<li class="item">
<a class="unchecked" href="<?php echo $block->getAddItemUrl($engineFilter, $item) ?>">

 

 

/* This section here displays the default value on the frontend from what I've seen the admin values are stored as store views is that correct?*/
<?php echo $block->escapeItemLabel($engineFilter,$item['label']) ?>

 

 

 

 

<?php if ($block->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php echo $item['count'] ?><span class="filter-count-label">
<?php if ($item['count'] == 1):?>
<?php echo __('item')?>
<?php else : ?>
<?php echo __('items') ?>
<?php endif;?>
</span></span>
<?php endif; ?>
</a>
</li>

 

attribute option admin sectionany help would br great

1 REPLY 1

Re: Layered navigation display the admin value option label

Another option that would work is taking a substr of ['label']. Basically I need to remove the p class that is present in the default store view from the layered navigation.

layerednav.png