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 [catalog]

It should be used for questions regarding the catalog module.

1
vote
1answer
11 views

How to stop creating product as virtual in magento 2 programatically?

Some time we forgot to add weight to the product and its become an automatically of type virtual product. I am trying to generate a product of a type "simple" in case we forgot to add weight ... I ...
0
votes
1answer
15 views

magento 2 add associate Simple Products with custom options to Configurable Product not working

I want to add the simple products with custom options to configurable product.When I am trying to add the simple product to configurable product, it's not showing after product save.Need suggestion to ...
1
vote
0answers
14 views

Magento 2.3.0 URL keys regenerate on import

This is a serious issue that is occurring on numerous Magento 2.3 builds (I have tried) If we use the import function from a CSV with the "name" header, Magento automatically updates the URL key to ...
0
votes
0answers
11 views

Custom dropdown attribute sort by option is not showing proper result on category page in magento 2

I am using magento 2.2.6 and create custom product dropdown attribute called patter_name and i wanted this to use for product sort by on category page. but when i sort by this attribute "patter_name"...
0
votes
3answers
30 views

custom table left join with catalog/product

I have a custom table called flagged_products which lists flagged products like this: +-----------+------------+---------------------+ | entity_id | product_id | flagged_on | +-----------+---...
0
votes
1answer
24 views

How to Force user to login to view catalog

I am beginner in Magneto and I have install magneto 2.1.15 using WAMP server. I want to force user to login first then redirect to home page to view catalog and other menu. Please suggest where ...
2
votes
1answer
38 views

magento 2.3.1 “Catalog Category Link” widget blank

