- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
After changing theme to any of themes installed from Internet I can't see any products under any category in frontend. On sidebar filter I still see options like "price" and there is correct count of elements in them.
When I revert back to Magento Luma or Magento Blank theme or just change category theme to this standard theme (Luma or Blank) then I can again see item's grid.
I am trying to solve this problem since couple of days but no matter what I change or which theme I install, I can't see products under category. I hope it is something simple but I am very new to Magento.
I am using fresh install of 2.4.7 and only change I did is installing language pack.
Thanks!
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've never had a pleasure of choosing a free theme since our clients are usually looking for custom design and theme made from scratch for them.
But I did see quite a few horrific themes in audits I did over the years. Most of them come with terrible, extremely bloated code, lots of unnecessary extensions and many different problems.
The only theme I can currently recommend as a starting point for a new Magento project if you're not going all the way custom is Hyvä theme. It has become somewhat of an industry standard nowadays.
It's not free but it will work without issues and is compatible out of the box with most of the most popular extensions as well. It is also regularly updated.
An alternative to Hyvä that is free and a similar concept would be Breeze theme.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Missing products from category after changing theme
Could you share the content on
[Your Theme]/Magento_Catalog/layout/catalog_product_view.xml
to see what might be wrong in the theme files
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Missing products from category after changing theme
When you install a theme do you do all the usual steps like:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Are there any errors in your logs when you load a category page with no products?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Missing products from category after changing theme
Thank you for quick reply. This is content of file Magento_Catalog/layout/catalog_product_view.xml:
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <move element="page.main.title" destination="product.info.main" before="-"/> <move element="product.info.review" destination="product.info.main" after="page.main.title"/> <move element="product.price.final" destination="product.info.main" after="product.info.review"/> <referenceBlock name="product.info.sku" remove="true" /> </body> </page>
Dind't you mean catalog_category_view.xml? This is category view content:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <move element="page.main.title" destination="content" before="-"/> </body> </page>
Is it possible that free themes are so buggy that it is problem with theme? Maybe you can suggest any working theme which I can play with?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Missing products from category after changing theme
I run:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
after theme installation. That didn't help and additionally I was getting exception after running that commands, so I had to run this command to fix errors:
bin/magento setup:di:compile
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Missing products from category after changing theme
What kind of exceptions?
Are you sure the themes you're installing are compatible with your version of Magento (2.4.7) and your version of php?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Missing products from category after changing theme
I solved this errors - this were unrelated permissions errors.
I am on PHP version 8.3.8 and I had to fix few version errors in one theme, but I tried other themes as well and I had the same problem. Magento version is correct.
Do you know any theme which can be recommended for that version of PHP and Magento? Unfortunately for Magento themes there are so many spam pages that it is hard to filter out what actually might work.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've never had a pleasure of choosing a free theme since our clients are usually looking for custom design and theme made from scratch for them.
But I did see quite a few horrific themes in audits I did over the years. Most of them come with terrible, extremely bloated code, lots of unnecessary extensions and many different problems.
The only theme I can currently recommend as a starting point for a new Magento project if you're not going all the way custom is Hyvä theme. It has become somewhat of an industry standard nowadays.
It's not free but it will work without issues and is compatible out of the box with most of the most popular extensions as well. It is also regularly updated.
An alternative to Hyvä that is free and a similar concept would be Breeze theme.