• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

How to compare only the attributes present in any of the products?

General Discussion
3
4
480
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Deepanjali last edited by 20 Aug 2020, 08:31

    I have added 2 products to the compare list and I only want to compare the attributes which have some value for any of the products being compared,
    c4b0b950-fe9b-4280-aba0-6bfd04757094-image.png

    I don't want to display these attributes, How can I do it?

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 21 Aug 2020, 15:51

      @Deepanjali
      this functionality is not available.
      You need to customize it.

      1 Reply Last reply Reply Quote 0
      • D
        Deepanjali last edited by 24 Aug 2020, 05:07

        How can I do it?

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 24 Aug 2020, 15:27

          Hi @Deepanjali,

          There are two files one for default and one for velocity theme.

          1. Default: 'packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php'
          2. Velocity: 'packages/Webkul/Shop/src/Resources/views/guest/compare/compare-products.blade.php'

          In these files you will see the '$comparableAttributes' loop, here you need to manipulate according to your needs and you also need to check vue components as well which defined in this file.

          After that don't forget to publish your changes to main resources folder by using this command.
          php artisan vendor:publish --all --force

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post