Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
Quiero quitar filtro por atributo de color y su valor

Mi comercio electrónico tiene muchos atributos para filtrar el producto. Todos los atributos que se muestran con bucle foreach. Ahora quiero eliminar el filtro por color y su valor. Cómo puedo hacerlo.

Este círculo rojo de la imagen Quiero omitirlo del bucle El enlace del sitio es https://unikart.com.bd/category/skin

Mi código se proporciona a continuación.

 @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 answers
Answer question

0

Puede agregar filtros a los atributos en el backend

ejemplo: $atributos = Atributo::where('tipo', '!=', 'color')->get();

Si agrega una captura de pantalla del código de back-end, la respuesta sería más clara.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!