{assign var="Ccust" value="0"}
                {assign var="hidCustName" value=""}
                {if $custOptionDet|count>0}
                    {foreach from=$custOptionDet|default:array() key="custname" item="custOptionsArr"}
                        {if $Ccust<=0}
                            {assign var="hidCustName" value=$custname}
                        {else}
                            {assign var="hidCustName" value=$hidCustName|cat:"~"|cat:$custname}
                        {/if}
                        <div class="FltrSctn py-3 border-bottom ajax-cust">
                            {if $custname|lower eq 'color'}
                                {assign var="showCustName" value="{$language.lblColor}"}
                            {else}
                                {assign var="showCustName" value="{$language.lblUpholstery}"}
                            {/if}
                            {*{html->anchor caption=$language.lblClear class="clearCustSearch float-right font-weight-bold" rel=$custname}*}
                            <h6 class="expand-clsps font-weight-bold m-0 px-4 py-2"><span class="openListing spriteImg"></span>{$showCustName}</h6>
                            <div class="list-wrap">
							{if $custOptionsArr|count>5}
							{form->textbox name="attrSearchCustFilter_{$custname}" class="attrSearchCustFilter form-control my-3 py-2" rel="{$custname}" placeholder=$language.lblRefine}
							{/if}
        <div class="listMenu listMenuScroll slip scrollbox scrollbox_small">							
            <ul class="attrCustOptionList_{$custname} list-unstyled mb-0">
            {foreach from=$custOptionsArr|default:array() item="custOptionsValue"}

                            {assign var="custOptionID" value="{$custOptionsValue[1]}"}
                <li>
                    {*{assign var="attrKey" value=$attributes.attributeKey|default:''} 
                    {if $attrQueryStringArray[$attrKey]|default:'' && in_array($attrOptionID,$attrQueryStringArray[$attrKey])}
                    {assign var="attrOptChecked" value="checked"} 
                    {else}
                    {assign var="attrOptChecked" value=""}  
                    {/if}*}
                   {assign var="readOnlyVarCust" value=""}                  
                   {assign var="attrOptCheckedCust" value=""}

                     {if $custCode|default:''}
                        {if in_array($custOptionID,$custCode)}
                            {assign var="attrOptCheckedCust" value="checked"} 
                        {*{else}
                             {assign var="readOnlyVarCust" value="disabled"}*}
                        {/if}                     
                     {/if}
                    {*{if $bodyStyle|default:'' neq '' && $bodyStyle!=$attrOptions[0]}
                        {assign var="readOnlyVar" value="disabled"}
                    {/if}*}
                    {form->checkbox disabled="{$readOnlyVarCust}" refinehead=$custname refineval="{$custOptionsValue[0]}" id="searchCustOptID_{$custOptionID}" class="searchCustOptID_{$custname} custsearch" name="searchCustOptID_{$custname}[]" value={$custOptionID} checked={$attrOptCheckedCust} rel=$custname}
                    <label class="attributeSearchLabel font-weight-normal my-2" disabled="{$readOnlyVarCust}" id="searchCustLabel_{$custname}" for="searchCustOptID_{$custOptionID}">
                    <span class="d-flex">
                    {if $custOptionsValue[2]|default:'' neq ''}
                        <img src="{$view_public_path}/uploads/catalog/custom-option-variant/{$custOptionsValue[2]}" width="87" height="32" alt="image" class="img-fluid mr-2 pr-1"/>
                    {/if}
                    {$custOptionsValue[0]}</span></label>
                </li>															
            {/foreach}
            </ul>							
            </div>
                            </div>
                        </div>
                            {assign var="Ccust" value=$Ccust+1}
                     {/foreach}
                {/if}
                {form->hidden name="hidCustName" value=$hidCustName}