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
0answers
2 views

Magento 2 How to duplicate category products into another category

I am working on duplicate category, In my controller file, I am able to duplicate the category but I need to assign the same products to the newly created category from the old one. i.e. I have the ...
0
votes
1answer
44 views

Magento 2.3 add custom block under each product in category page

I need to overwrite the product listing (category) page, a custom form needs to show after that product information. So I have found that already an extension is overwriting that page as below <...
0
votes
1answer
19 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 ...
3
votes
0answers
51 views

Magento 2 How to duplicate the category with same structure?

I want to duplicate the category with the same structure and data. Do I need to override any controller Or which type of values I can pass to duplicate the category to which class? How can I achieve ...
0
votes
0answers
13 views

Magento 2.1 set default filter in layered navigation

I need to apply the default filter in all category pages. could you please help me out. Thanks in advance.
0
votes
1answer
26 views

Change the Product grid view to a specific number of columns

The default number of columns is 3. How do I change it to 2? I prefer a solution that uses the admin, but I will settle for any solution. I have looked through the Magento user guide www.magento....
0
votes
0answers
18 views

override product attribute values on product detail page

Hei We have tabs on product detail page and in specification tab I have length , weight attributes Those have some decimal values, I want to override them, how can I achieve this?? Looking for ...
4
votes
1answer
51 views

How do i delete products which are not in a category?

our site has over 90,000 products which need to be deleted and are not in categories, but the products in the categories we want to keep, how do i solve this?
2
votes
1answer
30 views

Magento 2.5 show out of stock products at the end of the catalog

I want to display out of stock products at the end of the category page of Magento 2.5. I add this code: vendor/magento/module-catalog/Block/Product/ListProduct.php $collection = $layer->...
0
votes
1answer
24 views

Associated Category List from Products in a Particular Category

I am working on a site where product brands have been set up as categories. Each product has at least 2 categories, one for brand and others for product categories. On the page for Brand-X, rather ...
0
votes
0answers
22 views

Tax display is wrong

I am going crazy slowly as I cannot solve this. Maybe anyone here can help me out. Problem 1: My shop always shows 2 prices (incl. & excl. tax) on category page but settings are clearly only ...
0
votes
1answer
10 views

How to remove head category but keep subcategory in url magento

Currently my url structure is as following: parameters: example.com/head-category/sub-category/product-name actual url: example.com/gear/balls/superball-0192 I would like to change this to: ...
1
vote
1answer
23 views

When I use “echo” in vendor methods - products not showing, but work fine without it

I got the next code: public function getProductCollection() { if (isset($this->_productCollections[$this->getCurrentCategory()->getId()])) { $collection = $this->...
0
votes
1answer
26 views

Magento 2: Products Aren't Showing up. But they exist in backend!

I've added products in the backend even a test one. But they will not show up no matter what we do. We have already tried php bin/magento indexer:reindex in the SSH We have cleared the cache, It ...
10
votes
1answer
112 views

Magento 2 - All products page with layered navigation and pagination

I want to create all product page with the filters, toolbar, pagination. I can do it by creating a new category with the name All Products and assign all products in it. But I guess this is not a ...
0
votes
1answer
44 views

Magento 2 : Show all categories of a product

Actual state: My products are in several categories. Thus, when I call a product from an over category or by searching out, only the following is displayed in the breadcrumb: "Start > ProductName " ...
0
votes
1answer
38 views

Magento 2, force login on catalog pages

i want to force login on category page i have use below reference Ref: https://magento.stackexchange.com/a/188208/68695 above reference link good work for product detail page but not category page ...
0
votes
0answers
24 views

Change link for pagination

In magento2 i want to redirect pagination link. I would like the first pagination link (with number 1) to be a category page link. I think it is in pager.html but I do not know how to do this. please ...
1
vote
0answers
36 views

Add new column in Category Product Grid

I need to add additional information to the catalog_category_product table. This information is to be entered and saved in the category product grid, in a column similar to Position. Task I've ...
0
votes
0answers
15 views

Auto redirect on product's category change in magento

I am assigning a product from one category to another. But, the 301's for the old product url isnt creating. for ex: i changed a product from category1 to category2, then a 301 redirect should be ...
0
votes
0answers
14 views

Category Missing from Backend and Frontend Menu but in search category showing it's products also showing

Any Help Category Not showing on Backend and Frontend Menu but in search category showing it's products also showing magento 2
0
votes
0answers
19 views

Magento 2 - double ordering in category page

Some products have custom attribute blue_widget. On category pages, I want to list all blue_widget poducts that belong to that category first, and then the rest of the products. However, I want to ...
3
votes
2answers
53 views

Magento 2 - How to get category name and category tree for product or for category id?

Magento 2.2.7 I have to output category name and "tree" or path for product. For instance if my product is in category Lg775 my output should be: Hardware/Motherboards/Intel/Lg775 so far I have this ...
0
votes
0answers
58 views

Products in wrong categories

I got into a strange issue. I noticed some products were displayed in wrong categories. I first thought it was some mistakes made by me or my colleagues when adding/editing products, so I edited those ...
1
vote
1answer
95 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
2answers
154 views

When change a swatch option how to get a selected simple product in category product listing page in magento 2

When change a swatch option how to get a selected simple product id from configurable in category product listing page in Magento 2 when I select a swatch option, I was get a option id, from the ...
1
vote
1answer
23 views

Magento2.3.0 Categories - I wish the products which are in child category will be visible in each parent category by default

I am using in Magento2.3.0 when i create product in admin side i need to Categories - I wish the products which are in child category will be visible in each parent category by default. adding the ...
1
vote
0answers
15 views

How to configure Category product listings in Mobile?

We knew the steps to configure the product listings in Magento 2 on Desktop view and done successfully as per our need. Now, we wanted to show 2 products per row in portrait mode and 3 products per ...
0
votes
1answer
28 views

How can I add a column to Category -> Category -> Products in Category grid in magento 2

I would like to add an extra column based on a product attribute <my_attribute_code> in the product grid that appears when editing a category in the section "Products In Category" ideally ...
0
votes
1answer
41 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
128 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
11 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
14 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
21 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
1answer
39 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
19 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
98 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
31 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
39 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
120 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
33 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
48 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
77 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
118 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
41 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
30 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
3
votes
2answers
86 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
26 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 ...