Questions tagged [category-products]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
18 views

Null condition present on Category Products Collection Query

Currently I am on Magento 2.4.2 which was upgraded from 2.3.0. The issue which I am facing right now is that I am not able to see any products displayed on category page. After debugging the below ...
2
votes
0answers
24 views

Products not appearing on category page after upgrade from 2.3.0 to 2.4.2

I have upgraded my Magento v2.3.0 to v2.4.2 running on Mysql 8. Everything went well except products not showing up on category page. Below is the class responsible to fetch products on category page. ...
0
votes
0answers
19 views

Product import with CSV in an already existing category

I am new to Magento and I tried to import product through csv file. I downloaded the csv product example file and tried to understand how it worked. I managed to change lots of things but I am stuck ...
0
votes
0answers
21 views

Hide products when customer add specific product to the cart Magento 2

is there any extension or a way to restrict products in Magento 2 by SKU? ex: I have products AA1001, AA1002, BB1001, BB1002. When a customer adds AA1001 to the cart straightaway the extension will ...
0
votes
0answers
8 views

How find low stock products to add to a 'special offers' category

Is there a way to find all low stock products and add them, or a manually selected subset of them, to a category, so that I can market low stock products? When creating or editing a category, I can ...
0
votes
2answers
43 views

Sort products by In stock in magento 2.4

Can we sort products In stock only. see the below screenshot.
0
votes
0answers
12 views

How to add columns filter in Products in Category

I need to add columns filter in products in category like in product listing page
0
votes
0answers
13 views

Magento 2 : Import category product data error

I am facing below error on some category id's when i try to export category product data using below code I need some advice what this code means & ways to fix this. {"0":"Item (...
0
votes
1answer
27 views

How to manage products in category on store view Basis

I have multiple store views with same root category, also with the same categories for all the store-views. Can we add different products in a category on the basis of store view. If not, is there any ...
0
votes
0answers
14 views

Magento 2.3.5: Link product page attribute to category page

How can I link (href) a product page attribute to it's category page? For example: I have a visible attribute on the product page called "Artist" and the product is in 3 categories "...
0
votes
0answers
19 views

Url category of products not showing correct products

If the category opened from menu kategori/bordslopare then It does not show correct number of products but if a filter like this is added then It shows correct number of products ?handla_cat=9807 At ...
0
votes
1answer
30 views

Catalog Category permissions keeps on changing automatically in Magento 2.4.1 Enterprise Edition

We are using Magento 2.4.1 Enterprise Edition. Suddenly our built-in catalog category permissions keeps on changing automatically (category permissions are set to "Deny"). which caused PLP ...
1
vote
0answers
15 views

Category “Match products by rule” not considering store price

We are using category "Match products by rule" option for assigning products to categories. We have multiple stores with different currencies. When we save a category at the store level ...
0
votes
1answer
44 views

Magento 2: Sort category page collection by custom attribute

I need to sort the product collection in category page by a custom attribute inventory_status. The attribute is of type int. I need to add the sort with the existing sorting applied. For example, if ...
0
votes
0answers
25 views

I want to develop cron for magento 2

In this cron I want to do the following things: cron should fetch products which has been created in the last 3 days. and also I have created some categories in the backend and I want to assign those ...
0
votes
0answers
13 views

Products not displaying on categories after Reindex confirms

Setup Magento 2.4 Using a service to import products from an magento 1.9 site into magento 2.4, all products (including test product before the import) is no longer showing on the categories. Look at ...
0
votes
1answer
15 views

Catalog product / Category redirecting to 404 page, Add To Cart not working

I got issue on Magento stroefront, there was no products showing on any category page. If I open any product direct and try to item to cart. Then it shows empty cart page. Admin panel working fine. ...
0
votes
1answer
40 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
0answers
56 views

Magento 2 product collection category filter category position sort

Hi i am trying to get product collection with category filter and category position sorting but it not working i tried below way $collection = $this->_productCollectionFactory->create(); ...
0
votes
0answers
8 views

How does catalog_category_product ( Category Products ) reindexer works according to mysql in Magento 2

I want to know about catalog_category_product ( Category Products ) indexer in Magento 2 like how it will work according to mysql. Like in which table's it will enter the data then further which table ...
0
votes
3answers
53 views

Products by category are not displayed on the frontend (Magento 2.4.0)

After having made a stormy migration from magento 1.8.1.0 to Magento 2.4.0 in the backend I can see all the categories and their products, however in the frontend when selecting any of the categories ...
0
votes
1answer
32 views

Unique Products in Product Collection Filtered with Category Array in Magento 1.9

I have tried below 3 method but it is not giving correct products as per cateory id array. First Way $_productCollection = Mage::getResourceModel('catalog/product_collection') ->...
0
votes
1answer
17 views

ViewModel modification makes existing list.phtml break

I recently made a modification to catalog-category-view.xml and overrode category.products.list. It seemed to work at the time, I had badges displaying on a rendered page. Now the template file errors ...
0
votes
0answers
13 views

Magento 2 category sort in admin product add page issue

The categories are shown in the product add/edit page of the admin page is not sorted by a position as in the admin category tree. As shown above I have this type of sorting on the admin page. But as ...
3
votes
0answers
331 views

Magento 2.4 - Elastic Search Out of Stock products at end of Product Listings

