Stack Exchange Network

Stack Exchange network consists of 174 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
12 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
15 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
22 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
23 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
40 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
39 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
59 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 ...
0
votes
1answer
14 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
6 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
0answers
25 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
0answers
13 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
0answers
16 views

Magento catalog_product_collection_load_before on product list pages only

I have a module using catalog_product_collection_load_before event. And I want to use it on product list pages only. Not sure why but its being used on single product pages too. config.xml <?xml ...
0
votes
1answer
39 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?
2
votes
0answers
76 views
+50

Product assigned categories are not visible in administration

My products are assigned to multiple categories. Here's the issue: In frontend, I can see products listed in each category viewed. In administration category edit page (Catalog > Categories > ...
0
votes
0answers
14 views

magento 2.2.6 Simple Product will be output when searching on the category page

magento 2.2.6 Simple Product will be output when searching on the category page. If you solve the same problem, please tell me how to do it.
1
vote
1answer
29 views

which one is the main category of product

I need to take the main category . i try the following code $product = $objectManager->create('Magento\Catalog\Model\Product')->load($itemid); $cats = $product->getCategoryIds(); print_r($...
3
votes
0answers
30 views

how to solved table catalog_product_entiry issue : M2

I found there is issue with row_id and entity_id in this catalog_product_entity. I'm not able to assign product to category, it gives this error: Something went wrong while saving the category....
-1
votes
0answers
13 views

Products missing from categories after reindexing/deploying static content

I am currently running Magento open source 2.1.10 and have been having problems getting products showing in their respective categories. I was initially in Production mode but while I have been ...
0
votes
0answers
25 views

Categories not reindexed after adding new product

I am running Magento 2.1.9. Newly created products not showing up in my categories. I have the cronjobs running and I can confirm that they work (see below). The product is correctly created also. I ...
0
votes
0answers
76 views

sql error while adding any products to category : M2

Something went wrong while saving the category.SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (mydb....
0
votes
0answers
15 views

Magento specific Categories are not displaying in layered Fiter Navigation

I am working on a Magento website 1.9.3.7 and there is an issue in category display in navigation filter. Only some category is displaying in layered navigation filter but newly categories are not ...
0
votes
1answer
116 views

Magento 2 - Import product position in category from CSV

I've noticed the only way to update the product position in a category is to manually do it from the back-end or change the database from PHPMyAdmin. Is there an easier way to process this in bulk, ...
2
votes
1answer
28 views

Show only products on a new category page which have a certain product attribute enabled

I want to create a new category page which shows all products which have a certain product attribute (speed_delivery) set to yes. I was thinking about to create an empty category, catch its product ...
0
votes
1answer
35 views

Products Collections not loading using block in cms magento 2?

app\code\Namespace\Module\Block <?php namespace Namespace\Module\Block; class Catproduct extends \Magento\Framework\View\Element\Template { protected $_storeManager; ...
1
vote
1answer
229 views

Magento2 Add dropdown option in product listing page for configurable product

I want to change text-swatch to dropdown in category page. I want here drop down instead swatch
1
vote
3answers
35 views

Product collection by category id, gives zero products

The following code, returns an empty collection in most categories, even if the category indeed has products: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
0answers
19 views

Mangento2 How to set a created_at (newest) sorter default

I have a add new sort option "Newest" into the category list page . it is worked. How to i set into the default sorting option because it is admin reserved attribute we can not change it.
0
votes
1answer
25 views

Magento 2 Products assigned to category issue

For some reason we are experiencing a issue with our Magento site with products randomly being added to a certain category. We have removed them several times but they randomly appear in that ...
0
votes
0answers
25 views

Custom product limit value change if i change category

If a user set custom value for "Product per page" (eg: ?product_list_limit=48) the value is restore to default (admin value) if user change category. Why? In magento 1 the user custom value was ...
0
votes
0answers
72 views

Change the category, image src, into the choosen svg file

What i did is, I have added svg file in my category, that have links on it, link are not working, reason is, on how magento call the svg file. What I want is to create a module, that will directly ...
1
vote
1answer
84 views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
2
votes
2answers
68 views

Magento2: Not in value Category ids product collection issue

Product collection issue $productCollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection'); products = $productCollection->addAttributeToSelect('*') ...
0
votes
2answers
94 views

Magento2: How to get product collection by parent-category-id and sub-category-id?

How to get product by parent-category-id and sub-category-id? Magento 2.0
0
votes
1answer
80 views

How to display products from a specific category on product view page in Magento 1.9.0.1

What I tried to archive is: Display a product list in a slider on product view page. The product list is from another category and all products in this list are not related to any other products. I ...
0
votes
1answer
16 views

Magento 2 : Issues with sub categories

I have an issue while adding sub categories.Its showing 1 in addition to the category name i.e subcategory 1 and the products are not reflecting at the front end. please help me on that as I am new to ...
0
votes
2answers
24 views

how to remove white space from product name during custom product collection?

I am getting stuck with white space in set order during product collection in magento 2. I want to get product details with ascending order via name but name has white space. I have removed white ...
1
vote
0answers
30 views

Magento 2, force login on specific product and specific catalog pages

I find this solution Magento 2, force login on product and catalog pages how to verify that your solution is just for a specific Category?? thanks in advance – Developper Magento 22 hours ago
1
vote
1answer
486 views

New url key is not working for product after update in magento 2

I have product XYZ and URL key for this product is www.mysite.com/xyz I have updated the value of URL key product from xyz to xyz-new. When I try to access url www.mysite.com/xyz-new. It gives me ...
0
votes
0answers
16 views

Some product images missing on category page?

Some of my product images are missing on my category pages. The product has all the images set and they show in the backend and also on the product page itself. Just the category image is missing and ...
0
votes
1answer
256 views

Magento 1.9 product page show 404 error not found

i removed categories URL from product URL now when i access product which is assign to multiple categories generate 404 error but products which assign to only category working fine any help ?
1
vote
0answers
43 views

Override certain category page

I need to override a category that shows a product list in order to discard products with no active catalog rule and show only these products with some discount. Moreover, they should be counted ...
2
votes
2answers
282 views

Magento 2.2.5 change 'Add To Cart' button to 'View Product' at category page

Is it possible to change the 'Add To Cart' button to 'View Product' at the category pages? I have for almost every product some attributes, so it's weird for my visitors to click on "Add To Cart" but ...
0
votes
0answers
63 views

Magento 2 Reindexing is taking too long + Freezing website!

I'm on magento 2.2.4, php 7, dev mode. I've never had a problem with reindexing until lately, the website frozes and stops working while reindexing (Most of the times), espacially when rebuilding ...
1
vote
2answers
112 views

How to add category name of product as a class in body element

I have single product page on my site. The product is having category "beauty". Product display page having following body tag: <body data-container="body" class="catalog-product-view product-...
0
votes
0answers
15 views

How to redirect to the subcategory level from home page before product listing page in magento2?

I need to create a block in the home page and on click of images of root category in the block it should redirect us to subcategory level from root category.How can we achieve this?
1
vote
0answers
24 views

Removed products from a category but still showing

I removed a bunch of products from a category and it's still showing in the webshop. What I've done is: Reindexed all indexes Cleared all caches Another problem that keeps happening is that I can ...
0
votes
0answers
106 views

Wrong product count in category view back-end

In our Magento 2.2.3 back-end, on the 'categories' admin page the product counts next to the category names in the category tree are wrong. What did we do previously? Imported some 6000 products via ...
0
votes
0answers
104 views

Listing All Products From Searching Category Name?

Is there a way to list all the products by searching for the category name from setting filters in a URL search? The error I get from RESTClient is: URIError: malformed URI sequence and the error ...
12
votes
1answer
151 views

In Magento 2.2.4 Tier price of a simple product does not appear on a configurable product page

In Magento 2.2.4, Tier price of a simple product does not appear on a configurable product page after editing the cart. Steps to reproduce: 1)Select all option of configurable product which has a ...