Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
1
vote
2answers
38 views

Delete bunch of products in Magento2?

Is there a short and best way to delete bunch of products in Magento2. I am having list if 1,20,000 SKUs and want to delete that. Tried: Read CSV Delete products in loop by repository. Problem: ...
1
vote
1answer
11 views

Change Products Images Dimensions in Catalog List Magento 2.1.6

I need to change the size of the images shown in the LIST format, but leaving the GRID format like this. The first image shows how the page is currently in LIST mode. The second image shows how I ...
1
vote
0answers
13 views

How to join field value from custom table entity to product listing (field in custom table must filterable)

My scenario each product related to one merchant (simplest) product have attribute merchant_id (int). This attribute not describe product, only field link to merchant table. merchan_id field ...
1
vote
0answers
8 views

Magento 2: Set Product final price using catalog_product_get_final_price Event

Using eventcatalog_product_get_final_price, setting the maximum price to be 100, if the price of a product is greater than 100 then it will set automatically to 100 and the product price is below 100 ...
0
votes
0answers
13 views

Products missing from Categories pages

We have few set of categories around 4-6 products in each category , Usually out 4-5 products 1-2 products are out of stock. In some categories the out of stock products are showing up correctly as ...
0
votes
1answer
36 views

Override Placeholder Image function in Magento2

I have a requirement like below. I have uploaded a placeholder images for "Base Image", "Small Image" and "Thumbnail Image" in admin settings. So whenever there is no product image is available, ...
0
votes
1answer
41 views

How do you override Magento\Catalog\Block\Category\View?

I want to override the protected function _prepareLayout() So i have used preference <preference for="Magento\Catalog\Block\Category\View" type="Module\Name\Block\Category\View"/> class View ...
0
votes
1answer
15 views

Product Feed empty with no reasons

I did a mistake today and deleted all the "Product feeds" today instead of generating them. I'm re-creating them and it's working for France, UK and Germany. For no reason it is not working for USA ...
1
vote
1answer
38 views

Quantity within side of add to cart in catalog area

I'm a little new to the magento 2 area and I'm not finding a way to put a quantity counter to be added to the cart next to "add to cart" in the catalog area, as in the illustrative image, I'm using a ...
0
votes
0answers
20 views

Magento 2 - Catalog Search Indexer DB problem

I have a problem with my Catalog Search Indexer. I reindex all indexes by using php bin/magento indexer:reindex command but when indexer starts reindex catalog search process then I have an error that ...
2
votes
0answers
18 views

how to create custom api to get customer collection magento 2?

I am beginner to create API in magento 2. Can anyone help me step by step process to create custom api to get customer collection. Which is better REST & SOAP? Also, How can I test this custom ...
0
votes
0answers
14 views

How to display the latest out of stock items

How to display products out of stock are the most recent on the search and category pages. I debug to the file vendor/magento/module-review/Observer/CatalogBlockProductCollectionBeforeToHtmlObserver....
0
votes
0answers
20 views

Create Product at Magento 2 Using REST in C#

I'm trying to create a simple Product by Rest API. Response.Status = Unauthorization I wonder if the installation or configuration of something is missing Here is my code public void CreateProduct()...
0
votes
0answers
47 views

After Migration inventory_source_item table is empty magneto 2

This Table ( inventory_source_item ) is Empty and which all my product show out of stock, Can anyone, please help me solve this issue
0
votes
0answers
5 views

Magento 2 price drop alert report

In Magento 2 is there a way in admin to get a report with a list of products which customers subscribed for price drop alerts? Because now you just check every product one by one to see if someone is ...
0
votes
1answer
21 views

Error “URL key for specified store already exists” when enable “Anchor” in category in Magento 2.3.2

Categories in two different parent with same url-key. First category in the list is saving fine when we update anything in that. But when I am enabling Anchor => Yes In the second category with ...
0
votes
0answers
31 views

What is the use of Communication.xml in Magento 2 Catalog module

