Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

125
Visualizações
I want to remove filter by color attribute and its value

My ecommerce have many Attributes for filter product . Every Attributes showing with foreach loop . Now I Want to remove filter by color and it's value. How I can Do it.

This Image red circle I want To skip it from loop the site link is https://unikart.com.bd/category/skin

My code is Given below.

@foreach ($attributes as $attribute)
    <div class="bg-white shadow-sm rounded mb-3">
        <div class="fs-15 fw-600 p-3 border-bottom">
            {{ translate('Filter by') }} {{ $attribute->getTranslation('name') }}
        </div>
        <div class="p-3">
            <div class="aiz-checkbox-list others-attributes" id="attribute_list-{{$attribute->id}}" >
            
                @foreach ($attribute->attribute_values as $attribute_value)
                    <label class="aiz-checkbox">
                        <input
                            type="checkbox"
                            name="selected_attribute_values[]"
                            value="{{ $attribute_value->value }}" @if (in_array($attribute_value->value, $selected_attribute_values)) checked @endif
                            onchange="filter()"
                        >
                        <span class="aiz-square-check"></span>
                        <span>{{ $attribute_value->value }}</span>
                    </label>
                @endforeach
            </div>
            <div class="ViewMore" id="ViewMore-{{$attribute->id}}" onclick="ViewMore({{$attribute->id}})">View More</div>
    <div class="ViewLess" id="ViewLess-{{$attribute->id}}" onclick="ViewLess({{$attribute->id}})">View Less</div>
        </div>
    </div>
@endforeach  
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can add filter to attributes on backend

example: $attributes = Attribute::where('type', '!=', 'color')->get();

If you add backend code screenshot, the answer would be clearer.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda