Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How to auto fill drop down from picture choice

I have an e-commerce site using Magento 2. I have a product with multiple color options. I have managed to configure the drop-down menu to change the relevant images when colour selected however I ...
0
votes
1answer
40 views

How to add/update product from magento 1 to magento 2 website [closed]

Website 1 - www.domain1.com (Magento 1) Website 2 www.domain2.com(Magento 2) If any product is uploaded on Magento 2 I want to also upload on Magento 1 it's possible?
0
votes
0answers
43 views

How can I get Gift card Amount value in .phtml file

I want to get a minimum Gift card Amount value in .phtml file. I want to show minimum gift card amount value when gift cart product is out of stock My getGiftcardAmount() function is in '/vendor/...
4
votes
1answer
81 views

Magento 2 issue on category page and product page of “inventory_stock_1” table?

I am facing issue on product page and category page. Can any one suggest or guide me on this ?
2
votes
2answers
916 views

Search current store products only

I am working on one website multiple stores.My issue is when i search from frontend with one store then other store products also coming.
0
votes
0answers
13 views

I have a product that has the same ID between two seperate stores but has different product names

How did that happen? Same SKU as well between both stores. When i search a keyword to find the product in the product grid it only returns one product. However, I get a different product when ...
1
vote
0answers
150 views

Override ImageFactory Block in Magento2

I am trying to override the way that the Images in the Catalog, Checkout and Cart are going to be loaded someway different then Magento does it by default. Thats why I'm trying to create a module ...
0
votes
1answer
79 views

Getting all products of orders of last 24 hours in magento 1 in a large database

I have a third party module in my magento 1 which is fetching products like this: $products = Mage::getModel('catalog/product')->getCollection(); So I want to replace it with selective products which ...
1
vote
1answer
40 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 ...
0
votes
2answers
90 views

Creating a product programmatically without deprecated functions

I have the following code which creates a product programmatically but it uses deprecated functions eg the save Therefore my question is how do you create a product programmatically without using ...
1
vote
3answers
675 views

Admin, stuck with 999 products per page

This is kind of funny. In Admin > Products > Catalog I set 2000 products per page (it now shows 999), however, the page never loads, apache2 is stuck with 100% CPU. The problem is that I cannot ...
0
votes
1answer
35 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
43 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
62 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
36 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
49 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
138 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
25 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 ...
3
votes
1answer
188 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="...
2
votes
4answers
832 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
24 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
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
215 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
826 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
23 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
22 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
211 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!
8
votes
2answers
3k 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
43 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
71 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
30 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
207 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
428 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
29 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
825 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
46 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
258 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
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
294 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
31 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
663 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
363 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
68 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
266 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
2k 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
2answers
79 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
120 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 ...
1
vote
2answers
337 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
408 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'...

1 2 3 4 5 19