Skip to main content

Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
0 votes
2 answers
2k 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-...
2 votes
1 answer
1k views

Category grid Display - Item Hover

On main category page when I mouse over each product - this is how they show. Product image displays - Title/Price get covered up. There seems to be another hover box behind and below the main one ...
0 votes
3 answers
2k views

Crosssell products in product page

I have at the moment in catalog.xml <block type="checkout/cart_crosssell" name="checkout.cart.crosssell" as="crosssell" template="checkout/cart/crosssell.phtml"/> and in view.phtml <?php ...
0 votes
3 answers
1k views

how to add custom container inside product.info.main container in magento 2.3.1

how to add custom container in class="product-info-main" referenceContainer="content" and inside catalog.product.view.xml file catalog.product.view.xml <referenceContainer ...
0 votes
1 answer
15 views

Get same product info while we use catalog_product_save_before and catalog_product_save_after

when i am using catalog_product_save_before and catalog_product_save_after this two event it will always return catalogue_product_save_before data. when I am trying to fetch the child id from the ...
0 votes
0 answers
9 views

show loader on the minicart

When I click on the + - sign on the minicart, it increases or decrease the quantity correctly. I just want add loader, When customer click on the + or - sign it shows the loader then update the ...
2 votes
3 answers
3k views

Show brand attribute in product listing

I would like to show the Brand attribute under the product name on the listing page. Attached is a screenshot for reference.
0 votes
1 answer
2k 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 ...
-1 votes
0 answers
18 views

Magento 2 : Can't edit simple product price in Admin Panel

I have problem in Magento 2.4.6. I cannot edit the price of any simple product when selecting it in the admin > Catalog > Product panel. This does not happen in my local environment, nor in ...
2 votes
3 answers
3k 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
1 answer
1k views

How to remove cache images if they not in used in magento 2?

i need to create new script if the image not present in real folder and not in used than delete from cache folder example Cach folder image pub/media/catalog/product/cache/...
1 vote
1 answer
1k views

Magento Custom Attribute Sorting - By Sort Order

I would like to get the catalog to sort by the custom attribute sort_order position. However, when using custom attributes to sort product collections, in MYSQL it sorts by attribtute value name, when ...
0 votes
4 answers
1k 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
2 answers
2k views

Magento 2: Show Out of Stock items after in stock items

I want to show Out of Stock items after in stock items. I found solution here, but its for Magento 1.8. I need same for Magento 2.
5 votes
1 answer
2k views

How setPostedProducts() function works?

When a product is assigned to a category, Its relation is save is catalog_category_product table. But on searching for setPostedProducts() it seems like a magic method. So how the data is saved in ...
2 votes
2 answers
4k views

Elasticsearch: No alive nodes found in your cluster & test connection gets failed

I have run this command: composer show elasticsearch/elasticsearch then all stats of elastic search runs perfectly. Attached is the screenshot. Also, I have configured in the admin panel. The ...
0 votes
0 answers
10 views

Create and Add Images to Products using Image Data

How can I create and attach images to products in Magento2? I have an Image base64 encoded body, name, extension, and mime type. Basically, all the required info to create an image. Also, note that I ...
1 vote
1 answer
1k views

Magento 2 catalog category link widget is not working

I wanted to insert catalog category in my content, however, it keeps showing a broken image whenever I try to use it. I have also tried manually coding it. Does anyone know the fix for this?
2 votes
1 answer
3k views

Magento 2 : How affects Enable Single-Store Mode Yes/No?

I have 1 single website with single store. When I enable Single-Store Mode to Yes/No Not able to change Product Url. https://github.com/magento/magento2/issues/5929#issuecomment-238170690 What is ...
0 votes
1 answer
3k 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 ...
1 vote
2 answers
2k views

magento product resized image optimization

I have optimized product images: when I upload those in admin they remain as optimized. However, in fronted when I resize images with cache, these already optimized images need to be optimized. How ...
2 votes
2 answers
2k views

Some of the pages in admin Dashboard not loading, received Error in magento 2.0.6

Catalog page not loading in admin dashboard of Magento 2.0.6. Please see the error message below: Warning: Magento\Framework\Locale\TranslatedLists::getCountryTranslation(): Cannot load resource ...
0 votes
2 answers
2k 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 ...
3 votes
4 answers
3k views

Magento 2: How to filter category by store id?

I want to filter category by store id. Used the following code, but it is not working. $collection = $this->categoryCollectionFactory->create(); $collection->addAttributeToSelect('*') ...
3 votes
3 answers
7k views

Magento 2 no Layered Navigation after filter collection

We've added a default filter for our product collection by adding a plugin: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
3 votes
2 answers
5k views

Something went wrong with processing the default view and we have restored the filter to its original state

I got this error when I go to Catalog > Products and select a filter. I'm on Magento 2.2.6. Magento says this bug is supposed to be fixed on 2.2.6 but clearly it's not.And unfortunately I do not ...
0 votes
1 answer
1k views

