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

126
Views
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 answers
Answer question

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 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!