I am trying to use the following widget: {{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="ewrrewq" title="rqewrqrq" template="category/widget/link/link_block.phtml" id_path="...
0
votes
0answers
16 views

Magento 2 : Stock status not accurate

I have some products which they are out of stock in backend and also in catalog pages, but on the product page, they appear as in stock. This behavior is the same whether the flat product enabled or ...
0
votes
0answers
19 views

Magento 2 after exporting products csv products id does not match back end product ids

After exporting products in csv file products ids does not match magento 2 backend ids please help this matter. Any help would be appreciated. Thanks in advance..!
0
votes
0answers
5 views

Magento 1: Creating new StoreName: (new) root category not in the selection options

So we have created a new root category. anchor=yes, active=yes, title/name entered, added some products then save. Then we create a new webstore under an existing website website ...
1
vote
1answer
15 views

Product attribute value visible in Catalog table but its field is empty in Edit Product form

I have a strange issue with Magento 2.2.5 where two of my product attributes have its values showing in the Catalog Table, but when you click into the product itself to edit, the field for that ...
1
vote
0answers
16 views

Magento 2: Get child product name in bundle options along with SKU and ID in API Response

I am working on a headless magento approach. On hitting : /V1/products/:sku I get the details of the product as the following response: ... "bundle_product_options": [ { ...
1
vote
1answer
24 views

Product Url Key is not generated on edit product

I have the following scenario: I have created a new product. I have left the url-key field blank. If url-key field kept blank, then on product saving, it will set url key value automatically ...
2
votes
0answers
22 views

Catalogsearch super sub categories products search not working

I tried a lot, but I can't find a solution. In catalogsearch only showing the selected category product, it's not showing the subcategory of the selected category. I tried a lot of suggestion on ...
0
votes
0answers
8 views

How to set an offset for category pages?

I want the first page of a category product grid to display 18 products, while all other pages should show 20 products. I wrote a Plugin for Magento\Catalog\Block\Product\ProductList\Toolbar's ...
0
votes
1answer
15 views

Magento 2 Product duplicate generates unlimitted file

I migrated M1 data to M2. After that on product duplication from admin process continue (loader displaying) and product images start duplication. In 30 GB space filled just after process started.
0
votes
0answers
15 views

Magento 2.2.6 quick search is not working for sometimes

I am trying to search a product through a quick search using the product name and its brand name. But it does not work for all product. Only for some product. E.g if I search products of brand "XYZ" ...
0
votes
1answer
20 views

Magento2 Showing a custom attribute on category listing page

I have a magento2 based website and I am wanting to show a custom attribute on the category listing page. My issue seems to be that on desktop and tablet the products are shown 3 across and on mobile ...
3
votes
2answers
96 views

How to add group product into the cart individually?

I have two simple products associated with a group product at the product description page and have a separate add to cart button with each product I want to add these products to the cart ...
0
votes
0answers
7 views

Where to edit magento 2 catalog pages

So I have a magento 2 installation on Ubuntu (aws lightsail) and I am using the pearl theme. I have ftp/server/ssh access. I am trying to add some custom html to the catalog pages to have the banner (...
0
votes
1answer
60 views

Magento 2.3 products not visible

After migrating data and products from Magento 1.9 I can see all my categories and products available in the backend. But not on the frontend. I've checked all options; Products are "enabled" ...
0
votes
1answer
43 views

add new column to catalog product entity table

I add new column to catalog_product_entity. so when i want to add new filter to collection i get this error The "user_id" attribute name is invalid. Reset the name and try again. $subject->...
1
vote
2answers
43 views

Get Product Id On Product Page

How can i get product id on product page without registry? Such as class registry is deprecated in magento 2.3
0
votes
0answers
23 views

set default filter to admin product grid

i wanna set a filter to admin grid collection by creating plugin or override Block class . for example show all product that price are more than 1 $ how i can do this.
2
votes
1answer
36 views

How to fix the related product issue in admin after migrated to magento 1 to magento 2.3

I am using Magento 2.3.0 I have migrated products from Magento 1 to Magento 2. I can see related products in product detail page in the front end and it is proper and also I can find related products ...
1
vote
0answers
17 views

'Migration Meta Information' is not updating when I edit product title/name in magento 2.3

Previous question title: same 'Migration Meta Information' is displaying for all product edit page in magento 2.3 Edited question title: 'Migration Meta Information' is not updating when I edit ...
0
votes
3answers
130 views

Magento 2 : get custom attribute value display blank

In Magento2 , I need to get eav attribute value in category data. I used this below code. But, it's not working. /** \Magento\Catalog\Model\CategoryFactory $categoryFactory**/ $category = $this->...
0
votes
0answers
32 views

How to not use attribute default value over rest API in magento2

Im working on api integration between one store of magento2 multi store installation and product db of a client. Our current problem is that part of the items for in our store are duplicated (same sku)...
0
votes
2answers
30 views

Magento 2: catalog_product_save_after only for new products?

Ive made an observer for the catalog_product_save_after event, but I want to only fire it when a new product is added to the catalog. I did the same for the sales_order_save_after event and just ...
1
vote
1answer
59 views

How to override product model files in Magento 2?

I am using Magento 2.3 I have override below core file. vendor/magento/module-catalog/Model/ProductLink/CollectionProvider.php To override this file I have created a new custom module in app/code ...
0
votes
2answers
43 views

Is it possible to resize catalog image for only one product in magento?

I want to resize only one catalog product images. Is it possible in magento2? I already know the command for resizing catalog image: php bin/magento catalog:images:resize but i want to do this ...
0
votes
1answer
15 views

Wrong number of result in toolbar after overriding ListProduct

I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute. But now I have the wrong number of element in the toolbar (I have 3 products displayed but still ...
0
votes
1answer
25 views

Create attribute for several product

I have many hundred products and I want to create a product attribute to apply to all of them but with different value. But I don't want to change the attribute product by product, it would take so ...
0
votes
1answer
18 views

Show product catalog based on Customer

how can I show catalog products based on customer custom field ? I've done di.xml I've done this but is doesn't filter . This is what I have in ListProduct.php (used in di.xml) protected function ...
0
votes
0answers
13 views

How to customize the keyword search query in magento1

Example - Suppose if Product name is "abc-def" then search result will come who start with that name(abc-def) but i need if user search "abcdef" then my result would be come which product name start ...
0
votes
2answers
46 views

Show product based on customer attributes

I've added a field for my customer (called "Group"). I want to show the product from the catalog based on this group (I have added a "group" field in my product). What do I need to override to do ...
1
vote
2answers
50 views

Magento 2: How to filter category by store id?

I want to filter category by store id. Used the following code, but it is not working. $collection = $this->categoryCollectionFactory->create(); $collection->addAttributeToSelect('*') ...
2
votes
0answers
29 views

Customer specific product offering - Best practice

To build an e-commerce site that offers a specific set of products for each state of a country, what would be the best practice to be followed from below listed approaches (or another approach) to ...
1
vote
1answer
68 views

Missing add to cart button on some items

We're experiencing a strange issue with our catalog, I'm scratching my head of where to start looking for... Here are the symptoms: Item X - doesn't have the "Add to Cart" Button. When I go to the ...
3
votes
1answer
37 views

Sort order by category id (or custom order)

i'm struggling on that simple point. How can I order my catalog search by categories ? i want to order my catalog search result like this : Categorie 1 / Category 2 / Category 3 I tried changing ...
1
vote
1answer
19 views

Magento : Is the layout reference scoped for an specific handle?

When I put the following block inside catalog_category_layered handle, it works and I can call it by getChildHtml(). But when I insert it in default handle it doesn't work at all. Is the catalog.layer....
2
votes
0answers
55 views

Magento 2.2.5 - Delete all products and products images

I have a site with Magento 2.2.5, with thousands of products imported via Magmi v0.7.23-git with csv. I tried to delete all these products with the Magmi utility 'Clear Catalog v1.0.4', and then ...
0
votes
1answer
23 views

i add to custom filed in category form for upload image but facing issue that i mention below

string category Menu Image true fileUploader ui/form/element/uploader/uploader ...
2
votes
0answers
31 views

How to show/hide shared catalog enabled categories in layered navigation in Magento 2?

We have enabled the b2b extension. When we select specific categories on shared catalogs, it hides only on the mega menu, but layered navigation still lists the categories. How can we hide it from ...
3
votes
1answer
35 views

Magento 2: Product List Not Showing in Catalog and Search

I am having a problem with the product list when adding new products. It was working properly until I added a new product. Then, the product list stopped being visible in the catalog pages and search ...
0
votes
3answers
95 views

Magento 2 - How Can I Update Catalog Product Price Programmatically in Frontend and Add Product to Cart With New Price?

I create one Module and make a custom form which is display in the catalog product view page. when the customer change option from dropdown then the product price will change and also that updated ...
1
vote
0answers
53 views

How to redirect to 403 custom error page in magento2 from controller

I am trying to redirect to custom 403 error page. I have created plugin for controller as follow: etc\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
16 views

How to works catalog search?

When I do some searches in the catalog using global search, Magento shows me some weird results of products not related. For example, if I search for "500" string in global search, it shows prodcuts ...
1
vote
1answer
21 views

Catalog page loads at the middle of the screen when using pagination - M 2.1.15

When I go to page 2 or 3 it takes me to the lower middle half of the page instead of the top of the next page. Is there a way to make it go to the top of the next page instead?
1
vote
0answers
15 views

Magento : How to set product type as 'Simple product' when adding new product? OR how to change the product type from virtual to simple?

Currently, when I am adding new product its product_type is set to 'Virtual'. I am adding simple product as shown in below image. Why this is happening while adding the product of type simple.