Skip to main content
15 events
when toggle format what by license comment
Feb 28, 2020 at 13:57 comment added aravind Also check whether for that attribute "Used in product listing" is Yes in backend
Feb 28, 2020 at 13:55 comment added aravind you can check this answer based on the configuration set, magento.stackexchange.com/questions/62043/…
Feb 28, 2020 at 13:54 comment added aravind Flat category enabled or not ? You can check this in admin panel Stores > Settings > Configuration. Expand Catalog > Catalog > expand Storefront tab check whether Use Flat Catalog Product -> yes/no
Feb 28, 2020 at 12:58 comment added Shomita @aravindI need to also add sort in this collection added $productcollection->addAttributeToSort('product_title', $sort); But its not working
Feb 28, 2020 at 10:40 vote accept Shomita
Feb 28, 2020 at 10:40 comment added Shomita Thanks! Its working for me
Feb 28, 2020 at 10:34 comment added aravind I have updated my answer
Feb 28, 2020 at 10:33 history edited aravind CC BY-SA 4.0
added 142 characters in body
Feb 28, 2020 at 10:21 comment added Shomita @aravid are you checking?
Feb 28, 2020 at 10:06 comment added Shomita Getting same error
Feb 28, 2020 at 10:02 comment added aravind I have update the code, Need to use addAttributeToFilter instead of addFieldToFilter
Feb 28, 2020 at 10:02 history edited aravind CC BY-SA 4.0
added 4 characters in body
Feb 28, 2020 at 10:01 comment added Shomita Getting error Exception #0 (Exception): Warning: Illegal string offset 'attribute' in /vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php on line 370
Feb 28, 2020 at 9:59 comment added Shomita okay.. Am checking
Feb 28, 2020 at 9:57 history answered aravind CC BY-SA 4.0