The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Magento 1 : Get product collection using command line throwing error

I have a script file like getproducts.php & have placed it under script/getproducts.php. I want to get products collection in my script file. code in my file: <?php require_once('../app/Mage....
1
vote
1answer
31 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
27 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
1answer
19 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
38 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
3answers
87 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
81 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="...
1
vote
4answers
659 views

Magento 2.x CatalogSearch Undefined Variable($resultPage)

Here is my code. My finding is- This is the URL for Parent Class( class Index extends \Magento\CatalogSearch\Controller\Result\Index) but unfortunately there is no $resultPage defined in this ...
0
votes
0answers
17 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
63 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
0answers
76 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": [ { ...
4
votes
2answers
467 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 ...
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
13 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 ...
1
vote
1answer
202 views

Disable/Readonly admin options Magento 1 [duplicate]

How can I disable the size option for catalog products in Magento 1. I've searched Google and StackOverflow and I can't find a good solution. Is there someone that can help me? Thanks a lot!
5
votes
2answers
1k views

Magento 2.3 use of `db_schema_whitelist.json` file in etc directory of each module

What is the use of db_schema_whitelist.json located in Magento Catalog etc directory? In Magento 2.3 version, I found db_schema_whitelist.json and db_schema.xml files, in the Magento_Catalog module. ...
0
votes
1answer
30 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
44 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
28 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 ...
1
vote
0answers
199 views

Tax Inclusive Products and tax rules

I have 6% and 0% tax zones. And I have the following settings: Stores > settings > configuration > Sales > Tax Calculation Settings > Tax Calculation Method Based On > Total ...
1
vote
1answer
335 views

How I add Category chooser in custom module in backend magento 2

Anyone Help me please how I create category chooser in custom module in magento 2
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 (...
1
vote
1answer
23 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
1answer
552 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" ...
3
votes
1answer
41 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 ...
0
votes
1answer
135 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->...
0
votes
1answer
1k views

How to show a custom grid in a custom tab in product edit page admin Magento-2

How to add a custom grid in a new tab in product edit page using UI_Component method? This custom grid fetches collection from a custom table.
3
votes
2answers
211 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
26 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
0answers
640 views

Magento 2 Export Button CSV and XML Catalog Product Problem

I added Export Button to the grid catalog but still the following problem appears : Exception #0 (Magento\Framework\Exception\LocalizedException): A joined field with this alias is already declared. ...
2
votes
1answer
195 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
39 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
1answer
261 views

How to remove a mass action in dropdown when it is disabled in configuration?

I create a new mass action and I try to remove it when it is disabled in configuration
2
votes
1answer
1k views

how to add an image programmatically from any url in Magento 2?

I try this code but if the image doesn't exist in this path pub/media/catalog/product; it doesn't work. I want to add an image from any url; any ideas for that ? for ($i = 0; $i < count($...
0
votes
3answers
393 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
2answers
50 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
84 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
210 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
2answers
342 views

Magento Reindex Issue on Product Attributes

I have started a reindex and it was taking too long so I closed the process and restarted mysql. Now , when I'm tring to run from command line php indexer.php --reindex catalog_product_attribute I'...
0
votes
2answers
266 views

Magento2 : Override core files vendor/magento/module-catalog/Pricing/Price/TierPrice.php

How to override vendor/magento/module-catalog/Pricing/Price/TierPrice.php ? in magento 2
0
votes
1answer
26 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
30 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
20 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 ...
2
votes
2answers
327 views

How to get cart price rule collection in magento 2?

I want to show cart price rule on product page. How to get collection of cart price rules?
1
vote
2answers
2k views

Category with the 'categorgyurl' url_key attribute already exists

While programmatically creating category, using the below code, i got a error Category with the 'categorgyurl' url_key attribute already exists code: $category = new ...
2
votes
2answers
2k views

Magento 2 override the product collection(Magento\Catalog\Model\ResourceModel\Product\Collection.php)

We want to override the product collection model class(Magento\Catalog\Model\ResourceModel\Product\Collection.php) We flow the below process to override the addAttributeToSort method but not working. ...
0
votes
0answers
18 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 ...
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 ...