Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [category-products]

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

0
votes
1answer
32 views

Can't save product in admin

Whenever I need to edit a product in admin, I get the following error: Notice: Array to string conversion in /shared/httpd/magento/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on ...
0
votes
1answer
84 views

Magento 2 Products not showing in categories and search (visible in backend)

Got an issue with displaying the products in frontend although they all can be seen in backend. Products also can't be searched but can be accessed via url e.g. example.com/catalog/product/view/id/...
0
votes
0answers
10 views

divide existing configurable Products

Its a bit of a complicated Situation at a Clients Magento (1.9) Store. Products are generated programmatically by an Interface to a bigger Managementsystem for Goods. Most Products are Clothes with ...
0
votes
0answers
12 views

Magento 1.9 Adding Products via Manage Category > Category Products Not working

Cannot add products via Manage Category > Category Products tab. This was working but has now stopped. I think this may have been due to me hitting the Add Root Category by mistake and then ...
1
vote
1answer
20 views

Changing block location based on size?

I want to have a block (contains a image and some text, nothing overly fancy) appear on the top of the products in a category page when it is on desktop, then on mobile I want it to be on the bottom ...
0
votes
0answers
22 views

M2.2.4 - Category page listing all products (when products per page set to 24)

I am experiencing an odd and troubling problem. On our production environment, all product pages are listing all products on the single page, in which some pages will have north of 2-300 products, ...
1
vote
0answers
16 views

Opening product from category url is much slower than loading it from product url

So I have a product named A. If I open A from it's own url https://mymagentowebsite.com/A.html it opens fast because it's cached. However, if I open the product from the category url https://...
0
votes
0answers
17 views

Visual merchandiser random product showing : M2

Magento2 Admin Panel > Products > Categories > Select Any category > "Products in category" When i try to load more products from select dropdown, some random products are showing in result ...
0
votes
1answer
35 views

Products not appearing in the catalog - Reindex not adding records

When I add products to a category through the admin pages, the product is not showing up on the relevant category page. Ive have searched for an answer for this extensively and carried out all the ...
0
votes
0answers
30 views

can't save new category in magento2 admin panel [duplicate]

Magento2 admin panel adds new category save then error show. "Something went wrong while saving the category." So give me a solution.
0
votes
0answers
16 views

Magento 2 admin panel add new category error Integrity constraint violation [duplicate]

Below error when Magento 2 admin panel add new category [2019-04-08 22:36:22] main.CRITICAL: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'entity_id' cannot be null, query was: ...
0
votes
2answers
31 views

Magento 2 - List child SKUs of category on category page

I hope someone can help - editing the Magento_Catalog/templates/product/list.phtml most likely buy inserting a new phtml file, how can I list all of the child SKU's of the parent category on the ...
0
votes
0answers
52 views

Magento 2.3 how to add cms static block in footer on last page of product listing

I would like to display a static Block at the footer on last page of category view page. Using Magento 2.3. Tried with productlist.php but not working as expected. Using below references. How do I ...
1
vote
1answer
30 views

Magento 2 Change Product Price

I am working on magento 2.2.6 sale extension and I want to change the price of the product by subtracting the sales price from it.As you know a single product is shown on multiple pages and ...
0
votes
0answers
38 views

Magento 2.2.4: Could not save product “3395” with position 1 to category 1882

I am using Magento 2.2.4. Assigned a product to two categories. One of the categories is a child of the other. Following error is thrown while saving the parent category after removing the product ...
2
votes
1answer
48 views

Remove products from all categories when price is zero

For SEO reasons I want to keep products which are not being produced anymore on my website, so I edited some stuff so when I change the price of the products to 0,-. It displays a text that the ...
2
votes
0answers
59 views

Magento2 : Add New columns in “Products in Category” [closed]

I want to add new columns in Magento 2 admin category where product assign to category with product details. Please check below image for more details: Here, I have tried to add column using xml ...
2
votes
1answer
35 views

filtering product collection on category page based on custom customer attribute

I've been struggling with Magento\Catalog\Block\Product\ListProduct::initializeProductCollection() from a few days. I need to filter category product collection based on user's location. So ...
0
votes
0answers
26 views

Magento Product Listing Sort By not working on some category

The issue is that on some of the category pages the Product Listing Sort By is not working while on some it is working. I appreciate all the help you can give. The Magento version is 1.9.3.0
2
votes
2answers
78 views

Unlink and link product to category

Need a script where current existing products needs to unlink and link to other categories. let me know the process also
2
votes
0answers
25 views

Magento 2 : Product list only shows one product in one of the category, the rest works fine

Product list only shows one product in one of the category, the rest works fine. That category has more products, if you search for a product, you can access its product view and in related products ...
1
vote
1answer
49 views

magento 2 Deepest Category product list page gives Error 500. Which files to inspect?

The site I'm working on the lowest category page (suppose to be list view) give the error 500. I'm not quite remember file I edited. search result also return the same error. Which files should I ...
1
vote
0answers
65 views

Adding Product to category programmatically getting error in Magento 2.1

When I am adding the product to a category I am getting below error : "Category does not contain specified product" The error comes from the below file : vendor/magento/module-catalog/Model/...
0
votes
2answers
97 views

How to get all the Children Categories IDs of the Specific Category in Magento2

