How to get current search engine enabled value Magento 2?

In Magento, You can get the value of the current enable search engine value programmatically.

You can set Search engine from the admin panel

Settings -> Configuration -> Catalog -> Catalog -> Catalog Search -> Search Engine.

To Retrieve the Current search engine value programmatically by interface, Magento\Framework\Search\EngineResolverInterface Continue reading “How to get current search engine enabled value Magento 2?”

How to check elasticsearch is enabled programmatically Magento 2?

Magento 2.4 Out of the box supports Primary Search Engines is Elasticsearch.

If your site having some third party search engine installed or want to know about programmatically for the elastic search is enable or not in your code, you can know it using the given code snippet. Continue reading “How to check elasticsearch is enabled programmatically Magento 2?”

How to add custom button on sales order view admin page Magento 2?

Add Custom Button on Sales Order View Page on the admin panel toolbar Magento to add extra features to the order view page.

Using Button, You can add URL to redirect to another page with your custom requirement.

To add a custom button, you need to create before plugin for the PushButtons() method from the Magento\Backend\Block\Widget\Button\Toolbar class. Continue reading “How to add custom button on sales order view admin page Magento 2?”