Magento 2 Validation Rules List

Here is list of validations classes rules supported by magento 2. You just need to add css class for the rule to apply. min_text_length max_text_length max-words min-words range-words letters-with-basic-punc alphanumeric letters-only no-whitespace zip-range integer vinUS dateITA dateNL time time12h phoneUS phoneUK mobileUK stripped-min-length email2 url2 credit-card-types ipv4 ipv6 pattern validate-no-html-tags validate-select validate-no-empty validate-alphanum-with-spaces validate-data validate-street validate-phoneStrict validate-phoneLax validate-fax validate-email validate-emailSender

Read more

Magento 2 Add Coupon Code

Here is how to create Coupon Code. For example you want to set “10%” off on whole cart when total of cart 200 or more 1.Login to admin panel of magento2. 2.Goto “MARKETING” in left panel and then click “Cart Price Rule” and Click “Add New Rule” 3.Click on “Rule Information” and set Rulename,Coupon,Coupon code and other required information. 4.If

Read more

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