2

I have a website created with magento 2 and it is working perfectly.

After adding a bunch of products, We've encountered some issues with it's sorting. Sorting is not working properly most times.

For example sorting with custom attribute product Net Weight, which results in First five or six with proper value (11,12,13,14) after that it shows (100,102,105 etc).

Then again it shows lower values. I have not yet done any changes to the core function.

Here is the link to the site Link to the category with net weight sorting

I think you guys can help me with it.

  • Do reindex by this command: php bin/magento indexer:reindex – Prince Patel Sep 21 '17 at 7:01
  • @PrincePatel i did it many times. But no changes found – Shiyas Pathiyassery Sep 21 '17 at 7:25
1

To set the custom attributes for sorting in listing page. Kindly go to the admin Stores->Configuration->Catalog->Catalog->Product Listing Sort by-> set your custom attributes.

Now it is working fine.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.