Skip to content

My Atrocious Experience with Namecheap

Hosting with Namecheap was fine in the beginning. The problems started to arise when there was a spam attack on my site leading to hundreds … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1906314&goto=newpost

Product Filter Count Showing Wrong Count After Custom Product Collection – Magento Layered Navigation

I have applied custom filter on product collection to hide certain products from listing page. I have used below event for same <event name=”catalog_product_collection_load_after”> <observer name=”abc_productrestriction_collectionfilter” instance=”AbcProductRestrictionObserverFrontendCatalogCollectionFilter” /> </event> and in the observer, I am removing the product from collection… Read More »Product Filter Count Showing Wrong Count After Custom Product Collection – Magento Layered Navigation

How to make custom customer attribute filterable in the customer grid?

I’ve made a patch and this is the code for creating my customer custom attribute: public function apply() { $this->moduleDataSetup->getConnection()->startSetup(); /** @var CustomerSetup $customerSetup */ $customerSetup = $this->customerSetupFactory->create([‘setup’ => $this->moduleDataSetup]); $customerEntity = $customerSetup->getEavConfig()->getEntityType(Customer::ENTITY); $attributeSetId = $customerEntity->getDefaultAttributeSetId(); $attributeSet = $this->attributeSetFactory->create(); $attributeGroupId… Read More »How to make custom customer attribute filterable in the customer grid?