Magneto Event before customer login to clear carts for logged out customers

Here the art will be updated with custom pricing for the customer when the customer logged in. With the help of a observer it can be done:- The event used to trigger the Observer will be :- controller_action_predispatch_customer_account_loginPost Observer will contain the repository of Quote,Customer section and cart.

Hide custom error messages after a certain time in Magento 2

Create a new message Js file in your module or you can also override directly by adding the same file in your theme directory. After run this command php bin/magento setup:upgrade && php bin/magento setup:static-content:deploy -f

Published
Categorized as Magento

Set Unlimited stock of a product

we can do this by visiting the Advanced Inventory Tab of your product. Just set Manage Stock the option to No If your store contains all digital products then you can set the below option by default, so you don’t need to set it for individual product Manage Stock to No

Published
Categorized as Magento