skip to Main Content

Magento hreflang Implementation

Using code from a previous discussion (link:https://magento.stackexchange.com/questions/12504/how-to-add-hreflang-tags-or-other-meta-tags-to-pages-in-magento), I was able to implement the hreflang links into our Magento site. Here is the code that worked for me: <?php foreach (Mage::app()->getWebsites() as $website) { foreach ($website->getGroups() as $group) { $stores =…

VIEW QUESTION

Create custom api to get filterable attribute for specific category in magento 2

I am creating api to get filterable attribute for specific category in magento 2. We see in category page for layered navigation. I want to achieve exact same data in api. $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $filterableAttributes = $objectManager->get(MagentoCatalogModelLayerCategoryFilterableAttributeList::class); $appState = $objectManager->get(MagentoFrameworkAppState::class);…

VIEW QUESTION
Back To Top
Search