Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
0
votes
1answer
645 views

Show Empty Categories on Catalog Page - Magento 2

I want to show all categories, even if they have no products in them. How can I achieve something like this?
1
vote
1answer
32 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 ...
2
votes
1answer
2k views

Output all product attribute values on catalog page

On the catalog grid page, I want to output all filterable attribute values for each product. For example: If the price is filterable in the layered navigation, the attribute value associated with the ...
6
votes
1answer
7k views

Is it possible to delete root category?

Is it possible to delete an empty root category once accidentally created or not required anymore? It looks like there's no "Delete" button.
1
vote
1answer
44 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 ...
33
votes
8answers
14k views

Questions to expect in an interview for a Junior Magento Developer Position

Firstly I would like to say that I hope I am not posting in the wrong place with this question and if I am please advice me of where (if anywhere in the stackexchange world is appropriate) I should ...
27
votes
5answers
66k views

Why Can't I Load a Product by SKU using loadBySku()?

Synopsis I wanted to load a product by SKU there are many articles, blog posts, stack overflow results etc. All I want to know is - why does it have to be so difficult to load a product by a SKU? //...
0
votes
1answer
55 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 : ...
0
votes
0answers
21 views

Magento2.1.9 - Catalogsearch pagination not work

When I'm searching by product name via mini search / advance search but the issue is toolbar.phtml not loading. I added block in catalogsearch_result_index.xml but not loading.
0
votes
1answer
29 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 ...
6
votes
3answers
551 views

why magento doesn't enable flat model by default?

we can see that the following two options at system > configuration > system > catalog 1.Use Flat Catalog Category 2.Use Flat Catalog Product it is clear that the flat model reduces the ...
1
vote
0answers
25 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
84 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/...
14
votes
2answers
1k views

Magento 2 - Use \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser with multiple selections?

Using this code $chooser = $this->_layout->createBlock('\Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser'); var_dump(get_class_methods($chooser)); $configChooser = [ ...
0
votes
3answers
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
2answers
89 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
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.
3
votes
1answer
28 views

When To Use MultiStore Vs. Categories

I'm attempting to hide the "Add To Cart" button for specific stores currently and am having some issues with my lack of experience. It works in each individual store but not when using the search ...
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
64 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
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
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 ...
4
votes
1answer
743 views

Multi Store view - product name for each store

I'm using Magento 1.9.0.1 I have a store in English, I want to have the same store (same categories and products) just translated to Spanish. I used this tutorial to achive this: Ref. I created ...
0
votes
0answers
20 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 ...
0
votes
0answers
22 views

Magento 2: sellrapido import product using brandsdistribution

When I try to import products from sellrapido to magento 2, it gives me this error on var/log/exeption.log: Next Exception: Report ID: webapi-5d24af47428bd; Message: Property "IsFilterableInGrid" ...
0
votes
3answers
72 views

Show product based on customer attributes

I've added a field for my customer (called "Group"). I want to show the product from the catalog based on this group (I have added a "group" field in my product). What do I need to override to do ...
0
votes
1answer
36 views

Magento 2 admin catalog save button not working

yesterday I have imported some products in my store, today when I was trying to do some changes in product edit functionality is not working. Even the Save button is not clickable I checked logs no ...
0
votes
2answers
31 views

Magento 2 Related Product Image is not Accurate

In Related Product Slider, All Images are of different size and default Magento is not resizing them. Screenshot : https://prnt.sc/oax7yl I want to show all images of the same size. In view.xml, I ...
2
votes
1answer
733 views

Set Category Attribute to Use Default Value

When setting the product to use the default value, setting the value to false would do it. Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $product = Mage::getModel('catalog/...
1
vote
0answers
13 views

Add image options programmatically in custom attribute not working

I want to add new custom option to upload image like extension : https://shop.emiprotechnologies.com/documentation/custom-option-image-for-magento-2 . So basically , i override some file to add new ...
10
votes
0answers
2k views

Magento2 : How to enable inline edit in catalog grid without changing source code?

I try to turn on inline edit in catalog grid as it described in DevDocs: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-inline.html Main problem is how to override this block of ...
1
vote
1answer
714 views

Catalog: Custom Product Collection, mode switch (grid/list) bug?

Edit: I think I found a solution. (See answer by me below) I have a product collection which I pass to the Magento catalog/product_list block. I've set curPage and pageSize of the collection and ...
1
vote
1answer
66 views

Magento2 get ID of product in price template default.phtml

How can I get the ID of product in Magento 2, in tempalte vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml I copied it to my theme: /app/design/frontend/xxx/ddd/...
0
votes
0answers
60 views

Magento 2.3.1: Showing configurable products price in products grid

I'm trying to display the price of configurable products.After I imported it from a csv the price was there but if I save it the product price disappears. I would like to know how to show the price ...
6
votes
3answers
135 views

How to keep products synchronized in two shops

How can I transfer all products from one shop to another after clicking a button? We have a shop which is a copy of our real shop. We need to keep the products, prices, etc. synchronized in both ...
0
votes
2answers
59 views

Finding the parent id of an product

I have a requirement to create a cross sales report(Which combination of the product is most purchased by a customer with it order count), But i want to avoid those orders contains parents and child,...
0
votes
0answers
25 views

Magento 2 catalog rule markup price

I'm trying to achieve a positive "discount" so I could have a base price, and percentage markup prices based on client groups. For ex. base price: 100$, default client group: +20%, another client ...
0
votes
2answers
27 views

Products visible only on the search page

Products are visible only on the search page, but not available on the category page. Admin products visibility on Catalog and Search: Category page screen: Category page filters show the count of ...
0
votes
0answers
14 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
32 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
56 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
866 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
102 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
39 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
35 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
50 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 ...
0
votes
3answers
513 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
0answers
12 views

Restrict add to cart visibility according to group Magento 2

I have two catalog and two group when a customer that belong to group 1 is connecting he can just see add to cart of catalog 1 and same for a customer that belong to group 2 he can just see add to ...