Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 39707

It should be used for questions about Magento 2.2.2

1 vote
1 answer
1k views

Magento 2.2.2 add to cart not working after server change

Add to cart was not working on local server and it was fixed by changing the base_url in database from "http://localhost/magento2" to "http://127.0.0.1/magento2". Now after all design changes when th …
Wasiq Shahrukh's user avatar
5 votes
3 answers
10k views

Magento 2.2.2 how to check if current page is a CMS page in .phtml file?

I am using the following code to check if the current page is Product detail page: $objectManagerCms = \Magento\Framework\App\ObjectManager::getInstance(); $registry = $objectManagerCms->get('Magento …
Wasiq Shahrukh's user avatar
1 vote
Accepted

Magento 2 display a category's product listing with its layered navigation on home page?

Here is what I did to achieve this: Added a new category in admin and added all the products that I needed on home page with 'include in menu' set to 'no'. Now in admin > store > configuration > gen …
Wasiq Shahrukh's user avatar
4 votes
1 answer
1k views

Magento 2 display a category's product listing with its layered navigation on home page?

I am using Magento 2.2.2 I want to display a particular category products on homepage along with its respective layered navigation. What I have already tried: 1) Changed home page layout to "2 col …
Wasiq Shahrukh's user avatar
6 votes
3 answers
5k views

Magento 2.2 move review tab below description with all product reviews

I have added the following code to 'Magento_Review/layout/catalog_product_view.xml': <move element="reviews.tab" destination="content" after="product.info.details" /> The above code moved the revie …
Wasiq Shahrukh's user avatar
0 votes
2 answers
1k views

Magento 2.2 some JS files are not loading in production mode

In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode: http://websi …
Wasiq Shahrukh's user avatar