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 to show all product in catalog page ? Magento 2

I need to show all products with a layered navigation filter, or is it possible to show the root category as a parent category, where all categories will be displayed in layered navigation. So to ...
0
votes
0answers
15 views

How to get auto select an option of configurable product in magento2?

I have configurable products which are the combination of 3 attributes. I want to auto select a child product when open any product url. I have tried this link. But this solution is not working for ...
4
votes
4answers
4k views

How to Show Tier Price in Magento 2 Catalog Page

I have setup a tier price for my Magento 2 product and I can see the tier price on product details page like below screen shot. I need to show the same "Buy 3 for $0.00 each and save 100%" in my ...
1
vote
1answer
27 views

What is the best practice to save a product by its id ? Using factory or repository? [closed]

Save product by its id in magento 2. What is the best practice in use ?
0
votes
2answers
26 views

Can't load current product

I try to load the current product in gallery.phtml Helper (app\code\Company\Base\Helper\Data.php): ... use \Magento\Catalog\Helper\Data as CatalogHelper; class Data extends \Magento\Framework\App\...
5
votes
3answers
9k views

Magento 2 : How to Add quantity increment & decrements button on product details page

How to add increment(plus +) and decrements(minus -) qty button on product detail page?
0
votes
1answer
100 views

Magento 2 - where to find \Magento\Catalog\Model\Product\ImageFactory

In vendor\magento\module-catalog\Helper\Image.php you can find this parameter in the constructor: \Magento\Catalog\Model\Product\ImageFactory $productImageFactory but where is the class located? I ...
0
votes
1answer
233 views

Magento 2 - check if product is new

