Questions tagged [category-listing]

The tag has no usage guidance.

58 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
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
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
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
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
1
vote
0answers
176 views

Adding gallery images to category list

Magento CE 2.2.4 I want to add product gallery images alongside the main image on the category list & use the default gallery UI component if possible. I can add the gallery images to list.phtml ...
1
vote
1answer
215 views

How to display instock product first on the category page in magento 2.1?

I want to display In stock products first and out of stock at end of the listing. I have used below code in magento/module-catalog/Model $collection->joinField('stk', 'cataloginventory_stock_item'...
1
vote
0answers
271 views

Magento 2 show product by attributes programmatically

I want to show the product in the category (Product listing page) with pre-define product attribute custom attributes. Right now it is showing all product. But I want to show only those product which ...
1
vote
0answers
132 views

detailed_info on product category pages

I am using a plugin to add files for download to a product. This uses the following to load on a product page: <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias =&...
1
vote
0answers
309 views

how to include category id in url on category page?

I have one query regarding category id.I need to include category id, in category list page. Currently it should be like this : http://magento2.shelltag.com/women/bags/backpacks I want to show like ...
1
vote
2answers
866 views

how to display sidebar in both left side bar and right side bar in 3 columns page layout on category page magento 2

I select 3 columns page layout on a category listing page. It shows sidebar in left side but it does not show sidebar on right side. How to show sidebar in both sides?
1
vote
0answers
58 views

Move product toolbar in another phtml file

In Product listing page I've created a block and it's content coming from phtml file. So I wish to move product toolbar in it, so I've write following code in catalog_category_view.xml of my custom ...
0
votes
2answers
17 views

Magento 2.3 sort categories alphabetically

I want to sort the categories in a Magento 2.3.1 install in alphabetical order (on the frontend!). I'm aware of the fact that you can sort it by dragging it in the Magento admin panel. But since the ...
0
votes
0answers
6 views

Magento 2 how to sort categories based on a custom attribute in rest API

I am using V1/categories and V1/categories/list API calls for retrieving categories. I have created a custom attribute "featured_sort_order". Now I want to sort the categories based on the ...
0
votes
1answer
9 views

Unable to sort PLP with Configurable products based on discount (special_price)

I have configurable products in my PLP and I want to sort with "special_price" attribute. I edited the special_price attribute from admin and allowed it to be sortable in storefront. But I ...
0
votes
0answers
13 views

Magento 2: How to sort products by discount

I want to add a new custom option "Discount" inside Sort By dropdown on category page so that I can sort the discounted products from sort by options. Please help, How can I implement this ...
0
votes
0answers
48 views

Categories are not showing in autocomplete search smile elastic suite magento2

We have installed a smile elastic suite on the server instance successfully. We have followed the documentation and did the setup but in autocomplete search results categories are not showing using a ...
0
votes
0answers
12 views

uploading category's images for multiple stores

I am Sharing 1 root category to multiple stores I've created (exactly 24 stores) each store have 2 store views (EN and AR) for English store views, I need to upload the images 1 time on "all stores" ...
0
votes
1answer
50 views

SQL code to get the Product details with category tree heirarchy

I'm using Magento 1.9, We have a requirement to show the product details with category tree heirarchy. Have searched this in google and haven't find any answers. I have to create a report(using a BI ...
0
votes
0answers
45 views

After update to 2.3.4: Arbitrary rendering behavior of product images on category view

After updating from Magento Open Source 2.3.3 to Magento Open Source 2.3.4, I observe arbitrary behavior in the rendering of product images on the category view pages. Before the update, the product ...
0
votes
1answer
146 views

Magento 2.3 getResource is deprecated, what is the alternative?

I have a product attribute label get in category page below way. <?php $tablecolor = $_product->getResource()->getAttribute('xyz'); // attribute name $attrTestValue = $tablecolor->...
0
votes
0answers
14 views

List all parent categories in a page - Magento 2

I am a beginner in Magento. I want to create a new menu 'Categories' in the header and this link should redirect to a page which shows all root categories. Thanks
0
votes
0answers
39 views

How to get top 3 most purchased category list in magento 2?

There are modules that get top best selling products list but I want to get the topmost purchased categories list instead of products. Please help me with this. Is there any free module available? ...
0
votes
0answers
40 views

Magento 2 Image helper resize categories images in phtml

In Magento 2 If I want to resize the size of a product image I can do the following and it's working perfectly. $imageUrl = $this->helper('Magento\Catalog\Helper\Image') ->init($...
0
votes
0answers
40 views

Magento 2.1 set default filter in layered navigation

I need to apply the default filter in all category pages. could you please help me out. Thanks in advance.
0
votes
1answer
173 views

Magento 2 Auto-remove empty categories from menu?

I am using Magento 2.3.1 and the pearl theme. My site has many different categories and I wanted to know if there is a way to have magento automatically remove categories that don't have product in ...
0
votes
0answers
244 views

Category page take too much time to load because of search_tmp_* table

my sites category page slows down because firing query for search_tmp_* table take more than 1 second and it runs saveral time on one page load here is the query : 7624 ## QUERY SQL: INSERT INTO ...
0
votes
2answers
414 views

Issue in Category page magento 2

I am getting below error in system.log file. main.CRITICAL: Bucket does not exist [] [] My Main issue is in category list page and search result page I have 50 products inside the category and ...
0
votes
0answers
29 views

Making smaller product item detail on category grid

New to MSE so hello everyone. I was wondering if there is something that makes the product item description smaller on the category grid. Because its really long now and I need to increase it. I ...
0
votes
0answers
104 views

magento2.1 bottom pagination when there is no page

When i set pagination to 60 and i have 55 items, so shows 55 items and it is nice, but still shows a bar of pagination on the bottom of the page. how can i remove it when there is no pagination page ...
0
votes
0answers
272 views

Magento2.1 wishlist on category page

How to set an active class to magento2.1 wish-list button on list page? I mean that, when i go to product page, if marked that product to my wish-list before, just shows already added to wish-list or ...
0
votes
0answers
267 views

how can I change the category and url structure?

How can I change the magento 2 url structure ? For categories I would like: Bike Bike/Shoes Bike/Shoes/Mens etc.... for products I would like the product name i.e /etnies-cyprus-scw-x-32-shoes-...
0
votes
0answers
114 views

Move tool bar in category page to the top in magento2

I need to move toolbar section to the column.top, I have used below code in my catalog_category_view.xml file. <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/...
0
votes
0answers
247 views

Layered navigation only for subcategories in home page

I have these sub-categories under books category. I have tried adding this code to my home page as described in here Magento 2 How to show Layered Navigation on home page? . But it shows only price. ...
0
votes
1answer
165 views

Join with Category Table

I need to show all Subcategories and their products on category view page as -- CategoryName 1 <br /> -- -- Product List for category1 --- Category Name 2 <br /> --- Product List for ...
0
votes
1answer
740 views

Magento 2 : How to Load Image Collection in Category Listing Page

Need to Image gallery collection load to following path in magento 2.1.6 category listing page , \vendor\magento\module-catalog\view\frontend\templates\product\image_with_borders.phtml ( Or ) app\...
0
votes
1answer
52 views

Get every category with its sub categories without module

I need to get category list with sub categories. I've found multiple solutions that I may need to create a module and get category list inside module's template file. But I need to do this without ...
0
votes
1answer
224 views

Ajax filter by alphabet

I currently have a template to display subcatogories of a category. I created a new template and added to static block and set that in the category end. Here is the dev link : http://103.231.209.162:...
0
votes
1answer
773 views

Magento products collection change reload category page

I am tring to change product collection using catalog_product_collection_load_before. I need to sort products by in stock. Out of stock must be last. following config.xml, <events> <...