Questions tagged [category-listing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Magento 1 Product Image RollOver For Category Page

I am trying to create the ability for users to see the product rollover image on mobile category. So when we click the product image on the right side middle of image, it should display another ...
0
votes
0answers
18 views

Magento2 - Controller creates duplicate categories

I am creating a custom module to get categories and regarding products from API and uploading them to the site. After creating a controller for Categories, in the backend, there are duplicate ...
0
votes
1answer
24 views

My magento 2.2.4 homepage loads while other pages refuses to load

When I open my magento homepage it loads successfully while catalog search, categories and product page load a http 500 error. Copy of my .htaccess files is thus; ######################################...
0
votes
0answers
18 views

How to change the categories at the top of the front page to look like this?

Magento 1.9.4.0 Porto theme We have the Porto theme running on Magento 1.9. It displays the category drop-downs (when you hover over) in a certain way - mostly vertical. We would like to change it to ...
0
votes
1answer
21 views

Display Sub Categories list on a Category Page in Magento 2.3

How To Display Sub Categories list on a Category Page in Magento 2.3 root_catalog |-First |-Shoes |-T-shirts |-Brands |-Demo |-Test
1
vote
2answers
197 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
23 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
21 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
142 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
75 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
55 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
3answers
55 views

Get Magento product from url key

I want to get product details from url key. Is there a way to get product details from url_key, I am new to Magento and could not find any such way, please help I tried below code but it is not ...
1
vote
2answers
109 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 ...
0
votes
1answer
230 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
47 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? ...
1
vote
1answer
632 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
91 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
26 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 ...
0
votes
1answer
85 views

Magento 2: Setting div position on category page

<div class="alocolumns clearfix"> <div class="column main"></div> <div class="sidebar sidebar-main"></div> </div> I need this way <div class="...
0
votes
1answer
126 views

Magento 2: How I can use category DataProvider in Admin Grid

I am trying to add Category Grid in Magento 2 I created A grid and add Dataprovider Magento\Catalog\Model\Category\DataProvider Here is Code of My DataProvider <dataSource name="...
1
vote
1answer
70 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.
0
votes
1answer
80 views

it is possible to remove sidebar for specific category product listing?

my file : Vendor/theme/Magento_Catalog/templates/category/products.phtml i made this changes ` if($category_name == 'Featured Product'){?> <!-- when Featured Products --> &...
0
votes
2answers
325 views

How to display Out Of Stock product for only One Category while hiding them in all other category magento 2

Hi @all actually i wanted to display Out of stock products only in one category(Parent Category and it's all child categories) with "Display Out Of Stock" option "Yes" in the admin? It means here i ...
1
vote
3answers
1k views

Magento 2: Get Product Stock status details in Category List Product details Rest API

I have checked Category Products list API and gives list of the categories products. But don't get stock item details in products details. I want to need stock item details in products details. ...
2
votes
1answer
571 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 ...
0
votes
1answer
40 views

How to add remove from cart button onto category page

I am currently developing Magento 1.9 (yes I know it's outdated) and they have requested remove from cart buttons on the category page (list.phtml), however, I cannot seem to find a way to add the ...
0
votes
0answers
47 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.
1
vote
4answers
721 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::...
3
votes
1answer
44 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 ...
1
vote
0answers
18 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 ...
0
votes
1answer
211 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
296 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
1answer
162 views

Add active class when product is in wishlist at category page

I'm trying to add an active class when product is in wishlist. I tried below code. <?php echo $_product->getId(); $wishlist = $this->helper('Magento\Wishlist\Helper\Data')->...
0
votes
1answer
102 views

M2.2.4 - Category page listing all products (when products per page set to 24)

I am experiencing an odd and troubling problem. On our production environment, all product pages are listing all products on the single page, in which some pages will have north of 2-300 products, ...
1
vote
1answer
706 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 ...
-2
votes
2answers
247 views

magento1 and magento2 which table to store all the category [closed]

magento1 and magento2 which table to store all the category .so which related table to store data like category and also give the different. Thank you, Your Faithfully, Mehul Kanjariya
0
votes
2answers
463 views

How to set List Mode(backend configuration) programmatically for category page magento 2?

Actually i want to set list/grid mode(List Mode) configuration values for category page programmatically not from magento admin backend.if anyone have any idea please guide me.
1
vote
3answers
961 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 ...
3
votes
2answers
139 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
82 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 ...
1
vote
1answer
685 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 ...
2
votes
1answer
889 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.
0
votes
2answers
578 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 ...
-1
votes
1answer
78 views

How to show the count of reviews

How to show the count of product review on the category page? Now i just can get the stars, but no counts
0
votes
1answer
149 views

magento2.1 dropdown attribute list.phtml

How to get a dropdown attribute value on the category page, i set the show in listing to yes and added this attribute to product. any suggestion?
0
votes
0answers
108 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 ...