I want to get all categories of the specific category for that I tried public function categoryHide() { $data = $this->arrayData(); $save = array(); $objectManager = \...
1
vote
1answer
33 views

How we can noindex,nofollow the category-product-url?

I want to noindex,nofollow only those product urls in which category is coming in url. For example : I have product abc.html and it is assigned to 2 categories so it can open by three ways. 1. ...
1
vote
1answer
17 views

Products Not Showing on Front End

I have had this problem for some time now, I import new products using MAGMI and after re-indexing and cache clearing the products do not display on the front end in the respective category pages. ...
2
votes
0answers
41 views

Magento2: Class not found error

Product category page is not working. My Magento v2.0 Got the error below. use Magento\Framework\EntityManager\MetadataPool How can I solve the issue. ?
1
vote
1answer
59 views

How to get products filtering by category and attributes?

I have searched about how to filter and I have tested about 20 codes but always return "". The situation is the following: - For the current category, I have 8 attributes, 7 are multiselect checkbox ...
3
votes
0answers
47 views

Magento 2: How to add quantity field in category page [duplicate]

I need to add quantity box in category page. your help will be greatly appreciated
0
votes
1answer
48 views

Magento 1.9 addAttributeToFilter() returning 0 products

I have the following code where i want product collection filtered with custom attribute. typeid = $data['categoryId']; $pagesize = $data['limit']; $pageno = $data['page']; Mage::app()-&...
1
vote
0answers
20 views

How can I show all products in a top level category sorting by the child categories?

I have this category structure below: When I access Men page all products of child categories are there, but they are showing in a random mode, i believe. I want to show the products in the main ...
2
votes
1answer
92 views

product displayed in one column only instead of 2 column on phone in magento 2.3

when you view a category on desktop shows 3 column but on mobile phone it shows product only one column instead of two column of the page. whats wrong with magento 2.3.0 check the link on mobile ...
0
votes
0answers
96 views

Assign product to category programmatically Magento2 receive an error

I'm trying assign product to categories using code like there Assign products: ......... $this->categoryLinkManagement->assignProductToCategories( $product->getSku(), ...
0
votes
0answers
21 views

How to get all categories and products in one collection in magento 2

How to get all categories(with levels) and it's products in one collection in magento 2
0
votes
0answers
72 views

Magento 2 keeps adding category path to product url in multistore

I have a little problem in Magento 2 Multistores... My URL rwewrites keeps adding category paths to products urls even when config settings "Use category path for product URLS" is set to "no".. I ...
0
votes
0answers
73 views

Magento 2.2.6 Pagination not working in Category pages

We have upgraded Magento 2.2.3 to 2.2.6. After upgrade page filter is not working. It is loading all the products in category page. The drop down still says 9,18,27. But it is displaying all ...
0
votes
0answers
43 views

how to sort products on custom attribute and then on sku in magento 2 category page

how to sort products on custom attribute (i.e. brands) first and then on sku in magento 2 category page For example if 10 products have same brand then it should sort that 10 products on SKU
0
votes
1answer
44 views

Magento 2 Product Form Categories Sort Alphabetically From the Backend

I want to sort Categories alphabetically of the product form, how can I? For more clarification please look onto the below picture. As I checked, by default Magento 2 sort according to the category ...
0
votes
0answers
51 views

how to use product watermark image in category image in magento 2

i need to display watermark on category image like product image.i want to use default watermark image of admin which are used in product image it should be added in category image too can anyone help ...
0
votes
1answer
62 views

Best seller items in category magento 2

I have used below code to filter products by category id. $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $catalog_ids = 4; $productCollection = $_objectManager- >create('...
0
votes
0answers
34 views

Magento2: custom script for category product sort order position

I need custom script run for specific category products position and use this spreadsheet to change the sort order of the specific category "position" If anyone idea reply me as soon as.
0
votes
2answers
133 views

Get Product Collecton by category with filters in magento 2

I need to filter category product collection with Instock items and only simple products. I have used below code to implement it.But the out of stock products also fetching with the collection. ...
0
votes
2answers
107 views

Magento 2.2.6 - New categories not showing products

After created new category products not showing, it shows blank page with no error. But for other categories products shows. Any help should be appreciated.
4
votes
1answer
80 views

Magento2 - Show Instant Purchase on product listing

By default Instant-purchase button is shown on product details page, but I want it also to be shown on Product listing as well. I searched in backend, but didn't find any solution. How can this be ...
1
vote
1answer
31 views

How can I show specific products on homepage in Magento 2?

How can I show specific products on homepage? It has to be client friendly to do in CMS. I tried displaying a category then changing the sort order on products in category.
0
votes
0answers
16 views

How can open Category item in new tab?

How can open Category item in "new tab"? In home page all item open in new tab because I have used target="_blank" but this attribute not working on my category page. my category root path is /...
1
vote
1answer
33 views

Magento 2 in how to splited in bulk import child categories using(,)?

how to split in child categories in bulk import categories using (,)? Default Category/Tools,Default Category/Tools/Electrical Supplies,Default Category/Tools/Electrical Supplies/Boxes,Switches,...
0
votes
1answer
67 views

Multiple add to cart from product list

I'm trying to create a custom list.phtml template for one particular category that will function as a way for a wholesaler to quickly add lots of products tot he cart at once. I have the attached ...
1
vote
1answer
19 views

Could not add pagination while fetching product as per category ID

I am using end point API to fetch product as per category id and want to add pagination on it but in my code its not happening like this. I am explaining my code below. $quoteUrl ='http://example.com/...
0
votes
1answer
79 views

Change sorter in category select box to <ul> <li>

I want to change sort by select box into <ul> <li> type by using javascript so I can change style css for it. How can i do this?