How to Create Custom Payment Method using Adapter Class Magento 2?

Create a custom offline payment gateway in Magento 2 without the use of AbstractModel.

Using class Magento\Payment\Model\Method\Adapter with virtualType to make it compatible with the latest Magento standard practice to create a payment method.

The offline Payment method with the configuration setting from the admin panel, you can enable/disable payment method with the Payment method title. We will create a simple Purchase Order Payment method. Continue reading “How to Create Custom Payment Method using Adapter Class Magento 2?”

How to Check User has Permission on Given ACL Resouces in Magento 2?

Verify Programmatically Current user has permission on given ACL Resource in Magento 2 using Authorization Interface.

Just Instantiate an object of Magento\Framework\AuthorizationInterface to the __construct() method of the Class.

Example to check the user has Catalog Access Permission or not, Continue reading “How to Check User has Permission on Given ACL Resouces in Magento 2?”

Value for attribute contains incorrect value, see acceptable values on settings specified for Admin in row Magento 2.

While you importing products using OOTB Magento importer, sometimes you have faced this type of errors before import products,

You can resolve the error by manual work with check specific rows in the CSV.

Some known issue is the,
— Typo error in the Column value.
— Added Value is not available for the specific attributes.
— You have added unnecessary quotes in the column value. Continue reading “Value for attribute contains incorrect value, see acceptable values on settings specified for Admin in row Magento 2.”