How can I check if a product is new in Magento 2? I found this solution for Magento 1: function isProductNew(Mage_Catalog_Model_Product $product) { $newsFromDate = $product->getNewsFromDate();...
0
votes
1answer
32 views

Products in Category not showing all products in the category back-end

Not all products show under "Products in Category" when editing a category in the back-end. Here is a screenshot showing the problem. In the category tree, it correctly shows 123 products in '...
0
votes
1answer
44 views

Which is this product's product type?

Need to find out product type and create it in magento 2 check image - https://prnt.sc/rsrc42
0
votes
1answer
66 views

How to display watermark only on fullscreen image Product Page Magento 2.3.4

Actually i set Watermark for base image from backend Content => Design => Configuration => Product Image Watermarks tab In my requirement: Only Watermark should display on product fullscreen ...
1
vote
1answer
112 views

How to Remove all tier prices from product and Add new tier prices in Magento 2.3.4

Currently I have a custom API to live feed the product tier prices with data like this: [ { "sku":"X772A5", "customer_group_id":"1", "website_id":"2", "qty":"5", "price":"500" ...
0
votes
0answers
11 views

Custom catalog for a selected group of users

I'm trying to figure out if there's a way for me to create a custom catalog with its own set of products, pricing and promotions. This catalog will then be assigned to a specific group of customers. ...
1
vote
1answer
65 views

How to override (vendor/magento/module-gift-card/Model/Plugin) Magento\GiftCard\Model\Plugin\QuoteItem afterConvert() function Magento 2

override a function (vendor/magento/module-gift-card/Model/Plugin) Magento\GiftCard\Model\Plugin\QuoteItem afterConvert() function Magento 2
0
votes
0answers
13 views

How can i Display whole the products of website with filter in magento2

I have created multiple website in Magento 2. In Main website I want to display all the products but in second website i want to display only those product which have brand test. Brand is product ...
0
votes
2answers
63 views

How to override (vendor/magento/module-gift-card/Model) Magento\GiftCard\Model\AccountGenerator generate() function Magento 2

How to override (vendor/magento/module-gift-card/Model) Magento\GiftCard\Model\AccountGenerator generate() function Magento 2
0
votes
1answer
29 views

M2 Get Customer Group Price on Category Page

I seem to be unable to get the current customer group price for a product. Product is set up with a standard price of £20 and a 'wholesale' group price for 1+ units at £10. On a category page (...
0
votes
1answer
38 views

Magento 2 Search within category product list

In magento 2, is it possible to have search option within category product listing? please find below attach image [updated] finally, i have rewritten Listproduct.php class and search is working. The ...
0
votes
0answers
26 views

Invalid config field backend model: catalog/system_config_backend_catalog_product_flat There has been an error processing your request

I receive this error message being trying to get to System> Configuration> Catalog > catalog i have Magento Version 1.6.2.0 There has been an error processing your request Invalid config ...
0
votes
0answers
70 views

Magento 2 category list page - add template - get product attribute

I want to add a custom template inside the category list page. Therefore I added the following inside my catalog_category_view.xml; <block class="Magento\Catalog\Block\Category\View" name="...
0
votes
0answers
23 views

Sort products in category view - Magento 1.9

I want to always sort products in the catalog category view by is_saleable attribute. Firstly should show saleable products, later not saleable. I tried add $this->getSelect()->order("...
0
votes
1answer
59 views

I want to get images form product gallery of a product and display them one by one in Product detail page

This is the gallery.phtml code which is displaying main thumbnail image only <?php $images = $block->getGalleryImages()->getItems(); $mainImage = current(array_filter($images, function (...
0
votes
0answers
15 views

How to link image which is present in magento ftp to product?

I have following image saved in magento 2 ftp: https://www.moebel-guenstig24.de/pub/media/catalog/product/moebel/10-51-WW-20/1/kommode-mahattan-sideboard-kombikommode-esszimmer-wohnzimmer-...
0
votes
1answer
40 views

Magento:2 I want to display product image in 1 column vertically instead of using default Fortorama.js. I want to remove slider

I am facing this issue ..I don't want to display product images in default slider which is coming from fotorama.js I want them to displayed as one by one without slider What should I do $...
0
votes
0answers
70 views

Magento2.3: Is the minimum search query length affect the performance of the site?

In the catalog search configuration page, I can see a message which is minimum query length may affect the performance of site. Now, I have given the query length as 1. Is that affect the ...
1
vote
0answers
22 views

Magento 1 : Show lowest possible price on catalog using custom options

I am wanting to know the code to show the lowest possible price for an item as per their custom options without having to go into each item and make the lowest custom option price the default as this ...
0
votes
0answers
24 views

Why products disappeared on the frontend after import?

I'm running my store in the Magento 2.3.1 + ElasticSearch 6 + PHP 7.2 With 12k products and 228 attributes, and PHP memory_limit = -1. I have an integration that syncs the products through Magento's ...
0
votes
0answers
31 views

Magento 2.3.4 - Multi product catalogs

I want to create a separate product catalog with different product IDs, is that possible? For example, I currently have a product catalog with incrementing product ID's starting with 1. I'd like to ...
0
votes
0answers
34 views

Magento2 catalog product image resize not working on category pages

I have change image path resize on image_with_borders.phtml. it's working on home page product image but not working at category pages. Can anyone explain please. Homepage image: category image: ...
0
votes
2answers
618 views

How to get product image by product Id in magento2

I am not able to get the absolute path of the image by product id in Magento 2. Can anybody help me? I am able to get media path so far by directoryList class by doing this: $this->directory->...
0
votes
2answers
535 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)...
3
votes
1answer
1k views

Importing product names with special characters using Magmi

I am trying to import products using Magmi. Some of the products include special characters, such as é, à, etc. When I import the products, I get the following error for the items that have the ...
0
votes
0answers
85 views

Magento2 2.3.4/B2B Assign custom prices to selected products - scheduled but never runs

I'm new to Magento, so if you know what's wrong please do not skip on details :) I updated shared catalog prices but it never runs to update it CRON is running as I have other tasks that are being ...
0
votes
0answers
29 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
23 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
37 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
13 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
23 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
12 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
54 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
12 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 ...
5
votes
3answers
15k views

Multiple configurable products as a bundle

We have many products that we sell in different sizes. We have set up 1 configurable product and linked all the simple product sizes. But now we wish to set-up a bundled product that consists of a ...
0
votes
0answers
176 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
200 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
192 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
5answers
223 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
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
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 ...

1 2
3
4 5
21