Skip to main content

Questions tagged [category-products]

Questions related to Category Products Management and the relation between categories and products.

Filter by
Sorted by
Tagged with
1 vote
3 answers
2k views

Magento2 : Category List Page limited product view for a one category

I have a 5 or more categories. There is a specific category set for a 1-column-layout and another are as 2-column-left layout. For a 1-column-layout category i want to show limited product like 6 ...
2 votes
1 answer
1k views

Category grid Display - Item Hover

On main category page when I mouse over each product - this is how they show. Product image displays - Title/Price get covered up. There seems to be another hover box behind and below the main one ...
3 votes
1 answer
2k views

on Magento2.1 how to import product with multiple category

Now i try Default Category/Main/sub , Default Category/Main2/sub2 Default Category/Main/sub is working fine but in Default Category/Main2/sub2 can't import product Error Category Default ...
0 votes
2 answers
4k views

Create Custom Tab into Magento 1.9 Admin Panel

This Problem is related to Backend side (Magento 1.9 Admin panel) not for Frontend side: Part: 1) - I wanna Create Custom tab (suppose 'CategoriesInfo') in magento 1.9 admin panel. (like parallel to ...
2 votes
3 answers
4k views

New url key is not working for product after update in magento 2

I have product XYZ and URL key for this product is www.mysite.com/xyz I have updated the value of URL key product from xyz to xyz-new. When I try to access url www.mysite.com/xyz-new. It gives me ...
0 votes
1 answer
3k views

Magento 2 products positioning in category

I have converted my Magento 1.9 to Magento 2.3.1. In Magento 1.9, the products are listed by the position as the following orders 0,1,2,3...10.. and so on. But when I check in Magento 2.3.1 site, all ...
0 votes
1 answer
673 views

how to use the collection walk iterator in magento2

I have 50k products in my website and want to update tier price. I have existing tier prices for products, but based on the existing product price, I need to update customer price. I have created an ...
0 votes
1 answer
1k views

Change the "Sort By" option of a category with code

I want to change the Sort By (Default product sort order in the front end) option that is available in the Catalog -> Manage Categories -> Display Settings with a php script. I want to set that ...
1 vote
1 answer
1k views

Magento2.3 adding the products automatically to the parent category and to the subcategories which are on higher level

I am using Magneto2.3.0 I need this adding the products automatically to the parent category and to the subcategories which are on higher level If anyone idea reply me how to achieve this requirement....
4 votes
2 answers
3k views

Magento2 Add dropdown option in product listing page for configurable product

I want to change text-swatch to dropdown in category page. I want here drop down instead swatch
14 votes
6 answers
36k views

Magento 2: get product collection using category id

How to get all products of category using category id in magento 2?
1 vote
2 answers
323 views

Magento not showing products in category list page due to elastic search issue

I am getting that exception when view category in front end , I did re index also. [2023-11-09T05:26:45.393702+00:00] report.CRITICAL: Elasticsearch\Common\Exceptions\ServerErrorResponseException: {&...
1 vote
2 answers
2k views

Magento 2 - Custom sort order not working properly

I have created a custom plugin for sorting options for high to low & low to high price. High to low sort works fine but "low to high" sort order not showing correct results. app/code/Digital/...
1 vote
1 answer
4k views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
0 votes
1 answer
1k views

New Category Page Showing 404

So I have made a new category and copied all settings from another working category with a new name and url etc but I get a 404 when hitting the category frontend. When trying to debug this I have ...
2 votes
1 answer
2k views

Getting Products by category id! Magento 2.1 REST

How can I get products of a specific category? For Example If I hit https://www.example.com/index.php/rest/V1/categories/[category_id]/products it should return all products of the same Category [...
0 votes
1 answer
48 views

Show Product Salable Quantity, on Category view

I want to display Product Salable Quantity, on Category view page. On \app\design\frontend\Smartwave\porto\Magento_Catalog\templates\product\list.phtml added the follow code: <?php $objectManager = ...
0 votes
0 answers
26 views

Magento 2: How to sort the attribute based on attribute label?

I have created a custom product attribute with drop-down option and added that attribute in schema.graphqls file but when checking the sorting is happening based on attribute option value not based on ...
0 votes
1 answer
81 views

Magento 2 : Existing "category_ids" missing on product edit page

We have recently updated our magento version from 2.2.11 to 2.4.6-p5 and bumped into the issue below. After the new version is installed on our production website, "category_ids" can not be ...
0 votes
5 answers
4k views

Products are not visible at frontend Magento 2

There's two created product each of them is set: Product Type : Simple Website : Main Websites Status : Enabled Visibility: Catalog, Search Salable Quantity: >50 I use Magento 2.4.4 Open source ...
0 votes
1 answer
34 views

magento 2 new categroy product missing in category page

I am using magento 2.4.4.p1 upgrade from 2.3 to 2.4.4-p1 i have some products in my site in that few are disabled few are enabled after upgradation i am trying to enable one product it enable but not ...
0 votes
0 answers
31 views

Magento 2: Blank Spots on Category (Product Listing) Page

Began managing a website on Magento 2.3.3 and on most of the category pages there are blank spots. I know we have Porto and You can see in the images below. It's not consistent on desktop as ...
0 votes
1 answer
50 views

FPC issue with same product in multiple categories

I have an issue I am trying to solve regarding caching. I have products that are in multiple categories and whichever one is visited first is the one that's cached. When navigating to the same product ...
1 vote
1 answer
56 views

Get product categories not using ObjectManager

I know that exist a way how to get categories without ObjectManager, but I don't understand how to create the class, which can be used by any model (cause categories I need to implement in different ...
0 votes
2 answers
54 views

Want to get the products with their categories in PDF

I want to get the all products for all categories with the products details include image, size weight , price in one pdf Please help me how can I achieve this
0 votes
1 answer
69 views

Magento 2 Category field data scope issues

Good Afternoon, I am looking at a data scoping issue around category content fields for Magento 2 (2.4.5-p2). I have a list of fields that we typically fill in (please see below for category content ...
0 votes
0 answers
19 views

Indexing Optimisation: Do Simple products need to be categorised?

Magento 2.4.6 We're having issues with our indexing and are looking to optimise. We use Configurable products with Simple products as the variations. There are approx 200k simple products across ...
0 votes
0 answers
114 views

Show all the Products in product filters magento 2.4.6

I create an attribute name [show_category] with yes/no values if it's set to yes then the product show on the category page but if it's select no, then product not shown on category page. I create a ...
0 votes
0 answers
27 views

Magento category page products grid by sections with subcategories

I need to create some specific layout for category pages in Magento. The category page contains sections with product grids by subcategories for each of them For more clarity here is a mockup of this: ...
0 votes
1 answer
59 views

Disable admin user category Drag and Drop for Magento2

I am looking into if it is indeed possible to disable the ability for a user to drag / move and drop categories in the Magento2 admin panel. Any guidance or suggestions on how to accomplish this on ...
1 vote
1 answer
159 views

Fetch products on category page according to product`s custom attribute in magento 2.4.6

I create an attribute name [show_on_category_page] with yes/no values if it's set to yes then the product show on the category page but if its select no, then product not shown on category page. After ...
0 votes
1 answer
1k views

How to change the price of a product on the category page?

I am building a module for customer specific pricing. Here is psuedocode for altering the price for a specific product. This works on the product page and through the checkout journey. $_product = $...
0 votes
1 answer
163 views

How to update product position of a product in a specific category of specific store view in magento 2.4.4

I have a multi-store website and have more than 30 categories. I have a requirement like updating the product position. For example, I have a category 'XYZ' which contains more than 500+ products ...
0 votes
1 answer
53 views

Why Sub Category Links aren't working

Created some new subcategories but when I set up the links, I get a 404 error even if its working on backend. e.g. this link doesn't work https://www.jadeed.store/categories/personal-care/electric-...
0 votes
0 answers
41 views

Widget using "display on anchor categroy" not working on magento 2

This is driving me nuts, i'm trying to show a static block on the right sidebar of each product based on the category they are in. But it won't show anything on the frontend ! When i use the "...
1 vote
5 answers
2k views

magento 2.4.5 huge category reindex catalogsearch_fulltext is very slow

I have more than 100000+ products and 20 store views, one of the category has 60000+ products, when I reindex catalogsearch_fulltext, It took more than 20 hours, and still doesn't finish. and the ...
0 votes
1 answer
71 views

We can't find products matching the selection - M2.4.2

In my website some times category page shows "We can't find products matching the selection." When i run "indexer:reindex" it shows Catalog Search index exception: Could not ping ...
8 votes
4 answers
3k views

Magento 2.4.5 layered navigation filter showing incorrect results

I've recently updated a non-production version of a website from 2.4.4 to 2.4.5. The site has a number of configurable products with options for colours etc. The simple products behind the ...
0 votes
4 answers
732 views

Magento 2 : Redirect product if out stock

is there a way we can redirect a product if the product is out of stock, then redirect that product to its assigned category page (if multiple categories assigned then redirect to the first category ...
0 votes
1 answer
97 views

Magento2 add product option selector under category selector in admin

Magento2 Under category selector in admin I need to display a list of products of that category & then allow administrator to select products listed from beneath it. Category selector is basic ...
2 votes
4 answers
8k views

Removing a product from a category or setting the product categories programatically - Magento 2

I am trying to programatically remove a product from a category but it isn't working. I have tried: Using $product->setCategoryIds($categoryIds); and then saving with $productRepository->save(...
0 votes
4 answers
82 views

New created products are not coming in category pages or search pages

New created products are not coming in category pages or search pages . Where should i debug to find why they are not comming in front-end. Even direct product view they are showing in front-end.
3 votes
3 answers
457 views

Category products do not load - 'We can't find products matching the selection.' Error keeps coming up at least once a day. Elastic search is running

Magento ver. 2.4.2-p1 Amasty extensions We used to have Elastic Search crash every once in a while but this is no longer happening since we upgraded to the most powerful server. We had instances ...
1 vote
3 answers
900 views

Category Products not showing on frontend after Magento update

Updated Magento to the latest 2.4.6 and now the products do not show on the category pages, I can view the individual products and they show on the left filter, but no on the page. Any ideas?
2 votes
3 answers
94 views

How to create REST API's in Magento 2?

I have to create a REST API that can be used in android phone to list all the products including product image using category id ?
0 votes
1 answer
1k views

Magento2 how to prevent loading 10k products on category page?

our website is having 200000 products. One category is having 122000 products. when user load that category page it's fetching 10k products in one short(magento is limiting it to 10k instead of 122k ...
0 votes
2 answers
236 views

Magento 2 - Products in category page not showing

My problem is that : all products in category page not showing. And when i displayed the query of $_productColection in Magento_Catalog/templates/product/list.phtml : /** * Product list template * *...
0 votes
1 answer
42 views

We can't find products matching the selection - Cached (Varnish) M2.4.5

In rare cases we have category pages showing "We can't find products matching the selection" while actually the category contains products. This happens when the category is visited while ...
8 votes
2 answers
6k views

Magento 2 how to filter product collection on category page with custom filters

I have one category in system... For example EMT. There are many products assigned to it. Now I want to filter some products for particular customers for that category. I mean only specific products ...
1 vote
1 answer
167 views

Magento 2.3.5: Sorting Products with text type attribute with Flat Catalog Product Function on causes wrong sorting

I created a text type attribute called display_order with the following settings. Catalog Input Type for Store Owner - Text Field Used for Sorting in Product Listing - Yes The display_order text for ...

1
2 3 4 5
12