How to Upgrade to Magento 2.3: Command-line upgrade

Magento 2.3 Upgrade Requirements You must meet the requirements to install/upgrade Magento 2.3. 1, Operating systems, Web servers, Database and php To install Magento 2.3, you need a Linux-based operating system (Linux x86-64), such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar. Also, the Web servers for Magento 2.3 is either Apache 2.2/2.4 or nginx 1.x. For the Database, Magento 2.3 is compatible with MySQL 5.6 or 5.7, MySQL NDB Cluster

How to install Node.js and npm on Raspberry Pi

Enable the NodeSource repository by running the following command in your terminal: curl -sL https://deb.nodesource.com/setup_10.x | sudo bash – Copy The current LTS version of Node.js is version 10.x, Dubnium. If you want to install Node.js version 8.x just change setup_10.x with setup_8.x Once the repository is enabled, install Node.js and npm by typing: sudo apt install nodejs To verify the installation, run the following command which will print the Node.js version: node

How to Load Google Fonts Asynchronously For Page Speed

The following code will load google fonts asynchronously and remove it as a render-blocking resource. <script type=”text/javascript”> WebFontConfig = { google: { families: [ ‘Roboto+Condensed:400,700:latin’, ‘Source+Sans+Pro:400,600,400italic,700italic,700:latin’ ] } }; (function() { var wf = document.createElement(‘script’); wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) + ‘://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js’; wf.type = ‘text/javascript’; wf.async = ‘true’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(wf, s); })(); </script>

How to install PHP 7.2 on Ubuntu

sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -y php7.2 Set PHP5.6 as default version: $ sudo update-alternatives –set php /usr/bin/php5.6 Alternatively, you can run the following command to set which system wide version of PHP you want to use by default. $ sudo update-alternatives –config php Enter the selection number to set it as default version or simply press ENTER to keep the current

Find and replace text within a file using sed command

The procedure to change the text in files under Linux/Unix using sed: Use Stream Editor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt The s is the substitute command of sed to find and replace It tells sed to find all occurrences of ‘old-text’ and replace with ‘new-text’ in a file named input.txt Verify that file has been updated: more input.txt

Magento2: How to add css and js file in module

app/code/Custom/Helloword/view/frontend/web/css (contain css file ) app/code/Custom/Helloword/view/frontend/web/js (contain js file ) Open the layout file in app/code/Custom/Helloword/view/frontend/layout and add the following code. <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”2columns-left” xsi:noNamespaceSchemaLocation=”../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd”> <!– for add css and js file on page –> <head> <!– for css file –> <css src=”Custom_Helloword::css/mycss.css”/> <!– for js file –> <script src=”Custom_Helloword::js/myjs.js”/> </head> </page>

Magento 2 Datepicker Frontend Guide

Below is a code on how to use datepicker in Magento 2. Copy the code below into your .phtml file and you’re done. <divclass=”field-control “> <input class=”control-text” name=”datepicker” id=”datepicker” type=”text”> </div> <script type=”text/javascript”> require([“jquery”, “mage/calendar”], function($){ $(‘#datepicker’).datepicker({ prevText: ‘&#x3c;&#x3c’, prevStatus: ”, prevJumpText: ‘&#x3c;&#x3c;’, prevJumpStatus: ”, nextText: ‘Vor&#x3e;’, nextStatus: ”, nextJumpText: ‘&#x3e;&#x3e;’, nextJumpStatus: ”, monthNames: [‘January’,’February’,’March’,’April’,’May’,’June’, ‘July’,’August’,’September’,’October’,’November’,’December’], monthNamesShort: [‘Jan’,’Feb’,’Mar’,’Apr’,’May’,’Jun’, ‘Jul’,’Aug’,’Sep’,’Oct’,’Nov’,’Dec’], dayNames: [‘Sunday ‘,’Monday’,’Tuesday ‘,’Wednesday’,’Thursday’,’Friday’,’Saturday’], dayNamesShort: [‘Sun’,’Mon’,’Tue’,’Wed’,’Thu’,’Fri’,’Sat’], dayNamesMin: [‘Sun’,’Mon’,’Tue’,’Wed’,’Thu’,’Fri’,’Sat’], showMonthAfterYear: false, dateFormat:’d/m/yy’ });