How to create category attribute dropdown with Cms Block list programmatically in magento 2?

Magento 2, You can create a custom category attribute with a list of CMS Block in the dropdown field.

The module is simply residing in the app/code folder of Magento instance.

For example, We kept Package name as Rbj and Module name as CategoryAttribute.
You can keep any name for Packagename/Module name. In our demo, we have kept Packagename_Modulename as Rbj_CategoryAttribute. Continue reading “How to create category attribute dropdown with Cms Block list programmatically in magento 2?”

Get is_comparable attribute list programmatically in magento 2.

Magento 2 Compare product is one of the native feature available with Out of the box. You can compare multiple products from listing and product page with a click on compare link.

If you want to know about get all the is_comparable attribute list using programmatically you need to use Magento\Eav\Api\AttributeRepositoryInterface Interface. Continue reading “Get is_comparable attribute list programmatically in magento 2.”