Questions tagged [category-listing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
4k views

Magento 2 display configurable Price Range in product listing

I want to display price range for configurable products instead of the minimal price in category listing.
4
votes
2answers
611 views

Get the categories alphabically ordered in list page: Magento

I am Getting the sub categories of current categories but it is showing in random way or may be according to the category ID as follows: <?php $category_ido = Mage::getModel('catalog/layer')-&...
4
votes
2answers
615 views

Move Sort By and Per Page section in Magento 2

How can I move these two sections in breadcrumbs?
3
votes
3answers
7k views

How to get category tree in Magento 2?

I need to show category tree, just like in admin section, in my custom page. I viewed this solution in magento.stackexchange.com. It was good but limited to 2 levels of category. I need all the ...
3
votes
2answers
871 views

How can I create multiple category pages in Magento 2?

Actually, I want to create different files for every category page (every product listing page). For that I have: Created customlist.phtml from list.phtml or copied the code of list.phtml and create ...
3
votes
2answers
53 views

Is there a faster way for me to show 'Only X Remaining' on a category page?

1.9.3.1 - My catalog setup is using configurable products with associated simple products. My category pages show the configurable and I'd like for the 'Add to Cart' text to read 'Only X Left' if all ...
3
votes
3answers
5k views

Magento 2 - How to get product in a block

I'm trying to insert a block in default.xml layout so I created my app/code/Mainf/Stickers/view/frontend/layout/default.xml file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
3
votes
1answer
40 views

Magento 2: Getting unknown category

I am trying to get a level 2 category list. I got all level 2 categories but I am also getting 2 unknown categories which are not in backend. This is weird. Here is my code public function ...
3
votes
2answers
98 views

Magento 2 - Get Categories by Custom Category Attribute

In Magento2 - I've created a yes/no toggle category attribute named is_featured, its shown as "Homepage Category" in the screenshot below. I'd like to be able to display (on the homepage cms page) ...
3
votes
0answers
81 views

How to show/hide shared catalog enabled categories in layered navigation in Magento 2?

We have enabled the b2b extension. When we select specific categories on shared catalogs, it hides only on the mega menu, but layered navigation still lists the categories. How can we hide it from ...
3
votes
1answer
357 views

Which function is triggered filterable attributes for the products on category page Magento 2

Which function is triggered when clicking on any filterable attributes for the products on category page Magento 2?
2
votes
3answers
389 views

Show sibling child categories in left.phtml navigation in Magento 1.9

In the standard left navigation catalog/navigation/left.phtml of Magento 1.9 when entering a child category, with no children of its own, the navigation area is left blank. For these childless ...
2
votes
2answers
1k views

Magento 2 - get categories by using interfaces in API

In Magento 2, you're supposed to use the interfaces in Magento's API. So, when you want to fetch product(s), you'd use \Magento\Catalog\Api\ProductRepositoryInterface. That works great and it's very ...
2
votes
1answer
711 views

How to remove default generated canonical tag in category page?

In Catalog > Categories > [my category] > Design > Layout Update XML, I put my own canonical link. However, when I inspected the HTML, I noticed there were two canonical tags. One of them ...
2
votes
1answer
414 views

Magento 2: get “Sort By” filter options in Rest API

Need to get Sort By List of Options category products list page using Rest API. I have checked default REST API but can't get the same. https://devdocs.magento.com/swagger/ Any have idea how to get ...
2
votes
1answer
779 views

Magento 2 Category page add custom view mode

On category page I want to add addition view mode as "expand" with "grid" and "list" mode. If any one has created custom view mode for category page then help.
2
votes
1answer
424 views

Move breadcrumb before sort by feature of toolbar section in Magento2

How to move breadcrumb of category list page into toolbar section of category list page. I need to move the breadcrumb to toolbar or either left sidebar before the filters. Is it possible to do like ...
2
votes
1answer
1k views

How to move category image above product listing column in magento 2.2.0?

I want to move the category Image and category description in the column of product listing at category page. Now the Image and description is appearing above the 2column-left layout.
2
votes
1answer
159 views

How many product details are loaded to a category page in Magento 2?

When my user goes on one of our category pages, for each product in that category, the photo, the name of the product, the price of that product and I imagine the SKU of that product are all loaded by ...
2
votes
1answer
2k views

I got the error 'Unable to serialize value' after upgrading the magento version to the 2.2.1

I have upgraded website 2.2.1 and facing Unable to serialize value error in particular product categories. When I disabled the page cache (FPC) from the admin cache management then it works fine but ...
2
votes
2answers
50 views

Load selected category products in list page magento2

I have loaded a custom template in the category view page. with content all categories in the drop down. I am looking for functionality once drop down changes the corresponding category products ...
2
votes
2answers
716 views

Populate sub category drop down based on category selected magento2

I have used below code to populate sub categories in other dropdown once the parent category is selected. Used this code in my template file. app/code/Vendor/Module/view/frontend/template/category....
2
votes
0answers
26 views

Magento2: How can load subcategory based on catagories dropdown option value?

I have checked that reference link for Magento1 but i want to do in Magento2 using object manager. Anyone have an idea for that please?
2
votes
0answers
219 views

Catalog Listing Widget - We're sorry, an error has occurred while generating this content

When I want to use the Catalog Listing Widget I get the following message on the front page: "We're sorry, an error has occurred while generating this content." Can anybody help me out with this ...
2
votes
0answers
189 views

Extend Configurable to show on category listing

I am trying to show the configurable product options on the category page, for our store set up these are configurable products with simple products as options - not as custom attributes. I want to ...
2
votes
1answer
974 views

Magento 2 Custom Category Nav Submenu

So i have created a Magento 2 theme based on Blank, and the customer wants the submenu of the navigation to be a big window instead of the little dropdown that comes out of the box. They also want ...
2
votes
0answers
201 views

How to include category id in url on category list page?

i want to include category id included in url on category list page. My default category url is listed below:: http://magento2.shelltag.com/women/bags/backpacks I want to show it like this : http://...
2
votes
1answer
16 views

Category list ouside Magento Store

I have a shop in magento in (http://198.143.135.69/) and I'm testing to display the contents of a category outside the magento say in a file on the root of the site (test.php) and hopefully show ...
2
votes
0answers
349 views

Magento 2.1: Show available Configurable Product Super Attributes/Configurations on Category Page

I want to display all available configurations of my configurable product on list.phtml (app/design/frontend/Vendor_Name/Theme_Name/Magento_Catalog/templates/product/list.phtml) next to the product ...
1
vote
3answers
809 views

Add CMS block to bottom of each product list

I would like to add a CMS block to the bottom of each product list whehter it is on a category page or the search result page. Since I would like to add it on every list I'll try to do this via layout ...
1
vote
2answers
74 views

How to change layout of all category in magento to 1 column

i have about 100 catgory in admin, is there way to change layout of all catgory to 1column i can do it from backend,but doing one by one will take too much time, is there way to do it quickly i ...
1
vote
2answers
3k views

Load custom block in category list page magento2

I am trying to add custom template file in category list page. app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml <referenceContainer name="content"> <...
1
vote
2answers
1k views

Default meta title for product and category page

I want to set default meta title for product page,category page and for cms page. If I'm not setttin title in admin panel I want to set my default title. But I don't know how to make this. I try ...
1
vote
1answer
439 views

Category static blocks in Magento 2 sample data Luma theme

I can't figure out how Magento 2 is assigning blocks to categories in the sample data. I see the blocks under CMS, and I see the assignment for a category to only use static blocks, but where are we ...
1
vote
4answers
498 views

How to get all category is active in magento 2

i tryed get all category in phtml by this code, but it not working, it get all category, not only category active. Please help me. Thanks all. $objectManager = \Magento\Framework\App\ObjectManager::...
1
vote
1answer
302 views

Magento 2: Configurable product dropdown attributes on category listing page

I am looking for an option to get the configurable product attributes with each product on category listing page. Magento 2 defaults to swatches only. How can we change it to dropdown? Thanks
1
vote
1answer
490 views

How to show products from subcategories in a category page

I need to list products in a category page sorted by subcategory with respective subcategory name before the products. With static blocks I can display the name of the subcategory on the category page ...
1
vote
2answers
2k views

How to get All Active Categories in Custom Module Admin Form Dropdown in Magento 2?

I am implementing a custom module in magento 2.In that module I want to show all active categories in admin form dropdown.How can I show them please help me on this.Thanks in Advance.
1
vote
1answer
1k views

Magento2 Blank category list page after migration

We successfully migrated a huge multi-store site from magento-1.9.3 to magento-2.1.6 last week using Magento migration tool. After migration, we notice that categories are not listing any products ...
1
vote
2answers
606 views

Configurable product image resolution issue

I'm having an issue with configurable product swatch on my category view page (in grid mode). We are using image in 420px in our category page but the image that are automatically switch with the ...
1
vote
1answer
1k views

How to Change the position of breadcrumbs in list page?

I want to display the breadcrumbs in list page alone to display inside the grid exactly just above the toolbar. So I entered this line of code: <?php echo $this->getChildHtml('breadcrumbs') ?&...
1
vote
1answer
205 views

We can't find products matching the selection in magento 2.3

On every listing page, I'm getting We can't find products matching the selection. I followed this also but dint helped We can't find products matching the selection. I'm attaching a screenshot for ...
1
vote
1answer
80 views

Magento 2.3 After changing product all categories are unassigned

I have a problem with Magento 2.3.3. We have a lot of normal products and also use Group and Bundle products. All products are assign to a category (or multiply categories) and also displayed in ...
1
vote
0answers
23 views

show loader after every category on home page in magento2 [closed]

On my home page I am showing all products with its categories once on page load. But i wanted to do like for after scrolling down ,after each category product list before next category I wanted to ...
1
vote
1answer
41 views

Magento 2 add parent category class to body for product listing page

I have number of subcategories under a main category called 'services'. I want to add a custom class 'service-listing' to body on all the subcategory pages under this category.
1
vote
0answers
17 views

Magento 2 : Unable to to get custom image url on list.phtml

i have created custom image attribute in magento 2 named as background_image screenshot below i want to show url of background image in my category listing page, i have tried below code but nothing ...
1
vote
1answer
582 views

Sort products in ascending order by name on specific category page not working

I want to sort product for a specific category by name in ascending order but it is still sorting in descending order in the front-end. For a category under Display Setting, I have set Default ...
1
vote
1answer
513 views

Magento 2 - Add custom sort by option in cattegory page and make it default

I have added custom sort by option "random" for category page. I have used following code to add random option: I have used plugin . app/code/DL/CustomSortOption/etc/frontend/di.xml <config ...
1
vote
0answers
20 views

How to skip any category in seo meta title template?

We have magento 2 on website we have 4 categories, we sell photocopier parts, let me give an example what issue we are facing and what we want. Konica Minolta - Bizhub Color Series- Bizhub 203 - ...
1
vote
0answers
200 views

How can i upload multiple images for a single category in category listing page in magento 2?

Let me know the possible way to render multiple images in category listing page,we need to upload a image in admin panel and it should reflect in the storefront category page