[{assign var="sIdKey" value="manufacturer"}]
[{assign var="blShowMultipleSelector" value=true}]
[{if in_array($sManufacturerFilterDisplayType, array('combined', 'single'))}]
[{block name="d3_inc_ext_search__filter_manufacturer_single"}]
[{/block}]
[{/if}]
[{if in_array($sManufacturerFilterDisplayType, array('combined', 'multi'))}]
[{block name="d3_inc_ext_search__filter_manufacturer_multi"}]
[{foreach from=$oView->d3getManufacturerList() name=attrvalues key=valuekey item=oAttrValue}]
selected || $oAttrValue->getId() == $sSelectedManufacturerId}] checked[{/if}]>
[{/foreach}]
[{include file="d3_ext_search_filter_inc_multibuttons.tpl" type="manufacturer"}]
[{/block}]
[{/if}]
[{block name="d3_inc_ext_search__filter_manufacturer_multiselector"}]
[{if $sManufacturerFilterDisplayType == 'combined'}]
[{capture name="d3JsFnc"}][{strip}]
function toggleMultiManufacturer(blChecked) {
if (blChecked) {
document.getElementById('d3searchmanufacturer__multi').style.display = 'block';
document.getElementById('searchmanufacturer').style.display = 'none';
document.getElementById('d3searchmanufacturer__multiselector').style.display = 'none';
}
}
[{/strip}][{/capture}]
[{oxscript add=$smarty.capture.d3JsFnc}]
[{if $oView->d3ManufacturerFilterUseMultipleValues()}]
[{capture name="d3JsFnc"}][{strip}]
toggleMultiManufacturer(true);
document.getElementById('d3searchmanufacturermultiselector').checked = 'checked';
[{/strip}][{/capture}]
[{oxscript add=$smarty.capture.d3JsFnc}]
[{/if}]
[{elseif $sManufacturerFilterDisplayType == 'single'}]
[{elseif $sManufacturerFilterDisplayType == 'multi'}]
[{/if}]
[{/block}]