Magento2: catalog_product_view.xml

Here what happen I am trying to add my custom phtml file in catalog_product_view.xml. Underneath: <referenceContainer name="content"> <container name="product.info.main" htmlTag="div" ...
3 votes
2 answers
2k views

Disable "add to cart" for Guest User

How can I Disable the "add to cart" when user is not logged in.
0 votes
0 answers
17 views

Product added to the Catalog collection does not display a price

I created a preference for the block Magento\Catalog\Block\Product\ListProduct to add a specific product at the begining of the collection in getLoadedProductCollection(). Almost everything is well ...
0 votes
1 answer
2k views

Magento 2 Mass Product Action module

Hi magenticians I need the code of the module magento 2 which allows to add a text input when clicking on a mass action to enter a value like this example
0 votes
1 answer
41 views

How i use product designer for product image for frontend in magento 2

I want use image editor for product image
1 vote
1 answer
4k views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
3 votes
2 answers
4k views

Products on homepage: get more than 12 products

Im trying to show a few products on my homepage I got pretty far using this code: {{block type="catalog/product_list" name="product_list" category_id="74" column_count="5" num_products="24" mode="...
2 votes
1 answer
2k views

Magento 2 Add discount on bundle product on add to cart time

I have to add some discount programmatically on the time of bundle product add to cart. So far I have developed the catalog product plugin Magento\Catalog\Model\Product function afterGetFinalPrice ...
0 votes
1 answer
28 views

Magento 2 Category field data scope issues

Good Afternoon, I am looking at a data scoping issue around category content fields for Magento 2 (2.4.5-p2). I have a list of fields that we typically fill in (please see below for category content ...
0 votes
0 answers
38 views

How to fix this indexing error?

When I am running indexer:reindex command, I am getting this error. Integrity constraint violation: 1062 Duplicate entry '1448-0-1' for key 'PRIMARY', query was: INSERT INTO ...
1 vote
1 answer
1k 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" ...
2 votes
2 answers
2k views

Accessing data in catalog_product_save_before observer

I created an catalog_product_save_before observer to update some attributes based on other attributes. Specifically, I use m2epro to update my ebay listings. Sometimes I want ebay to show less in ...
1 vote
1 answer
1k 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 ...
2 votes
1 answer
907 views

After update Magento 2.3.5 to 2.4.2 on all category pages error: Exception #0 (RuntimeException): Catalog Layer has been already created. How fix?

After updating the version, I started getting on all category pages this error: Exception #0 (RuntimeException): Catalog Layer has been already created This is error in: vendor/magento/module-catalog/...
0 votes
1 answer
305 views

Catalog search index process error indexation process

I did a new installation of Magento (2.4.6-p2) and did the data migration from Magento 1. Everything seems to work, except the catalog pages, which give the following error on the frontend: Error: ...
1 vote
1 answer
205 views

wysiwyg editor does not show all folder after upgrading to Magento 2.4.6

I just upgraded to Magento 2.4.6 from 2.4.0. The issue i am facing is the editor is not showing images folder in storage_root. It is just showing me two folder catalog/category and Wyswig folder. I am ...
0 votes
1 answer
42 views

Disable admin user category Drag and Drop for Magento2

I am looking into if it is indeed possible to disable the ability for a user to drag / move and drop categories in the Magento2 admin panel. Any guidance or suggestions on how to accomplish this on ...
0 votes
0 answers
38 views

Change the order of the images

Does anyone know if it is possible to change the order of the images already imported through a CSV template? Example this is the loaded order I want to alternate it by this order I appreciate the ...
1 vote
2 answers
59 views

How to show category image?

The category image is not visible on the description page. How can I display it on the page? app\design\frontend[base][theme]\Magento_Catalog\templates\category\description.phtml
0 votes
0 answers
60 views

Magento2 graphql query to create product?

How to Create Product using graphql is there any mutation for this I couldn't find a single tutorial nor mutation in core module-catalog-graph-ql.
0 votes
0 answers
16 views

Add new filter in the Panel column of the Product Catalogue

I want to add a new search filter in the product admin panel, but I don't know where to enable this option, if anyone has any idea if this can be enabled per individual user or only the super admin ...
0 votes
1 answer
34 views

List products via API

I wanted to fetch all the products from a Magento store using the REST API. Can anyone help me with a curl request? Thanks
2 votes
1 answer
2k views

Magento2: product page returns error

With no apparent reason, product pages do not show for me anymore. Error text: Warning: Illegal offset type in isset or empty in /path/to/project/vendor/magento/module-eav/Model/Entity/Attribute/...
0 votes
1 answer
540 views

Magneto 2.4.6-p3 products not showing in catalog or search

I have seen this question asked so many different ways and for various Magento versions. I've spun up Magento 2.4.6-p3 and after bringing up the frontend and checking the admin backend, I don't get ...

1
2 3 4 5
22