What is the use of following vendor\magento\module-catalog\etc\communication.xml file located in the catalog module in Magento 2? <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
1answer
32 views

Magento 2.3 - limit certain categories products

We have a few categories which function like "bestsellers" categories; these categories can hold any number of products, but I'd like to show only the top four. So I figured to create an observer ...
0
votes
2answers
44 views

How to programmatically add suffix to the catalog title in Magento 2.2?

I need to add the suffix to the catalog page title programmatically for SEO. Currently in view source code i am getting catalog category page title like <h1 class="page-title" id="page-title-...
1
vote
0answers
12 views

How to get all attributes of a product which Start with 'wdb_' in Magento 2?

I want to get all attributes of a product which start with "wdb_" in custom tab. For this, I am getting each attribute manually. For example: wdb_carat, wdb_info, wdb_clarity etc... My Code is: ...
0
votes
2answers
57 views

Magento 2 : Can't able to override controller

I need to override this below controller : Magento\Catalog\Controller\Adminhtml\Product\Attribute\Validate.php But, I can't able to override. I need to customize checkUniqueOption() function. di....
0
votes
0answers
12 views

Magento 2: Category Pages custom sortby: getCollection()->order(…) not taking effect

So I have a bit of an issue. I am trying to create a custom sort order in the magneto 2 catalogue pages using a calculation between two price fields. I am currently editing Magento\Catalog\Block\...
0
votes
2answers
46 views

Magento 2 Get custom attribute values in phtml

I want to populate attribute(Gender) values in select dropdown on listing page. On selecting specific value of the gender attribute, the product list should be filtered. The gender attribute has 3 ...
0
votes
0answers
16 views

Magento 2.3x - Sort By Position Fallback Direction

I have a site migrated from M1 to M2 - on M1, the categories defaulted to "Best Value" for the sort order - the products within these categories commonly have mulitple instances where the position is ...
0
votes
0answers
18 views

How to create a category in Magento using SQL

My attempts at creating a category with PHP fails while flat_categories are enabled in the system. Reference here. So, I want to create a new category in Magento 2 using SQL. How would I do that?
0
votes
0answers
25 views

Magento 2: Products not showing in search but in catalog is ok

I have a problem with my catalog. Products are visible in catalog category view pages (I can do any action - add to cart, buy...) but when I want to search any product then not showing in search ...
0
votes
1answer
37 views

Override “Out Of Stock” message

Okay, I'm a dufus. I am trying to override the "Out of Stock" message displayed on the product page to "Sold Out". Currently using Magento 2.3. Create an i18n folder in my custom theme folder, en_Us....
0
votes
0answers
19 views

Display product brand in catalog grid list

I need to show the product brand in the frontend general catalog grid list. Actually it's displaying the product image above and below it the product name and price. I found the file I need to edit ...
0
votes
1answer
19 views

Create Magento 2 Bundles with different quantities of the same product

I'm currently running Magento 2.3.2. The Company I work for sells a number of products in bundles of varying quantities which we call "Stacks". For example a product can be sold in bundles of either ...
0
votes
0answers
23 views

Get current product categories of current store only in Magento 2

I made the following in Magento 1 for a multi-store website: $rootCategory = Mage::getModel('catalog/category')->load( Mage::app()->getStore()->getRootCategoryId() ); $sameStoreCategories = ...
1
vote
0answers
16 views

How to get catalog in stock on frontend?

I have done everything everyone subscribes everywhere From reindex, in stock, manage all, quantity, databases check, double check But products just don't appear on front end because it says out of ...
1
vote
0answers
17 views

Store, websites Magento 2 catalog

I'm very confused. I exported all my products and saw I have the same product in default store and "no store", I mean, my catalog have the same products twice. Not sure what it causes and how this ...
0
votes
0answers
9 views

Magento2 - Force load Product page after 'Add To Cart' is selected on Catalog page

