Questions tagged [category-listing]

The tag has no usage guidance.

73 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
181 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 ...
sahana's user avatar
  • 329
2 votes
1 answer
93 views

Magento2 how to remove catalog product listing url with special characters?

How to remove catalog product list url with unwanted string and special character for XSS Vulnerability fix, i need to completely remove the special characters if any. Example : 'magento url'?...
Mohamed Abbas's user avatar
2 votes
0 answers
171 views

Uncaught TypeError: $(...).AddFotoramaVideoEvents is not a function magento 2.3.6

I am facing this uncaught type error in swatch-renderer.js on listing page in magento 2.3.6 Till now i have tried 2 solutions but no luck: 1: added following lines catalog_category_view.xml <...
Umair Nasir Ahmad's user avatar
2 votes
3 answers
5k 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 ...
AjayKr's user avatar
  • 145
2 votes
2 answers
200 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 ...
Jafar Pinjar's user avatar
  • 1,929
2 votes
2 answers
2k 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....
Jafar Pinjar's user avatar
  • 1,929
2 votes
0 answers
27 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?
Ravi Varma's user avatar
2 votes
0 answers
359 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
sahana's user avatar
  • 329
2 votes
0 answers
288 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 ...
MrBlacky's user avatar
2 votes
0 answers
376 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 ...
Aravona's user avatar
  • 367
2 votes
1 answer
2k 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 ...
Mukklan's user avatar
  • 23
2 votes
0 answers
276 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://...
Yogesh Raghav's user avatar
2 votes
1 answer
18 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 ...
user2312645's user avatar
2 votes
0 answers
353 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 ...
eskaliert's user avatar
  • 175
1 vote
0 answers
125 views

Magento 2 Add custom products to product collection on catalog page - pagination not working

I need to add some custom products to category pages. Just to test this I've created twenty dummy products based on the last product in the category list. In ListProduct.php - ...
Doodled's user avatar
  • 11
1 vote
1 answer
29 views

Sorting Families on Plp

First product list A1, A2,A3 Product Family A Second product list B1,B2,B3 Product Family B It shows on PLP such as in this way; Family A Title Family A description A1 A2 A3 Family B Title Family B ...
user109253's user avatar
1 vote
1 answer
58 views

Issue with category and brand listing

I'm facing an issue with Magento 2.4.x, the website is hosted on managed magento server. I'm facing issues with reindex even after reindexing all of the manufacturers are not listing on the front-end, ...
Sandeep Nair's user avatar
1 vote
1 answer
292 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.
Sejal Shah's user avatar
  • 2,121
1 vote
0 answers
48 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 ...
user1799722's user avatar
1 vote
1 answer
1k 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 ...
Kevin S's user avatar
  • 169
1 vote
0 answers
22 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 - ...
Adil Khan's user avatar
1 vote
0 answers
287 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 ...
Freshwebs's user avatar
  • 125
1 vote
1 answer
403 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'...
Vinod Kumar's user avatar
  • 2,045
1 vote
0 answers
276 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 ...
Tejas Rana's user avatar
1 vote
0 answers
143 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 =&...
Aravona's user avatar
  • 367
1 vote
0 answers
397 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 ...
Yogesh Raghav's user avatar
1 vote
2 answers
1k 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?
Rajesh Kumar's user avatar
1 vote
0 answers
69 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 ...
Kaushal Suthar's user avatar
0 votes
0 answers
12 views

Added custom field/attribute to magento 2 pageBuilder all content types but the attribute is not displaying on frontend html

I extended magento 2 pageBuilder media content types (image, banner, slide, slider etc..). So if I add any value in that custom field that will be displaying on frontend CMS (home) page correctly but ...
shankar boss's user avatar
  • 1,439
0 votes
0 answers
16 views

Product list pagination not working correctly for category with over 50 products

I have a multistore with 4 stores. Three of the 4 are working correctly as they have under 50 products in the specific category. The one with more than 50, shows next page after the final product, and ...
Marie's user avatar
  • 1
0 votes
1 answer
21 views

Display Out of Stock Products crash

