Questions tagged [category-listing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
1 answer
5k 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.
Jancy Abraham's user avatar
4 votes
1 answer
3k views

Uncaught TypeError: url.indexOf is not a function

After Magento Upgrade in latest version product list page showing this error, please suggest me what we can take step to solve this error. jquery.js:10363 Uncaught TypeError: url.indexOf is not a ...
Aashutosh Kumar's user avatar
4 votes
4 answers
13k 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 ...
P S's user avatar
  • 1,983
4 votes
2 answers
855 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')-&...
Xabby's user avatar
  • 529
4 votes
2 answers
1k views

Move Sort By and Per Page section in Magento 2

How can I move these two sections in breadcrumbs?
Karangar Meghnathi's user avatar
3 votes
2 answers
1k 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 ...
Jaimin's user avatar
  • 2,136
3 votes
1 answer
2k 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 ...
Mingle Li's user avatar
  • 265
3 votes
2 answers
87 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 ...
John C's user avatar
  • 33
3 votes
1 answer
3k 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.
Ayaz's user avatar
  • 357
3 votes
3 answers
7k 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/...
WaPoNe's user avatar
  • 1,571
3 votes
1 answer
93 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 ...
Bhakti Thakkar's user avatar
3 votes
2 answers
961 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) ...
Karl Stephens's user avatar
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
3 votes
1 answer
371 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?
chin's user avatar
  • 431
2 votes
3 answers
623 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 ...
YorkieMagento's user avatar
2 votes
2 answers
2k 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 ...
Timon de Groot's user avatar
2 votes
1 answer
1k 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 ...
Kirti Nariya's user avatar
  • 3,421
2 votes
1 answer
2k 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.
Darshan modi's user avatar
  • 1,031
2 votes
1 answer
1k 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 ...
Jafar Pinjar's user avatar
  • 1,929
2 votes
1 answer
318 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 ...
John's user avatar
  • 827
2 votes
1 answer
83 views

Product are not displaying on Category page after Data Migration

main.CRITICAL: { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Text fields are not ...
Richa Shah's user avatar
2 votes
1 answer
797 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
mskhan's user avatar
  • 171
2 votes
1 answer
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 ...
Sunny Rahevar's user avatar
2 votes
1 answer
91 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
170 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
357 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
373 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
3 answers
3k 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 ...
user1799722's user avatar
1 vote
2 answers
2k 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 ...
MartinE's user avatar
  • 520
1 vote
3 answers
2k 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 ...
bahaspletma's user avatar
1 vote
3 answers
3k 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. ...
Kirti Nariya's user avatar
  • 3,421
1 vote
2 answers
5k 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"> <...
Jafar Pinjar's user avatar
  • 1,929
1 vote
2 answers
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 ...
Miuzik's user avatar
  • 51
1 vote
1 answer
702 views

How can I display the categories and subcategories in my admin form like in the product page?

I am trying to add the categories and subcategories in a small panel Exactly like the one in the product panel and I want to add it in here instead of this XML field like the "toOptionArray"...
Zyzzx's user avatar
  • 81
1 vote
1 answer
553 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 ...
Laura's user avatar
  • 2,700
1 vote
4 answers
5k 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::...
TN98's user avatar
  • 923
1 vote
1 answer
2k 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 ...
Mudasser Hayat's user avatar
1 vote
1 answer
548 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 ...
Shakamal's user avatar
  • 103
1 vote
2 answers
3k 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.
shankar boss's user avatar
  • 1,439
1 vote
2 answers
3k views

Import Multiple Category with Product CSV

I am trying to import product through Magento 2 Admin Panel using CSV file. My CSV file looks like below I have categories like All Category/Bikes, Scooters & Ride-Ons and All Category/Fashion ...
abu abu's user avatar
  • 744
1 vote
1 answer
2k 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 ...
Muhammad Saeed Khan's user avatar