In Magento-2.3.2, How can we always make the Product page load after 'Add To Cart' is selected on Catalog page? Thanks!
0
votes
1answer
30 views

Magento2 : Override Category List page with No dependency on Other Custom Module

I want to override category.products.list to display 1 custom attribute value to each product in list. and i know i can override product/list.phtml to my module and there i can customize code in loop ...
0
votes
0answers
49 views

Magento 2 Image Cache Files are not Updating in Product Catalog

I'm currently experiencing an intermittent issue with my product images in my installation of Magento 2.3.2. Essentially I upload a new image to replace an existing image, the image updates in the ...
0
votes
0answers
30 views

Magento2 configurable product not showing original price on list.phtml

Magento2.2.5 On a configurable product where each child product has the same special price assigned what i want is on the category listing to show the special price and then the original price ...
0
votes
0answers
34 views

Magento 2: Show price for out of stock configurable products

I have Magento 2 site with multiple store views. My requirement is that, I want to show price for out of stock configurable product price when I tried to get product id in final-price.phtml in that ...
1
vote
1answer
35 views

Unable to update or delete a product

I have several thousands of items that are currently disabled. I'm now trying to delete them via the Catalog > Products page but I get an error message for some of the products. I cannot make any ...
1
vote
1answer
47 views

Custom custom options magento 2

Looking for some advices/ideas Magento 2 offer us Custom Options in catalog section. In Backend, we can add custom options like below picture and it appear on frontend like My question is I want ...
0
votes
1answer
31 views

Magento 2 Change base image when attribute is selected on catalog page

I want to change the base image depending on the color which is selected. So if i select "Olive Green", all the products with olive color single products must change the base images to the black ...
0
votes
1answer
70 views

Magento2- How to get the price (product price+ static price) without catalog price rule applied

Magento2- How to get the product price without catalog price rule applied. I want to add an additional price percentage to all the product before the catalog rule applied. Basically what I want is : ...
1
vote
0answers
26 views

Magento 2 - Upload image file using inline edit

I am using inline edit for product grid. Now i can edit product name and other field but i cant upload any image. <editor> <editorType>text</editorType> </editor> ...
1
vote
3answers
127 views

Magento 2 - Override phtml files not working

I am working on Magento 2 and I override few PHTML files from vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml to app/design/frontend/vendor/module/Magento_Catalog/...
0
votes
0answers
20 views

Magento 2 - Add an input field for every product in product listing in admin

I want to add input field in every row for every product in product listing. How could I achieve it? Above image is from magento 1.9 and I want to do something like that. Any help is appreciated.
0
votes
2answers
126 views

Magento 2.3.0 Remove amazon pay button from different pages if current product in cart

I need to develop a feature in my custom module, I would like to hide Amazon pay button from product page, cart page, mini cart, shipping page upon condition. If the current product is in the cart ...
0
votes
0answers
24 views

How to turn on formatting

The current page formatting has been turn off. I checked the format is still present in the codes but not showing on the actual website. Please help.
3
votes
0answers
89 views

Magento 2.3 Result page blank if an item is found

I am trying to search for products on my Magento 2.3 site. When the result is empty (there are no products found) it just shows a page saying there are no products found. Perfect! But when there is a ...
0
votes
1answer
22 views

Magento 2 - Second level category has no head

I tried making a 3 layer category system as pictured below. For the category "Liquid Spice Blends" everything works well, the layout gets loaded and everything. But for the test element as shown ...
0
votes
0answers
25 views

error message not getting replace

On product page, I am doing add to cart with quantity more than the allowed in cart. Page is getting refreshed and I am seeing the error message on the page. After that I am adding single quantity and ...
0
votes
0answers
24 views

Magento 1.9 on Aruba Shared Hosting causes Execution error - PCRE limits exceeded (-8) when uploading images

I'm on a shared host, an Italian service named Aruba Business, for information to who knows it. I have a Magento 1.9.2.1 When I'm trying to upload an image, using the flash uploader, on the product ...