I have Issue Display Out of Stock Products when enabled. Some link category menu are crashed. Deprecated Functionality: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is ...
Roberto Salvatore Di Giorgio's user avatar
0 votes
0 answers
41 views

Stop Displaying Empty Categories or category with zero product count on frontend?

I want to stop categories with zero products from displaying everywhere on frontend even in fitler etc. If both parent and child do not have products then restrict both from displaying but if child ...
Mehran's user avatar
  • 482
0 votes
0 answers
58 views

Magento 2.4.3 - Layered Navigation - Categories

How can I go about setting up my layered navigation and category tree so the displayed products can be filtered by which child category they are in? I currently have every category in my tree is set ...
A. Andersen's user avatar
0 votes
1 answer
227 views

How to move toolbar in left sidebar

Anyone have any idea about How to move toolbar in left sidebar in magento2 category page using XML?
varun's user avatar
  • 1
0 votes
0 answers
142 views

Magento 2: Product's Layered Navigation Filter DIsplay Type API

I am working on Rest API. I want a product filter type (checkbox, multiple selections,yes/no) so that mobile filters can be shown based on that. For example on website filters showing like this : How ...
Krupali's user avatar
  • 1,140
0 votes
1 answer
447 views

Restrict access to some categories for not logged in customers

What's the best approach for restricting access to some categories and products in those categories on front-end for not logged in customers. we need to hide category from the menu and catalog search, ...
Anass Hl's user avatar
0 votes
1 answer
59 views

sub-category with photos in magento2

I would like to create a sub-category with photos on my site. How could you do that? As on the example pages and screenshot. https://www.moebel.de/wohnen https://www.home24.de/wohn-accessoires/
tricksi's user avatar
  • 45
0 votes
1 answer
36 views

magento EE v2,4.1 products disappear from category pages, or appearing on wrong category pages

I have a magento EE v2.4.1 website. my products disappear from PLP (category pages) automatically sometimes or appear on wrong category pages. this issue seems to be due to indexing, because when we ...
Bilal Amjad's user avatar
0 votes
1 answer
177 views

Magento2: Get Category list by using admin Authentication Token?

I want to get Category list by authorization bearer key by helper function. I have created custom api module and created helper Data.php and created function for getting generated bearer key. public ...
Ravi Varma's user avatar
0 votes
0 answers
54 views

How to change the product list page to drop down refresh?

I have two themes, one for PC and one for mobile. I want to change the product list page of mobile to the dropdown refresh mode.(Slide up to the bottom automatically loads the next page) What should I ...
Bob's user avatar
  • 5
0 votes
2 answers
683 views

Product name on multiple lines

I am using Magento 2.4.2 and the latest porto theme and i would line the product name to be listed on 2 lines and then if still longer then show an ellipsis. I would like to do this anywhere where i ...
Alex Smith's user avatar
0 votes
1 answer
169 views

Magento 2: Product listing page event

So I want to update the price of a specific products in product listing page programatically. To update, I created product attribute and I would like to take that value and update the price in an ...
Shivani Singh's user avatar
0 votes
0 answers
2k views

Magento 2: Disabled products are still visible in Frontend

I have disabled the product from admin panel but still the product are visible in the frontend. Expectation: Product should not visible in frontend when disabled it via admin. Actual Result: Products ...
MagentoDev's user avatar
0 votes
4 answers
993 views

Magento 2 Categorty page blank with following error

Magento 2 Categorty page blank with following error Fatal error: Uncaught Error: Cannot instantiate interface Magento\InventorySalesApi\Api\StockResolverInterface in /var/www/vhosts/blueridge.co.uk/...
OneBelowZero's user avatar
0 votes
0 answers
46 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 ...
karanrp's user avatar
  • 121
0 votes
1 answer
34 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; ######################################...
devmike's user avatar
0 votes
1 answer
68 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
Ravindrasinh Zala's user avatar
0 votes
1 answer
122 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 ...
Narendra Vyas's user avatar
0 votes
1 answer
728 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 ...
Linu's user avatar
  • 51
0 votes
1 answer
1k 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->...
Rakesh Donga's user avatar
  • 5,324