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.
Category: Magento
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
Disable Onepage Checkout using magento backend.
On the Admin sidebar, go to Stores > Settings > Configuration. On the left panel, expand Sales and choose Checkout. Expand the Checkout Options section. If the setting is for a specific store view where the configuration applies. When prompted, click OK to continue. Set Enable Onepage Checkout to No. If necessary, clear the Use system… Continue reading Disable Onepage Checkout using magento backend.
Adding a class to img tags using JavaScript
For all img tag simply use this codes,
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
Adding Alt Attribute To All Images
To Configure reCAPTCHA in Magento
To Get Current Status of Ordered Items.
To get current status of ordered items in Recent orders and Order History of My Account.