Magento 2 set number of products per page

Here is how to change number of products per page in magento2. For example you want to set “10” products per page. 1.Login to admin panel of magento2. 2.Goto “STORES” in left panel and then click “Configuration” 3.Click on “CATALOG” and in sub item click “Catalog” 4.Click “Storefront” 5.Set “Products per Page on Grid Allowed Values” to new value like

Read more

Magento 2 Change Grid View To List View Or List View To Grid View Permanently

Here is how to change Magento2 Products Grid View to List View Permanently. 1.Login to admin panel of magento2. 2.Goto “STORES” in left panel and then click “Configuration” 3.Click on “CATALOG” and in sub item click “Catalog” 4.Click “Storefront” 5.Select List Mode to “List (default) / Grid” 6.Click “Save Config” 7.If it is ask for clear cache the goto “SYSTEM”

Read more

Magento 2 Change default store view web site name

Here is how you can change defualt store view name,Web site name 1.Login to your magento2 admin panel. 2.Click on Stores on left panel 3.Click on “All Stores” 4.To change “Default Store View” name click on third column “Default Store View” and Change Name field and save. 5.To Change “Main Website Store” click on Second column of Stores set name

Read more

Magento2 how to reindex

Here is how to reindex magento 2 from command line.You can not reindex from admin web. Goto command Line (SSH or Terminal) Goto Root directory of your magento 2 installation To reindex all magento 2 index fire following commandphp bin/magento indexer:reindex   To reindex specific indexing use following catalog_category_product catalog_product_category catalog_product_price catalog_product_attribute cataloginventory_stock catalogrule_rule catalogrule_product catalogsearch_fulltext For specific re-indexing for

Read more

Ubuntu magento cron setup

Check whether crontab is installed or not ? –> you can check same by fire command to command line crontab -e if you see result of crontab -e command then it is working otherwise you have to install cron service. –> If cron service is not installed you can install it by command sudo apt-get install cron Now we need

Read more

xcopy equivalent ubuntu – linux find command between date

Xcopy is windows command, using xcopy you can find files between date.Using xcopy you can coppy move files with physical paths to destination. In ubuntu(Linux) you can find files equivalent to xcopy using find command.In find command you have to pass source directory , from date, upto date and destination.This will simply copy files to given destination directory that is

Read more

jquery show hide element

There is many way to show hide elements using jQuery. 1.$(“#yourElement”).show(); $(“#yourElement”).hide(); 2.$(“#yourElement”).toggle(); 3.$(“#yourElement”).css(“display”, “none”); $(“#yourElement”).css(“display”, “block”);

Read more

php check valid username

You can check username is valid or not using regular expression.Regular expression is strong part of php.You can also use perl style of regular expression in php.The bellow given php function will allow only alpha numeric and underscore character.You can free to use this function in your project or scripts. Function function validate_username($username) { return preg_match(‘/^[A-Za-z][A-Za-z0-9]*(?:_[A-Za-z0-9]+)*$/’,$username); }

Read more

ajax username availability

How to check username availability in php jquery ?.You can check username availability using jquery ajax post request.You can also use ajax start,ajax stop and other ajax function.When ajax start you can show loading and when ajax request complete you can hide it.You can free to use this script and modify also. Jquery username check function <script type=”text/javascript”> $(document).ready(function() {

Read more

php remove newline from string

You can remove new line character any where in string using regex preg_replace.preg_replace is function which work on regex to search and replace in string.Regular express is strong part of php.You can also search replace html tags.Here I have used regex string feature to search and replace new line character. Here is example how you can remove new line anywhere

Read more
1 2 3 4 5 7