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
34 views

How to get product list by multiple categories with multiple SKUs in Magento 2.3.5

I'm trying to get product collection by Multiple Category Ids with Multiple SKUs. The result has been coming wrong. I can't understand where I'm wrong. The code is given below <?php namespace ...
0
votes
1answer
19 views

Magento 2 Admin - Base table or view not found

I have 5 different domains for a Magento 2 installation - 4 websites and 1 admin side. I got a spontaneous exception when I'm trying to get access to an admin login form by admin URL(it was ok before, ...
0
votes
0answers
15 views

Position column not showing for catalog => category for assigned products backend magento 2.3 EE

Hi @all, for me Position column not showing for Catalog => Categories => Products in Category for all categories for assigned products in Admin Panel. Please help me if any idea !!
0
votes
0answers
19 views

Adding bulk delete category products on Save

I am using Magento 2.4 enterprise edition and the Admin Products in Category Tap is using Magento visual merchandiser (Magento_VisualMerchandiser) module which removes the bulk select checkbox column ...
0
votes
2answers
122 views

Product tabs are not showing in product detail page

product tabs are not showing on the product detail page and reviews are coming down to Description. I had created a custom tab and this one also does not show http://18.169.225.50/calacatta-matt-...
0
votes
1answer
26 views

Product position in category not saved correctly

I have a strange problem in our Magento 2.4 installation. In a product category you are able to specify the position of a given product by entering a value in the position column. This helps to ...
0
votes
1answer
22 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
28 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
19 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
12 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
37 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
12 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
21 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
23 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
116 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
25 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
79 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
78 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
116 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
78 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
22 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
31 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
367 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
19 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
41 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
33 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
146 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
427 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
16 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
129 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
116 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
204 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
3answers
87 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
34 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
32 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 ...
4
votes
0answers
895 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
1answer
448 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
599 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
2answers
41 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
53 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
33 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
30 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
26 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
177 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