Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Magento color swatch #1288

Closed
allamsettiramesh opened this issue Jul 14, 2017 · 1 comment
Closed

Magento color swatch #1288

allamsettiramesh opened this issue Jul 14, 2017 · 1 comment

Comments

@allamsettiramesh
Copy link

allamsettiramesh commented Jul 14, 2017

Team, I created different colors for color attribute and i applied color swatches to configurable products and mean while i created other custom attribute "sample color" with color swatches. But in layered navigation main color attribute not displaying in layered navigation and "sample color " is displaying is displaying.

Please find the attached pic

color

Admin Panel pic

color-main

@allamsettiramesh
Copy link
Author

I followed below solution.
vendor/magento/module-catalog/Model/Layer/Filter/AbstractFilter.php
`/**

  • Checks whether the option reduces the number of results
  • @param int $optionCount Count of search results with this option
  • @param int $totalSize Current search results count
  • @return bool
    */
    protected function isOptionReducesResults($optionCount, $totalSize)
    {
    return $optionCount <= $totalSize;
    }`

magento-cicd2 pushed a commit that referenced this issue Oct 10, 2017
Changed versions order from decreased to increased in topics about backward incompatible changes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant