For Magento 1.9 and older 1 UPDATE admin_user SET password = CONCAT(MD5('xxNewPassword'), ':xx') WHERE username = 'ADMINUSERNAME'; For Magento 2: 1 UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'ADMINUSERNAME';
Issue Solved: HTML5 Geolocation not working in chrome
Issue Solved: HTML5 Geolocation not working in chrome By: CodexWorldLast Updated: Jun 9, 2016 ShareTweet If your chrome version is 50, then you’ll encounter that HTML5 Geolocation API is not working. In Chrome version 50, HTML5 Geolocation delivered over HTTP no...
Use hreflang for language and regional URLs
Use hreflang for language and regional URLs Many websites serve users from around the world with content translated or targeted to users in a certain region. Google uses the rel="alternate" hreflang="x" attributes to serve the correct language or regional URL...
Magento 2 install redis in debian
sudo apt-get update && sudo apt-get upgrade Install the software-properties-common package: 1 sudo apt-get install software-properties-common 3. sudo add-apt-repository ppa:chris-lea/redis-server 4. sudo apt-get update sudo apt-get install redis-server 5. Verify the Installation Verify Redis is up by running redis-cli: redis-cli...
Drupal 8 study note 8 The Entity API -1Introduction
In Drupal, entities are a representation of data that have a specific structure. There are specific entity types, which have different bundles and fields attached to those bundles. Bundles are implementations of entities that can have fields attached to themselves....
Drupal 8 study note 7 : Plug and Play with Plugins-2 Creating a custom plugin type
The plugin system provides means to create specialized objects in Drupal that do not require the robust features of the entity system. In this recipe, we will create a new plugin type called Unit that will work with units of...
Drupal 8 study note 6 : Plug and Play with Plugins-1 Creating blocks using plugins
Creating blocks using plugins Create the src/Plugin/Block directory in your module. This will translate the \Drupal\mymodule\Plugin\Block namespace and allow a block plugin discovery. Create a Copyright.php file in the newly created folder so that we can define the Copyright class...
Drupal 8 study note 5 : Creating a custom theme based on Classy
In the root directory of your Drupal site, create a folder called mytheme in the themes folder. Inside the mytheme folder, create a mytheme.info.yml le so that Drupal can discover the theme. We will then edit this le First, we...
Drupal 8 study note 3: Providing the con guration on installation or update
Create a config folder in your module's base directory. All con guration YAMLs should be in a subfolder of Create a folder named install in the config folder. Con guration YAMLs in this folder will be imported on module installation....
Drupal 8 study note 2: Defining permissions
Permissions are stored in a mymodule.permissions.yml le. Add a mymodule. permissions.yml to the base directory of your module. First, we need to de ne the internal string used to identify this permission, such as view mymodule pages: view mymodule pages:...