Questions tagged [category-products]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

Magento2 Add Custom Sort By Option ( Special Price Low - High)

I Want to Add New Sort By Option Like (Special Price From Low To High). Does any one know how i can do this ?
0
votes
2answers
24 views

frontend error category products not getting displayed

I am trying to access the product listing on the frontend But I am getting this error. Parse error: syntax error, unexpected 'else' (T_ELSE) in C:\xampp\htdocs\testmastersdirect\mastersdirect.masters-...
0
votes
0answers
11 views

Show Latest/New products first on Category Pages - Sorting Order

I want to show New product first on category pages. Right now all latest products are showing in last pages of categories. But i want to show on first page. anyone can help me on this issue. I am ...
0
votes
0answers
11 views

Magento 2 - Aftert importing products with CSV number of products imported is wrong

I have imported products via CSV file upload using Magento 2 import. In total I have imported 50401 products. I have a problem, the number of imported products is not equal to the number of found ...
0
votes
0answers
21 views

Magento Pagination Issue Magento 2.4.2

I had selected the 24 Items per page and it gives two paginations, after that when I click the 36 items per page when the pagination is 2 the page shows there is no error. How to fix this issue.
0
votes
1answer
11 views

How to add a `from to` filter for the Products in Category grid

I extended this class: Magento\Catalog\Block\Adminhtml\Category\Tab\Produc to add another column qty. This is how I added the column: protected function _prepareColumns() { parent::_prepareColumns(...
0
votes
0answers
19 views

Add column attribute in product in category grid

I want to add a column of a newly created boolean attribute, but it doesn't work, I have read blogs where they give the same advice but it hasn't worked I have followed the following steps: Create ...
0
votes
0answers
20 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
2answers
29 views

Fastest way to assign multiple products to the same category programmatically?

I am working in a process to will weekly updating a list of products and assign them to a sales category. The list could have 2000 products or more each time. Right now I am using the method ...
0
votes
0answers
14 views

How to add product name in parent category in magento 2

i have one parent category like name is :- "test". So i want to show product name in test sub-category.Like this structure. Test - main category - Tops - product name
0
votes
0answers
13 views

Magento 2 : Alter Category Child Product Positions

The Category Child Product Positions script pushes positions for every single product from the parent to the child (subs) effectively undoing the previous merchandising for all products of all child ...
0
votes
0answers
42 views

Magento 2: Show disabled subcategory products in parent category

I'm using Magento 2.3.4 and I have an anchor parent category that has some disabled subcategories. When I disabled these subcategories, all the subcategory products are not showing in the parent ...
1
vote
1answer
43 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 ...
2
votes
0answers
39 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
51 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
21 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
23 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
9 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
225 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
15 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
31 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
27 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 ...
1
vote
1answer
82 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
17 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
176 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
59 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
43 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
122 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
11 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
58 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
33 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
20 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
20 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 ...
4
votes
0answers
683 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
61 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
26 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
297 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
523 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
46 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
60 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
39 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
49 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
31 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
28 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
19 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
147 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 ...

1
2 3 4 5
11