Questions tagged [category-listing]
The category-listing tag has no usage guidance.
143
questions
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.
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 ...
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 ...
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')-&...
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?
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
...
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 ...
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 ...
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.
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/...
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 ...
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) ...
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 ...
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?
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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
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 ...
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'?...
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
<...
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 ...
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 ...
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....
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?
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
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 ...
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 ...
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 ...
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://...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
...
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">
<...
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 ...
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"...
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 ...
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::...
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 ...
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 ...
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.
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 ...
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 ...