Questions tagged [category-listing]
The category-listing tag has no usage guidance.
135
questions
0
votes
0
answers
9
views
How to preview Selected Out Of Stock Products on product level using attribute?
We have an attribute name replenishable and want to assign only on specific Out Of Stock Products to show on Cateogry Pages.
0
votes
2
answers
18
views
How to remove extra dash from virtual category page meta title
I have a few virtual categories set up in my top menu. When I go to a specific brand the meta title on my browsers tab shows a dash character "-" before the Brand Name.
Looking for a ...
0
votes
1
answer
26
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, ...
0
votes
0
answers
20
views
AJAX increment decrement buttons in category page
I need to add +/- buttons for quantity on the category page using AJAX, which I only found for the cart page.
Please help!
0
votes
1
answer
27
views
How can i move Strategery InfiniteScroll "Load More" button?
I installed Strategery InfiniteScroll to my Magento 2 project.
The plugin provides an option to display a "load more" btn at the bottom of the listing page.
However there's a problem.
The ...
0
votes
1
answer
43
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/
0
votes
1
answer
10
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 ...
0
votes
1
answer
75
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"...
0
votes
1
answer
151
views
How to get product collection total with pagination in magento 2
I have implemented pagination with limit & offset but when I am fetching the collection total after applying multiple filters then it's giving the wrong total count.
$layer = $...
0
votes
0
answers
33
views
How to get the attribute options on category page header as list in magento 2
I want to show all available options of attribute size in Magento 2 as a list on the category page.
This will show only the available product size, which has stock like Magento 2 layered navigation.
...
0
votes
1
answer
59
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 ...
0
votes
0
answers
27
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 ...
0
votes
2
answers
214
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 ...
0
votes
0
answers
36
views
How to add rating on category_view (product list) page all product rating Magento 2?
Example: I click on men's category, men's category all product rating count and calculate average rating add on product list page before footer.
0
votes
0
answers
92
views
Magento 2 - Cannot configure sort options in the backend
im trying to configure the sort options available in the category page. but it doesnt seem to work. i only need 'position' and 'price' as options but its displaying other attribute than the one i ...
0
votes
1
answer
36
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 ...
1
vote
0
answers
90
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
<...
0
votes
1
answer
128
views
Repeat a product on category listing page after list of 9 Products
I have a scenario, i want to list a marketing/ads product on interval of 9 product on category listing page. So every 10th number of product is a marketing/ads product. For example i add following ...
2
votes
1
answer
73
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 ...
0
votes
1
answer
45
views
CATEGORY filter appearing two times
In Layered navigation There are two filters of same name appearing two times how can I remove the above one:
We want to remove the first CATEGORY FILTER AND make the second to be displayed only?
0
votes
2
answers
312
views
Magento 2 - Category List Sort by Position with Sub Category Not Working
A little background, I'm trying to do a custom Category listing, but at the moment it seems the Category not being sort as I seen on Admin.
Here's the code that I've done so far
$current_store ...
0
votes
0
answers
589
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 ...
1
vote
1
answer
184
views
Magento 2 how to remove Category name With ID
here am using Magento 2.3 here category displaying category with its ID,
How to Hide or Remove these Ids. Can I get help? thank you in advance.
0
votes
4
answers
399
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/...
0
votes
0
answers
23
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
1
answer
32
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
1
answer
30
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
2
answers
1k
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
1
answer
56
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
1
answer
476
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
3
answers
94
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
2
answers
799
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
1
answer
697
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
0
answers
84
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
3
answers
3k
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
1
answer
176
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
0
answers
123
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
1
answer
249
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
1
answer
321
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
1
answer
214
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
1
answer
182
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
2
answers
887
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
3
answers
2k
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
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 ...
0
votes
1
answer
56
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
0
answers
143
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
4
answers
2k
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
1
answer
62
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
0
answers
36
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
1
answer
427
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 ...