Magento
CategoryMagento 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..
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..
Magento 1.x – Use MySQL functions on Magento collections
Sometimes, you may need to use mysql functions in your query, to add any of them on your Magento collections, you could use the addExpress..
Magento 1.x – Fix Access denied error when importing an enterprise DB
If you are working with an enterprise DB, you can see the following error:
ERROR 1227 (42000) at line XXXX: Access denied; you need (at..
Magento2.x: Re generate css files in pub/static folder
If you made a css change into your files of your theme, and you don’t see those changes in the pub/static folder, so it’s not being render..