I need to display Out of Stock products at end of the Listing in category page. I have overided the SetCollection method in Toolbar.php using around method(upto magento 2.3.5 without elasticsearch it ...
0
votes
0answers
47 views

Magento 1.9.4.5 - Dataflow Advanced Profiles - Add Category Names to Products Export CSV File

I have been beating my head against a wall for a few days now trying to figure out a workaround to Export all of my Products. I have around 6500 products currently and trying to use the standard ...
0
votes
0answers
19 views

I want to apply condition only on sub categories of specific Category ID

I have root category default this has sub category Shop then shop has further sub category Collection Now collection has a further sub category list Tree Structure: ROOT |-Shop |--Collection |---...
0
votes
1answer
133 views

Categories not showing products in frontend after migration from Magento 1.7.2 to 2.3.5

Just want to preface this by saying this is my first time using Magento 2 so I apologize if I'm missing something easy here; I always try all I can before reaching out as the last thing I want to do ...
0
votes
0answers
401 views

Magento 2.4 Elastic Search Categories Emptying

I have recently updated to Magento 2.4 and on my test site it works perfectly fine. However, on my production site my categories randomly empty. To fix it, I manually run the bin/magento index:reindex ...
0
votes
0answers
34 views

Magento 2.3 how to show the configurable product options as drop downs on category page

I have followed the link Magento2 + Need to display Configurable Drop Down option on category page but the dropdown are display none and are empty with no options . If any one has done this type of ...
0
votes
0answers
48 views

Magento 2.4.0 Toolbar showing wrong result after applying custom filter in *LayerPlugin

I've overridden the Layer.php file using the plugin, to show product based on Multi-source location. But now I have the wrong number of elements in the toolbar (I have 4 products displayed but still ...
0
votes
2answers
37 views

Magento 2 Image in product detail not showing

I have created many products manually and uploaded images to them, only in list is showing the image, but when I click on product to see the details it's not showing. I have run php bin/magento ...
1
vote
0answers
48 views

How to load category products in batches? Enable “Allow All Products per Page” without compromising performance

TLTR: How to load category products in batches? I want to show ALL products for a category and remove the pagination. However, that poses a huge performance concern that I need to address. Let's ...
1
vote
1answer
27 views

How to import products using csv file

I want to import all products from csv to my magento 1.9.x store so can anyone have idea so please share with me. Thanks in Advance.
0
votes
2answers
26 views

How to include js on category pages Magento 1?

Hello i am using magento 1 i am not sure how can i include the below js in magento category pages frontend. <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.css&...
0
votes
1answer
18 views

Magento-1.9: How to manage products as per my wish in owl corousel slider for my home page slider?

I'm trying to set up a category products list on my homepage following this tutorial. <div class="hide-ratting owl-top-narrow" id="featured_product"> {{block type="...
0
votes
1answer
95 views

how to use the collection walk iterator in magento2

I have 50k products in my website and want update tier price . i have existing tier price for products, but based on existing product price i need to update customer price. i have created external ...
9
votes
4answers
6k views

Magento 2.x Elasticsearch Category Products Not Showing

I tried to upgrade my Magento 2.3.5 install to Magento 2.4.0, but am unable to get category pages to display products. Everything is in Docker, so I am using Elasticsearch 7.6 and have specified ...
2
votes
0answers
822 views

catalog_product index does not exist yet. Make sure everything is reindexed

In our production site using Magento 2.3.4 and Smile-SA elasticsuite extension with elasticsuite 6.x. After manual reindex site working well. But some time shows an error. main.CRITICAL: ...
0
votes
1answer
17 views

Assign category programatically to products in Magento 2.3.4

I want to assign promo category to products which have special price. Should I create a custom module or create a php file in root directory? I found this solution: How add category programmatically ...
0
votes
1answer
32 views

There has been an error processing your request. In Maganto category 2 category section

Notice: Undefined property: Plazathemes\Override\Controller\Adminhtml\Category\Edit\Interceptor::$storeManager in /home/e7iys871maju/public_html/thehighstreet/app/code/Plazathemes/Override/Controller/...
0
votes
1answer
29 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; ######################################...
1
vote
1answer
49 views

Error when getBlock('category.products.list') in Observer

public function __construct( Config $pageConfig, Category $categoryHelper, UrlInterface $urlBuilder ){ $this->pageConfig = $pageConfig; $this->...
0
votes
0answers
76 views

Blank product Image on category page Magento 2

When i upload images from admin for a product of low size it give blank product image on category page but when i upload image of large size,then it shows properly ,
0
votes
1answer
71 views

Magento 2.3.5 Categories Automatically Unassigned/Removed From The Product

After upgrading to the latest Magento 2.3.5, Assigned categories have automatically removed from the product after sometime add/edit products. Example: I have assigned the following categories in one ...
1
vote
1answer
57 views

How to set a minimum qty 2 of specific category - Magento2

How to set minimum qty for specific category? For example: I have 2 categories. one - test second - test2 For test categories products : I want minimum qty should be 2. and test2 categories customer ...
1
vote
0answers
25 views

Add editable attribute column in products in category grid

I have added an extra editable attribute column in "Products in category" grid. I am using the below link to add the column. Add filtrable attribute column in products in category grid Here ...
1
vote
1answer
27 views

magento2: Category and product page not working properly - Luma Child

I've created a child theme of the Luma theme with basic theme files. I've default.xml files on the theme layout and web folder (for js and CSS). All pages are working fine but when I started adding ...
0
votes
1answer
614 views

Magento 2 - Color swatches not display in Category Page

My site in Magento 2.3.5 does not display color samples on the category page. Instead, they appear on the home page and on the product page. In the backend I set everything correctly to display the ...
0
votes
0answers
82 views

How to hide the products base on the category in magento 2.3

I need to hide the products based on the category. To Do : If i need to hide the products which are assigned on the particular category called Shirts, all products of this category need to hide. How ...

1
2 3 4 5
11