Magento 1.x – Put Magento in maintenance mode and allow it for certain ips
This tutorial explains how to put your Magento online store in maintenance mode so your visitors know that you are working on your website..
Magento 2.*: How to get add to cart button in a custom templete file
If you need to show the add to cart button in a custom template file, or in a block where it does not come by default (for example, relate..
Magento 2.x: Setup upgrade error “We can’t find the role for the user you wanted” – quick fix
If you are getting the error “We can’t find the role for the user you wanted”, while you are trying to do a php bin/magento setup:upgrade,..
Magento 2.x – Stop checkout success page redirection after refresh for testing
You can stop checkout success page redirection after refresh page, for testing purposes, with this below code:
File:
Comment Out Li..
Validate using JQuery if a checkbox is checked
If you are writing a JQuery code, and you need to add some validations working with checkboxes, the following snippet would help you.
C..
Magento 2.x: How to reset Customer Password from Database
If you need to reset the password of a certain customer via Database, the following query will help you:
Just change ‘YOURPASSWORD’ abo..
Magento 2.x – How to add a new product custom attribute programmatically
One of the most popular operations that we will need on Magento, is adding a custom attribute to our catalog products. To do so, basically..
Use Varien_File_Csv to import and export CSV files
Varien_File_Csv is a library which is used by Magento to manage files on csv format. This is pretty much simple working with csv’s with it..
Magento 1.x – Sales quote Total fix calculation on PHP7
If your store is not adding the taxes on your grand total, as follows, and you are within a PHP7 version:
You can do the following thin..
Magento 1.x – How to make an ajax call in a backend fieldset field
If you are making a backend admin form, and you need to make an ajax call to retrieve some information, the following tutorial will help y..