Difference between Void and Cancel an order of Magento?

Void doesn’t close the order. After Void from Order, Payments have to be refunded to Payment Gateway. Still Voiding will let you create the offline invoice later.

Cancel, Cancel Order means to close the order. In Order canceled you can’t order to be modified after the cancel order.

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.”