How to get Default No Route URL Programmatically Magento 2?

Get No Route URL Programmatically Magento 2 to redirect to 404 Not found page.

You can redirect to the No Route page using ScopeConfigInterface and UrlInterface to not found action. The default value for the No Route page is the cms/noroute/index. Continue reading “How to get Default No Route URL Programmatically Magento 2?”

How to perform event action for Catalog Product after delete completed?

You can perform event action to successfully Product deleted in Magento 2 by the catalog event name catalog_product_delete_after_done. This is the perfect event for product delete observer.

If Magento is sync with a third party ERP system and wants to sync product data between two platforms, if product deleted in Magento and want to delete a product from the ERP, You can perform this action using Magento native Event catalog_product_delete_after_done. Continue reading “How to perform event action for Catalog Product after delete completed?”

Magento 2 Upgrade Error SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘magento2.email_abandoned_cart’ doesn’t exist.

When you upgrade Magento version 2.2.2 to 2.3.3, once upgrade is finish and you are trying to run the setup upgrade command, You faced the error at a time of upgrade command,

Upgrading schema.. SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘mage222ce.email_abandoned_cart’ doesn’t exist, query was: DESCRIBE `email_abandoned_cart`

Continue reading “Magento 2 Upgrade Error SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘magento2.email_abandoned_cart’ doesn’t exist.”