Questions tagged [catalog]

It should be used for questions regarding the catalog module.

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

How do i get my products to appear in a random order on the category page?

At the minute, my products are showing in alphabetical order from the part number. When clicking on a category, I would like this to show in completely random order. Can anybody help with this? This ...
0
votes
0answers
16 views

Magento 2 - Display product list filtered by price range

The module I'm working on has a form with three inputs, Low Range, High Range and Sort By Price. For some reason it's not returning the product collection at all. I'm getting the following error: ...
0
votes
0answers
17 views

Customer account module showing products filtered by price

I'm working on a custom module, it is in the customer account section, there's a form that has a minimum price and a maximum price that's no more than 5 times the minimum price (this is done by ...
0
votes
0answers
28 views

Sorting is not working in magento 2

I modified 2columns-left layout in magento 2 design.After that sorting is not working <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1answer
11 views

Magento 1 - Hide products from customers

We have a problem with the visibility. We need to add some new configurable products, but the customers should not be able to see them, until we finished testing them. How are we supposed to do this ...
0
votes
0answers
17 views

Magento2 - catalog:image:resize product image not found? Can we skip the error for not found product image?

When we run the catalog:image:resize code. If the product image does not exist in the path, the entire resize process will stop with an error message "image not fount in the path". After we ...
0
votes
0answers
9 views

Magneto 1 Want to show some products same as Related products in catalog product edit

I have created custom tab with products in Catalog >> Product >> Edit But want to apply same grid functionality like related products including remove products. Tabs.php (Vendor/ModuleName/Block/...
0
votes
1answer
37 views

how to create a custom template for catalog product list

I am trying to override module-catalog-widget. I want a new template in the template field. I copied module-catalog-widget.while editing in the extended module in widget.xml no change is happening. ...
0
votes
0answers
11 views

Using the category manger and catalog management in a different project

I am working on a project that for some part is very similar to an eCommerce website, but it is more like a cataloging system. Items are digital assets, with files and attributes, so I am thinking ...
0
votes
0answers
27 views

Slow Query Magento 2.3.0

One of the query is taking 1,197.66ms as per the DB profiler. SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e` INNER JOIN `catalog_category_product_index_store1` AS `cat_index` ...
0
votes
0answers
7 views

How to add custom sort by option on list page and result should be based on discount percentage of products in Magento 2

I wants to display products on list pages based on discount percentage in descending and ascending order. Thanks
0
votes
1answer
38 views

How to add a multi select category and attribute filter on catalog page

My magento 2.3.3 theme provides me single select from same category or attribute. Here if i select a sub category all the other categories will get disappears because it is single select. But i want ...
0
votes
2answers
61 views

How to get product category Id on product detail page Magento 2?

I have a product which have assigned into more than 5 categories. I want to show the category detail of that product on product detail page. But which category detail I need to show? I want to show ...
0
votes
0answers
14 views

List all parent categories in a page - Magento 2

I am a beginner in Magento. I want to create a new menu 'Categories' in the header and this link should redirect to a page which shows all root categories. Thanks
0
votes
1answer
10 views

Get “Sort by” method in catalog page

How can i get "Sort By" method in this page, $productListToolbar doesnt include sort by position method.
0
votes
2answers
44 views

Show parent categories on a page

I am a beginner in Magento. This may be a simple question. I have a header menu 'shop'. This link should redirect to a page that shows all parent categories. How can I do this? any help is really ...
0
votes
1answer
36 views

magento 2.2.3 how to add a new cms block or new phtml to product page

I want to add a new cms block or PHTML to the product page. I have the following files composer.json, etc/module.xml, and registration.php I have view/frontend/layout/catalog_product_view.xml &...
0
votes
1answer
23 views

Programatically creating products with custom attributes

I'm creating a product with a set of attributes using a cli script. First of I'm setting the session for \Magento\Framework\App\State with setAreaCode('adminhtml') in the constructor. Then calling to ...
0
votes
1answer
22 views

Magento 2 In product page, when display message if stock < 0?

I want to display on the right of "In stock" --> "The delivery time will be 15 days"
0
votes
0answers
27 views

Magento 2 how to save my custom link titles from Magento 2 admin end

We have created a custom link type products like related at admin end & we created custom link_title for the table catalog_product_link to save the custom titles. By custom import, we are able ...
0
votes
0answers
25 views

Simple products is not showing on Catalog page/Catalog search Magento 2.3.2

I am using Magento 2.3.2 for my store. I observed that all my simple products are not showing on the catalog page & catalog search (Frontend) . otherwise configurable products working correctly. ...
0
votes
0answers
12 views

How to get filterable attributes and options in Magento for catalog search page programmatically in Magento 1

How to get filterable attributes and options in Magento for catalog search page programmatically in Magento 1? $layer = Mage::getModel("catalog/layer"); $category = Mage::getModel("catalog/category")-...
0
votes
0answers
33 views

Cannot delete products from store

We are noticing that in our Magento 2 store we are unable to delete products, individually or in bulk, from the catalog page. When selecting a product and hitting Delete, we get an error that says the ...
0
votes
2answers
40 views

Magento 2 How to show success message after product add to cart on home page?

How to show success message after product add to cart on home page like this "You added product-name to your shopping cart." I am using that code on template file - <form data-role="tocart-...
0
votes
5answers
69 views

No products are showing after re-index - Magento upgrade - 2.1 to 2.2 then 2.3

I followed these steps in order to upgrade Magento (current version: 2.1.9): Upgraded to 2.2.8 Upgraded to 2.3.3 The one issue that I am stuck is that after upgrading to 2.2 or 2.3 and on reindexing ...
0
votes
1answer
16 views

Magento 2.3 replace the comma in the price with the currency symbol

I want to replace the comma in the price with the currency symbol to display something like this .
2
votes
3answers
65 views

How to 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
15 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
18 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
58 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
62 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
19 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
40 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
32 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
19 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
24 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
85 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
7 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
36 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
53 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
33 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
58 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
13 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
65 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
13 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
66 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
26 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 ...

1 2 3 4 5 19